/* ============================================================================
   MUVIN AGENT TRAINING

   Tokens, base and components copied from the Muvin Partners page. The values
   are not re-derived. Outfit stands in for Azo Sans, which is licensed and not
   servable from here. Mint carries the figures. Brass is the secondary.
   ========================================================================== */

:root {
  --teal-950: #032423;
  --teal-900: #052F2F;
  --teal-800: #094545;
  --teal-700: #0C5757;
  --teal-600: #11706B;
  --mint: #7ED9C3;
  --mint-2: #4FB9A2;
  --brass: #C9A86A;
  /* Brass darkened to clear 4.5:1 against paper for text and small marks. */
  --brass-text: #8A6A28;

  --paper: #FBF9F6;
  --paper-2: #F2EEE9;
  --paper-3: #E8E2D9;
  --ink: #0A1E1E;
  --muted: #586C6B;
  --line: rgba(9, 69, 69, .14);
  --line-dark: rgba(255, 255, 255, .16);

  --display: 'Outfit', 'Archivo', system-ui, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: 20px;
  --radius: 4px;
  --radius-lg: 10px;
  --section-y: clamp(56px, 8vw, 116px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 720px) { :root { --gutter: 36px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

/* ------------------------------------------------- reset, type, layout --- */

*, *::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(--body);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.h-xl { font-size: clamp(2.5rem, 10vw, 5.6rem); letter-spacing: -.035em; text-transform: uppercase; font-weight: 800; }
.h-lg { font-size: clamp(1.9rem, 6vw, 3.4rem); letter-spacing: -.03em; text-transform: uppercase; font-weight: 800; }
.h-md { font-size: clamp(1.4rem, 4vw, 2.1rem); letter-spacing: -.025em; text-transform: uppercase; font-weight: 700; }

.kicker {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 18px;
}
.on-dark .kicker, .on-deep .kicker { color: var(--mint); }

.lede { font-size: clamp(1.02rem, 2.4vw, 1.24rem); line-height: 1.55; font-weight: 300; }
.on-dark .lede, .on-deep .lede { color: rgba(255, 255, 255, .88); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.on-dark .muted, .on-deep .muted { color: rgba(255, 255, 255, .7); }
.small { font-size: .85rem; line-height: 1.55; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-y) 0; position: relative; }
.on-dark { background: var(--teal-900); color: #fff; }
.on-deep { background: var(--teal-950); color: #fff; }
.on-paper-2 { background: var(--paper-2); }

.grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .g-auto { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .g-auto { grid-template-columns: repeat(3, 1fr); } }

.section-head { margin-bottom: clamp(28px, 4.5vw, 52px); }
.section-head .lede { margin-top: 16px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal-900); color: #fff; padding: 12px 18px; border-radius: 100px;
  font-family: var(--display); font-size: .8rem; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

.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;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--mint-2);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-dark :where(a, button):focus-visible,
.on-deep :where(a, button):focus-visible { outline-color: var(--mint); }

/* --------------------------------------------------------------- header --- */

.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--gutter);
  background: var(--teal-950);
}
.top .mark { width: 104px; display: block; flex: none; }
.top .mark img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.top-nav { display: none; gap: 28px; align-items: center; }
@media (min-width: 980px) { .top-nav { display: flex; } }
.top-link {
  font-family: var(--display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .8);
  transition: color .2s;
}
.top-link:hover, .top-link.is-here { color: var(--mint); }
.top .btn { display: none; }
@media (min-width: 620px) { .top .btn { display: inline-flex; } }

/* -------------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--mint); color: var(--teal-950); }
.btn-primary:hover { background: #95E3D1; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-dark { background: var(--teal-900); color: #fff; }
.btn-dark:hover { background: var(--teal-700); }
.btn-sm { min-height: 44px; padding: 11px 20px; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* --------------------------------------------------------------- reveal --- */

.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-2 { transition-delay: .08s; }
.rv-3 { transition-delay: .16s; }
.rv-4 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ----------------------------------------------------------------- hero --- */

.hero {
  background: var(--teal-950);
  color: #fff;
  padding: clamp(52px, 9vw, 108px) 0 clamp(44px, 7vw, 84px);
  overflow: hidden;
}
/* The only decoration in the hero is the brand mark, set very large, cropped
   by the section and held behind the type. No photography. */
.hero::after {
  content: '';
  position: absolute;
  right: -14%;
  top: 50%;
  width: 78%;
  max-width: 900px;
  aspect-ratio: 1040 / 448;
  transform: translateY(-50%);
  background: url('logo-transparent.png') no-repeat center / contain;
  opacity: .04;
  pointer-events: none;
}
@media (min-width: 900px) { .hero::after { right: -6%; width: 54%; opacity: .045; } }

.hero .wrap { position: relative; z-index: 1; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--mint); }
.hero .lede { margin-top: 24px; }
.hero .btn-row { margin-top: clamp(28px, 4vw, 40px); }

.hero-stats {
  display: grid;
  gap: 2px;
  margin-top: clamp(38px, 6vw, 62px);
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.hero-stat .n {
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--mint);
  display: block;
  line-height: 1;
}
.hero-stat .c {
  font-size: .86rem;
  color: rgba(255, 255, 255, .68);
  display: block;
  margin-top: 10px;
}
.hero-stat + .hero-stat { margin-top: 22px; }
@media (min-width: 720px) { .hero-stat + .hero-stat { margin-top: 0; } }

/* ------------------------------------------------------------ two column -- */

.cols { display: grid; gap: clamp(26px, 4vw, 54px); }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 900px) { .cols.lean { grid-template-columns: 0.9fr 1.1fr; } }

.pull {
  border-left: 4px solid var(--mint-2);
  padding: 4px 0 4px 22px;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.24;
}
.on-dark .pull, .on-deep .pull { border-left-color: var(--mint); }

/* ------------------------------------------------------------ at a glance -- */

.nums { display: grid; gap: 2px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .nums { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .nums { grid-template-columns: repeat(4, 1fr); } }
.num { background: var(--teal-900); padding: clamp(24px, 3.4vw, 34px); }
.num .n {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--mint);
  display: flex;
  align-items: flex-end;
  min-height: clamp(3rem, 8vw, 4.2rem);
}
.num .n.word { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -.02em; }
.num h3 {
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 18px 0 12px;
  color: #fff;
}
.num p { font-size: .93rem; color: rgba(255, 255, 255, .72); margin: 0; }

.nums-after {
  margin-top: clamp(26px, 4vw, 38px);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: rgba(126, 217, 195, .1);
  border: 1px solid var(--line-dark);
  font-family: var(--display);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

/* ---------------------------------------------------------- workstreams --- */

.works { display: grid; gap: 16px; }
@media (min-width: 900px) { .works { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.work {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 34px);
  transition: border-color .3s var(--ease);
}
.work:hover { border-color: var(--mint-2); }
.work .i {
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--mint-2);
  display: block;
  margin-bottom: 16px;
}
.work h3 { font-size: clamp(1.1rem, 2.6vw, 1.4rem); letter-spacing: -.015em; text-transform: uppercase; font-weight: 800; }
.work > p { font-size: .95rem; color: var(--muted); margin: 14px 0 0; }

.commit {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border-left: 4px solid var(--mint-2);
}
.commit .t {
  font-family: var(--display);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-600);
  display: block;
  margin-bottom: 10px;
}
.commit p { font-size: .95rem; font-weight: 500; color: var(--ink); margin: 0; }
.commit li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}
.commit li::before {
  content: '';
  position: absolute;
  left: 2px; top: 17px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint-2);
}

/* The prospecting workstream carries the weight of the five, so it runs the
   full width and is set on teal rather than white. */
.work.is-key {
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: #fff;
}
@media (min-width: 900px) { .work.is-key { grid-column: 1 / -1; } }
.work.is-key .i { color: var(--mint); }
.work.is-key > p { color: rgba(255, 255, 255, .78); }
.work.is-key .key-body { display: grid; gap: clamp(20px, 3vw, 40px); margin-top: 16px; }
.work.is-key .key-body p { font-size: .95rem; color: rgba(255, 255, 255, .78); }
@media (min-width: 900px) { .work.is-key .key-body { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.work.is-key .commit {
  background: rgba(126, 217, 195, .1);
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--mint);
  border-radius: var(--radius-lg);
  margin-top: 0;
}
.work.is-key .commit .t { color: var(--mint); }
.work.is-key .commit p, .work.is-key .commit li { color: #fff; }
.work.is-key .commit li::before { background: var(--mint); }
.work.is-key .tag {
  display: inline-block;
  font-family: var(--display);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-950);
  background: var(--mint);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

/* --------------------------------------------------- section index card --- */

.works a.work { display: block; text-decoration: none; color: inherit; }

/* --------------------------------------------------------------- weekly --- */

.weekly { display: grid; gap: 12px; }
@media (min-width: 720px) { .weekly { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .weekly { grid-template-columns: repeat(4, 1fr); } }
.wcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px 24px;
}
.wcard .i {
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--mint-2);
  display: block;
  margin-bottom: 14px;
}
.wcard h3 { font-size: 1rem; letter-spacing: -.01em; text-transform: uppercase; font-weight: 800; }
.wcard p { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }
.wcard.is-month { background: var(--mint); border-color: var(--mint); }
.wcard.is-month .i { color: var(--teal-800); }
.wcard.is-month h3, .wcard.is-month p { color: var(--teal-950); }

.caveat {
  margin-top: clamp(24px, 4vw, 36px);
  padding: 18px 22px;
  border: 1px dashed var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius);
  background: #fff;
  font-size: .88rem;
  color: var(--muted);
}
.on-dark .caveat, .on-deep .caveat {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-dark);
  border-left-color: var(--brass);
  color: rgba(255, 255, 255, .7);
}

/* --------------------------------------------------------------- footer --- */

.site-foot {
  background: var(--teal-950);
  color: rgba(255, 255, 255, .62);
  padding: clamp(44px, 6vw, 72px) 0 44px;
  font-size: .84rem;
}
.site-foot .mark { width: 120px; margin-bottom: 22px; }
.site-foot .mark img { filter: brightness(0) invert(1); }
.foot-grid { display: grid; gap: 34px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.foot-h {
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}
.foot-list li { margin-bottom: 9px; }
.foot-list a { text-decoration: none; transition: color .2s; }
.foot-list a:hover { color: var(--mint); }
.foot-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: .78rem;
  color: rgba(255, 255, 255, .5);
}
.foot-legal p { margin-bottom: .8em; }

/* ------------------------------------------------------ worked example --- */
/* A white card holding a small table of figures. Same card shell as .work,
   same label as .commit .t. No new colours. */

.figure {
  margin-top: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 34px);
}
.figure .t {
  font-family: var(--display);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-600);
  display: block;
  margin-bottom: 14px;
}
.figure p { font-size: .95rem; color: var(--muted); margin: 16px 0 0; }
.figure p + p { margin-top: 10px; }

.fig-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fig-table th, .fig-table td { padding: 10px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.fig-table th:first-child, .fig-table td:first-child { text-align: left; padding-left: 0; }
.fig-table th:last-child, .fig-table td:last-child { padding-right: 0; }
.fig-table thead th {
  font-family: var(--display);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.fig-table tbody th { font-weight: 500; color: var(--muted); }
.fig-table .is-total th, .fig-table .is-total td { font-weight: 700; color: var(--ink); border-bottom: 0; }
