@font-face{font-family:"Geist";font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/Geist-Variable.woff2) format("woff2")}
@font-face{font-family:"Caveat";font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/Caveat-Variable.woff2) format("woff2")}
html{color-scheme:dark}
body{margin:0;background:#0b0b0b;color:#f2f2f0}
.mk{--font-geist:"Geist";--font-hand:"Caveat"}
.mk h1,.mk h2,.mk h3,.mk p{margin-top:0}
.mk ul,.mk ol{margin:0;padding:0}
/* Tutagora marketing site. Scoped under .mk so nothing leaks into the product UI.
   Black ground, white type, one grotesk. No accent colour. */

.mk {
  --ink: #0b0b0b;
  --ink-2: #111211;
  --line: rgba(242, 242, 240, 0.12);
  --line-2: rgba(242, 242, 240, 0.24);
  --white: #f2f2f0;
  --mute: rgba(242, 242, 240, 0.56);
  --mute-2: rgba(242, 242, 240, 0.36);

  --sans: var(--font-geist), "Helvetica Neue", Arial, sans-serif;
  --hand: var(--font-hand), "Segoe Script", "Bradley Hand", cursive;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 64px);

  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
}

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

.mk a {
  color: inherit;
  text-decoration: none;
}

.mk ::selection {
  background: var(--white);
  color: var(--ink);
}

.mk :focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.mk .wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mk .num {
  font-variant-numeric: tabular-nums;
}

.mk .label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.mk .arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-weight: 500;
  font-size: 1.0625rem;
}

.mk .arrow svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mk .arrow:hover svg {
  transform: translateX(0.25em);
}

.mk .quiet {
  color: var(--mute);
  transition: color 160ms ease;
}

.mk .quiet:hover {
  color: var(--white);
}

/* ---------- nav ---------- */

.mk .nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9375rem;
}

.mk .wordmark {
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.03em;
}

.mk .nav ul {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.mk .hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding-top: 8rem;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  isolation: isolate;
}

.mk .board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.mk .hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0), rgba(11, 11, 11, 0.85));
  z-index: -1;
  pointer-events: none;
}

.mk .hero h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(3rem, 9.4vw, 9.75rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 9.5em;
  text-wrap: balance;
}

.mk .hero h1 .w {
  display: inline-block;
  animation: rise 1100ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.mk .hero h1 .w:nth-child(1) { animation-delay: 80ms; }
.mk .hero h1 .w:nth-child(2) { animation-delay: 160ms; }
.mk .hero h1 .w:nth-child(3) { animation-delay: 240ms; }
.mk .hero h1 .w:nth-child(4) { animation-delay: 320ms; }
.mk .hero h1 .w:nth-child(5) { animation-delay: 400ms; }
.mk .hero h1 .w:nth-child(6) { animation-delay: 480ms; }
.mk .hero h1 .w:nth-child(7) { animation-delay: 560ms; }
.mk .hero h1 .w:nth-child(8) { animation-delay: 640ms; }
.mk .hero h1 .w:nth-child(9) { animation-delay: 720ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mk .hero .foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem 3rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  animation: fade 900ms ease 900ms both;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mk .hero .sub {
  margin: 0;
  max-width: 24em;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.35;
  color: var(--mute);
}

/* ---------- strip ---------- */

.mk .strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mk .strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
}

/* ---------- panels ---------- */

.mk .panel {
  border-top: 1px solid var(--line);
  padding-top: clamp(5rem, 12vw, 11rem);
  padding-bottom: clamp(5rem, 12vw, 11rem);
}

.mk .panel:first-of-type {
  border-top: 0;
}

.mk .panel .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.5rem;
  row-gap: 3.5rem;
  align-items: end;
}

.mk .panel .text {
  grid-column: 1 / 8;
}

.mk .panel .art {
  grid-column: 8 / 13;
  justify-self: end;
  width: 100%;
}

.mk .panel .art.wide {
  grid-column: 1 / 13;
  justify-self: stretch;
}

.mk .panel h2 {
  margin: 0 0 1.5rem;
  font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 6.25rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.mk .panel p {
  margin: 0;
  max-width: 26em;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.4;
  color: var(--mute);
}

.mk .panel p + p {
  margin-top: 0.9rem;
}

@media (max-width: 900px) {
  .mk .panel .text,
  .mk .panel .art {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ---------- phone ---------- */

.mk .phone {
  width: min(360px, 100%);
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 34px;
  background: #151615;
}

.mk .screen {
  border-radius: 24px;
  background: #000;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.mk .status {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px 0;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* M-Pesa STK prompt */

.mk .stk-bg {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  background: radial-gradient(120% 80% at 50% 0%, #1a1c1a, #000 70%);
}

.mk .stk {
  width: 100%;
  border-radius: 14px;
  background: #1c1d1c;
  padding: 18px 18px 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.mk .stk .t {
  font-weight: 600;
  margin-bottom: 8px;
}

.mk .stk .pin {
  margin: 16px 0 6px;
  border-bottom: 1px solid var(--line-2);
  padding: 8px 2px;
  letter-spacing: 0.4em;
  font-size: 1.25rem;
}

.mk .stk .btns {
  display: flex;
  justify-content: flex-end;
  gap: 1.75rem;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* WhatsApp */

.mk .wa {
  flex: 1;
  background: #0b141a;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk .wa .hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.mk .wa .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.8125rem;
}

.mk .bubble {
  align-self: flex-start;
  max-width: 92%;
  background: #1f2c34;
  color: #e9edef;
  border-radius: 10px;
  border-top-left-radius: 2px;
  padding: 9px 12px 7px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.mk .bubble p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.mk .bubble p + p {
  margin-top: 0.6em;
}

.mk .bubble time {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: rgba(233, 237, 239, 0.55);
  margin-top: 4px;
}

/* Attendance register */

.mk .register {
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem 1.5rem;
}

.mk .register .hd {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.mk .register table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.mk .register th {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  padding: 0 0 0.75rem;
}

.mk .register th:first-child,
.mk .register td:first-child {
  text-align: left;
  padding-left: 0;
  width: 40%;
}

.mk .register td {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.mk .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
  background: var(--white);
  vertical-align: middle;
}

.mk .dot.off {
  background: transparent;
  border-color: var(--mute-2);
}

.mk .dot.late {
  background: linear-gradient(90deg, var(--white) 50%, transparent 50%);
}

/* Runway */

.mk .runway {
  display: grid;
  gap: 1.5rem;
}

.mk .runway .big {
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.mk .runway .big small {
  display: block;
  font-size: 0.22em;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--mute);
  margin-top: 0.6em;
}

.mk .runway svg {
  width: 100%;
  height: auto;
  display: block;
}

.mk .runway .legend {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--mute);
}

/* ---------- vision ---------- */
/* A full-width drawing, then a plain heading and a first-person statement. */

.mk .vision {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 12vw, 11rem);
}

.mk .vision-art {
  background: #101110;
  border: 1px solid var(--line);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.mk .vision-art .sketch svg {
  width: 100%;
  height: auto;
  display: block;
}

.mk .vision h2 {
  margin: 0 0 1.75rem;
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.mk .vision p {
  margin: 0;
  max-width: 44em;
  font-size: clamp(1.125rem, 1.75vw, 1.5rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--white);
}

.mk .vision p + p {
  margin-top: 1.1em;
}

.mk .vision p:last-child {
  margin-top: 1.6em;
  color: var(--white);
}

/* ---------- close ---------- */

.mk .close {
  border-top: 1px solid var(--line);
  padding-top: clamp(5rem, 12vw, 11rem);
  padding-bottom: clamp(5rem, 12vw, 11rem);
}

.mk .close h2 {
  margin: 0 0 2.25rem;
  font-weight: 500;
  font-size: clamp(2.75rem, 7.6vw, 7.75rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 9em;
  text-wrap: balance;
}

.mk .close .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
  align-items: center;
}

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

.mk footer {
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  padding-bottom: 2.25rem;
  font-size: 0.875rem;
  color: var(--mute);
}

.mk footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 3rem;
  align-items: baseline;
}

.mk footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mk .hero h1 .w,
  .mk .hero .foot {
    animation: none;
  }
  .mk .arrow svg {
    transition: none;
  }
}

/* ---------- thesis ---------- */

.mk .thesis {
  padding-top: clamp(5rem, 12vw, 11rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.mk .thesis h2 {
  margin: 1.5rem 0 0;
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 17em;
  text-wrap: balance;
}

.mk .thesis p {
  margin: 1.75rem 0 0;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--mute);
}

/* ---------- systems ---------- */

.mk .sys .text .label {
  margin-bottom: 1.5rem;
}

.mk .sys .wrap {
  align-items: start;
}

.mk .index {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.mk .index li {
  break-inside: avoid;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
}

@media (max-width: 560px) {
  .mk .index {
    columns: 1;
  }
}

/* ---------- advisor ---------- */

.mk .advisor .text .label {
  margin-bottom: 1.5rem;
}

.mk .insights {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mk .insights li {
  display: grid;
  grid-template-columns: minmax(7rem, 12rem) 1fr;
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.4;
  color: var(--mute);
  max-width: 60em;
}

.mk .insights li:last-child {
  border-bottom: 1px solid var(--line);
}

.mk .insights strong {
  color: var(--white);
  font-weight: 500;
}

.mk .insights .k {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--white);
}

@media (max-width: 560px) {
  .mk .insights li {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* ---------- ontology ---------- */

.mk .onto {
  border-top: 1px solid var(--line);
  padding-top: clamp(5rem, 12vw, 11rem);
  padding-bottom: clamp(5rem, 12vw, 11rem);
}

.mk .onto h2 {
  margin: 1.5rem 0 0;
  font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 6.25rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 10em;
  text-wrap: balance;
}

.mk .onto > p {
  margin: 1.75rem 0 0;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--mute);
}

.mk .onto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.mk .onto-grid h3 {
  margin: 0 0 1rem;
}

.mk .onto-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}


/* ---------- cards ---------- */

.mk .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.mk .card {
  display: flex;
  flex-direction: column;
  min-height: 34rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-2);
  overflow: hidden;
  transition: border-color 220ms ease, background-color 220ms ease;
}

.mk .card:hover {
  border-color: var(--line-2);
  background: #161716;
}

.mk .card-art {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem;
  min-height: 15rem;
}

.mk .card-art svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.mk .card-body {
  padding: 1.75rem 1.75rem 1.75rem;
  border-top: 1px solid var(--line);
}

.mk .card-body h3 {
  margin: 0.9rem 0 0.75rem;
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mk .card-body p {
  margin: 0 0 1.5rem;
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.4;
}

.mk .card-body .arrow {
  font-size: 0.9375rem;
}

.mk .card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 0;
}

.mk .card-wide .card-art {
  flex: 1 1 55%;
  min-height: 16rem;
}

.mk .card-wide .card-art svg {
  max-width: 560px;
}

.mk .card-wide .card-body {
  flex: 1 1 45%;
  border-top: 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 2.25rem;
}

@media (max-width: 1000px) {
  .mk .cards {
    grid-template-columns: 1fr;
  }
  .mk .card {
    min-height: 0;
  }
  .mk .card-art {
    min-height: 12rem;
  }
  .mk .card-wide {
    flex-direction: column;
  }
  .mk .card-wide .card-body {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.75rem;
  }
}

/* pencil drawings on the system cards */

.mk .card-art .sketch {
  width: 100%;
  max-width: 340px;
}

.mk .card-art .sketch svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- brand ---------- */
/* The balloon is the only thing in colour. Its orange is spent in three
   places: the mark, the arrow on every call to action, and the endpoint of
   the Advisor's rising line. Nowhere else. */

.mk {
  --accent: #f4a21d;
}

.mk .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.mk .mark {
  display: block;
  flex: none;
}

.mk .arrow svg {
  color: var(--accent);
}

.mk .card:hover .arrow svg {
  transform: translateX(0.25em);
}

/* ---------- hero mark ---------- */
/* The balloon in chalk, upper right, drawing itself after the headline lands,
   then rising very slowly. Delete this block and the .hero-mark element to
   return the hero to type alone. */

.mk .hero-mark {
  position: absolute;
  top: clamp(6.5rem, 14vh, 9rem);
  right: var(--gutter);
  width: clamp(120px, 15vw, 220px);
  animation: lift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.mk .hero-mark .sketch svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes lift {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

@media (max-width: 720px) {
  .mk .hero-mark {
    width: 96px;
    top: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk .hero-mark {
    animation: none;
  }
}

/* ---------- one child's record ---------- */

.mk .record {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  aspect-ratio: 1200 / 640;
}

.mk .record-lines,
.mk .record-lines .sketch,
.mk .record-lines .sketch svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.mk .record-child {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  color: var(--accent);
}

.mk .record-child .record-name {
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.mk .record-child .record-detail {
  color: var(--accent);
  opacity: 0.75;
}

.mk .record-nodes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mk .record-node {
  display: contents;
}

.mk .record-node .record-box,
.mk .record-node .record-rel {
  position: absolute;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 500ms ease;
  transition-delay: calc(0.32s + var(--i) * 0.36s);
}

.mk .record-node .record-box {
  left: var(--x);
  top: var(--y);
}

.mk .record-node .record-rel {
  left: var(--mx);
  top: var(--my);
}

.mk .record.is-drawn .record-node .record-box,
.mk .record.is-drawn .record-node .record-rel {
  opacity: 1;
}

.mk .record-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  border: 1px solid var(--line);
  min-width: 11rem;
  max-width: 15rem;
}

.mk .record-name {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--white);
}

.mk .record-detail {
  font-size: 0.75rem;
  color: var(--mute);
  line-height: 1.3;
}

.mk .record-rel {
  padding: 0.1rem 0.4rem;
  background: var(--ink);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .mk .record {
    aspect-ratio: auto;
    display: grid;
    gap: 0.75rem;
  }
  .mk .record-lines {
    display: none;
  }
  .mk .record-child {
    position: static;
    transform: none;
    align-items: flex-start;
    text-align: left;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--accent);
    margin-bottom: 0.5rem;
  }
  .mk .record-nodes {
    display: grid;
    gap: 0.5rem;
  }
  .mk .record-node {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    align-items: start;
    gap: 0.75rem;
  }
  .mk .record-node .record-box,
  .mk .record-node .record-rel {
    position: static;
    transform: none;
    opacity: 1;
    transition: none;
  }
  .mk .record-rel {
    padding: 0.6rem 0 0;
    white-space: normal;
  }
  .mk .record-box {
    max-width: none;
    min-width: 0;
  }
}

/* ---------- class page ---------- */
/* A school day in periods. The board is sticky; the notes scroll past it. */

.mk .nav.static {
  position: static;
}

@media (max-width: 480px) {
  .mk .nav .hide-sm {
    display: none;
  }
}

.mk .timetable {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mk .timetable ol {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.mk .timetable li a {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.5rem 0.8rem 0;
  border-left: 1px solid var(--line);
  padding-left: 0.85rem;
  color: var(--mute-2);
  font-size: 0.8125rem;
  line-height: 1.2;
  transition: color 200ms ease;
}

.mk .timetable li:first-child a {
  border-left: 0;
  padding-left: 0;
}

.mk .timetable li a .t {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.mk .timetable li a .pn {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mk .timetable li a .nm {
  font-weight: 500;
  color: inherit;
}

.mk .timetable li.on a {
  color: var(--white);
}

.mk .timetable li.on a .t {
  color: var(--accent);
}

@media (max-width: 720px) {
  .mk .timetable ol {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mk .timetable li a {
    white-space: nowrap;
    padding-right: 1rem;
  }
  .mk .timetable li a .pn {
    display: none;
  }
}

.mk .door {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.mk .door h1 {
  margin: 1.25rem 0 0;
  font-weight: 500;
  font-size: clamp(2.75rem, 7.6vw, 7.75rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 10em;
  text-wrap: balance;
}

.mk .door .lede {
  margin: 1.75rem 0 0;
  max-width: 30em;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.4;
  color: var(--mute);
}

.mk .door-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem 2rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  max-width: 64rem;
}

.mk .door-form label {
  display: grid;
  gap: 0.6rem;
}

.mk .door-form input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  color: var(--white);
  font-family: var(--hand), cursive;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.1;
  padding: 0.2rem 0 0.35rem;
  outline: none;
  transition: border-color 160ms ease;
}

.mk .door-form input::placeholder {
  color: var(--mute-2);
}

.mk .door-form input:focus {
  border-bottom-color: var(--accent);
}

/* the periods */

.mk .period {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.mk .period .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.mk .board-col {
  position: sticky;
  top: 5.5rem;
}

.mk .chalkboard {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-2);
  outline: 6px solid #141414;
  outline-offset: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mk .chalkboard .board {
  z-index: -1;
}

.mk .chalk {
  font-family: var(--hand), cursive;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  line-height: 1.25;
  color: rgba(242, 242, 240, 0.92);
  max-width: 100%;
}

.mk .chalk p {
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.mk .chalk p + p {
  margin-top: 0.35em;
}

.mk .chalkboard.on .chalk p {
  opacity: 1;
  transform: none;
}

.mk .chalkboard.on .chalk p:nth-child(1) { transition-delay: 0.1s; }
.mk .chalkboard.on .chalk p:nth-child(2) { transition-delay: 0.6s; }
.mk .chalkboard.on .chalk p:nth-child(3) { transition-delay: 1.1s; }
.mk .chalkboard.on .chalk p:nth-child(4) { transition-delay: 1.6s; }
.mk .chalkboard.on .chalk p:nth-child(5) { transition-delay: 2.1s; }
.mk .chalkboard.on .chalk p:nth-child(6) { transition-delay: 2.6s; }

.mk .chalk-h {
  font-size: 0.7em;
  letter-spacing: 0.02em;
  color: var(--mute);
  margin-bottom: 0.4em !important;
}

.mk .chalk em {
  font-style: normal;
  color: var(--accent);
}

.mk .notes h2 {
  margin: 1.25rem 0 1.25rem;
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.mk .notes p {
  margin: 0 0 1rem;
  max-width: 30em;
  color: var(--mute);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.45;
}

.mk .notes .phone,
.mk .notes .register,
.mk .notes .runway {
  margin-top: 2rem;
}

.mk .notes .register {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .mk .period .wrap {
    grid-template-columns: 1fr;
  }
  .mk .board-col {
    position: static;
  }
  .mk .chalkboard {
    aspect-ratio: auto;
    min-height: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk .chalk p {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.mk .homework {
  border-top: 1px solid var(--line);
  padding-top: clamp(5rem, 12vw, 11rem);
  padding-bottom: clamp(5rem, 12vw, 11rem);
}

.mk .homework h2 {
  margin: 1.25rem 0 1.5rem;
  font-weight: 500;
  font-size: clamp(2.5rem, 6.4vw, 6.25rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 10em;
  text-wrap: balance;
}

.mk .homework p {
  margin: 0 0 2rem;
  max-width: 34em;
  color: var(--mute);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
}

.mk .homework .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
  align-items: center;
}

/* ---------- class, one board ---------- */
/* The board stays on the left for the whole lesson; the notes scroll on the
   right. When the period changes the board is rubbed out and rewritten. */

.mk .timetable ol {
  grid-template-columns: repeat(7, 1fr);
}

.mk .lesson {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.mk .lesson-board {
  position: sticky;
  top: 5.5rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2rem;
}

.mk .lesson-notes .door {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.mk .lesson-notes .door h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.mk .lesson-notes .door-form {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.mk .lesson-notes .period,
.mk .lesson-notes .homework {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.mk .lesson-notes .period h2 {
  margin: 1.25rem 0 1.25rem;
  font-weight: 500;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.mk .lesson-notes .period p {
  margin: 0 0 1rem;
  max-width: 34em;
  color: var(--mute);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.45;
}

.mk .lesson-notes .period .index {
  margin: 1.75rem 0 0;
  columns: 2;
  column-gap: 2rem;
}

.mk .lesson-notes .period .phone,
.mk .lesson-notes .period .register,
.mk .lesson-notes .period .runway {
  margin-top: 2.25rem;
}

.mk .lesson-notes .register td.r,
.mk .lesson-notes .register th.r {
  text-align: right;
}

.mk .lesson-notes .homework h2 {
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
}

/* the rub-out */

.mk .chalkboard {
  aspect-ratio: 4 / 3;
}

.mk .duster {
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -40%;
  width: 34%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 35%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(6deg);
  opacity: 0;
  pointer-events: none;
}

.mk .chalkboard.wipe .duster {
  animation: rub 620ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes rub {
  0% { left: -40%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

.mk .chalkboard.wipe .chalk p {
  opacity: 0;
  transform: none;
  transition: opacity 320ms ease;
}

.mk .chalkboard.wipe .chalk p:nth-child(1) { transition-delay: 0.05s; }
.mk .chalkboard.wipe .chalk p:nth-child(2) { transition-delay: 0.12s; }
.mk .chalkboard.wipe .chalk p:nth-child(3) { transition-delay: 0.19s; }
.mk .chalkboard.wipe .chalk p:nth-child(4) { transition-delay: 0.26s; }

@media (max-width: 900px) {
  .mk .lesson {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .mk .lesson-board {
    position: sticky;
    top: 3.6rem;
    z-index: 4;
    padding: 0.75rem 0 0.75rem;
    background: var(--ink);
  }
  .mk .chalkboard {
    aspect-ratio: auto;
    min-height: 0;
    height: 38vh;
    padding: 1rem 1.1rem;
  }
  .mk .chalk {
    font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  }
  .mk .lesson-notes .period .index {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk .chalkboard.wipe .duster {
    animation: none;
  }
}

/* ---------- class: the board as the stage ---------- */

.mk .lesson {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.mk .lesson-board {
  top: 4.6rem;
  height: calc(100svh - 4.6rem);
  padding: 1.25rem 0;
  box-sizing: border-box;
}

.mk .lesson-board .chalkboard {
  aspect-ratio: auto;
  height: 100%;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
}

.mk .lesson-board .chalk {
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
  max-width: 22em;
}

.mk .lesson-notes {
  padding-top: 1.25rem;
}

.mk .lesson-notes .period,
.mk .lesson-notes .homework {
  border: 1px solid var(--line);
  background: #101110;
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  scroll-margin-top: 5.5rem;
}

.mk .lesson-notes .period:last-of-type {
  margin-bottom: 0;
}

.mk .lesson-notes .door {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.mk .register {
  overflow-x: auto;
}

@media (max-width: 900px) {
  .mk .lesson {
    grid-template-columns: minmax(0, 1fr);
  }
  .mk .lesson-board {
    height: auto;
    padding: 0.75rem 0;
  }
  .mk .lesson-board .chalkboard {
    height: 38vh;
    padding: 1rem 1.1rem;
  }
  .mk .lesson-board .chalk {
    font-size: clamp(1.1rem, 4.4vw, 1.4rem);
    max-width: none;
  }
  .mk .lesson-notes .period,
  .mk .lesson-notes .homework {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }
}

/* ---------- class: the board fills the screen, cards ride over it ---------- */

.mk .timetable {
  position: sticky;
}

.mk .progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 120ms linear;
}

.mk .class .door {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.mk .class .door h1 {
  font-size: clamp(2.5rem, 6vw, 6.5rem);
}

.mk .lesson {
  display: block;
  position: relative;
}

.mk .lesson-board {
  position: sticky;
  top: 4.6rem;
  height: calc(100svh - 4.6rem);
  padding: 0;
  z-index: 1;
}

.mk .lesson-board .chalkboard {
  height: 100%;
  border-left: 0;
  border-right: 0;
  outline: none;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 0;
  display: block;
}

/* the writing sits on the right half, clear of the cards */
.mk .lesson-board .chalk {
  position: absolute;
  left: calc(416px + var(--gutter) * 2);
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  max-width: none;
  font-size: clamp(1.5rem, 2.3vw, 2.5rem);
}

/* lines arrive one at a time as cards pass; leave the same way */
.mk .lesson-board .chalk p {
  transition: opacity 500ms ease, transform 500ms ease;
}

.mk .lesson-board .chalkboard.on .chalk p.out {
  opacity: 0;
  transform: translateY(6px);
}

.mk .lesson-board .chalkboard.on .chalk p.in {
  opacity: 1;
  transform: none;
}

.mk .lesson-board .chalkboard.on .chalk p:nth-child(1) { transition-delay: 0.1s; }
.mk .lesson-board .chalkboard.on .chalk p:nth-child(2) { transition-delay: 0.45s; }
.mk .lesson-board .chalkboard.on .chalk p:nth-child(3) { transition-delay: 0.45s; }
.mk .lesson-board .chalkboard.on .chalk p:nth-child(4) { transition-delay: 0.45s; }

/* the cards */
.mk .lesson-steps {
  position: relative;
  z-index: 2;
  width: 416px;
  margin-left: var(--gutter);
  margin-top: calc(-100svh + 4.6rem);
  padding-bottom: 20svh;
}

.mk .slot {
  min-height: 112svh;
  display: flex;
  align-items: center;
}

.mk .note {
  width: 100%;
  background: #141513;
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  padding: 1.5rem 1.6rem 1.6rem;
}

.mk .note .label {
  margin-bottom: 0.9rem;
}

.mk .note h2 {
  margin: 0 0 0.9rem;
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mk .note h3 {
  margin: 0 0 0.7rem;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.mk .note p {
  margin: 0 0 0.8rem;
  color: var(--mute);
  font-size: 0.9875rem;
  line-height: 1.45;
}

.mk .note p:last-child {
  margin-bottom: 0;
}

.mk .note .index {
  columns: 1;
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

.mk .note .index li {
  padding: 0.45rem 0;
}

.mk .note .phone {
  width: 100%;
  margin-top: 0.75rem;
}

.mk .note .screen {
  min-height: 380px;
}

.mk .note .register {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem 1.1rem;
}

.mk .note .register table {
  font-size: 0.8125rem;
}

.mk .note .register th,
.mk .note .register td {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.mk .note .register th:first-child,
.mk .note .register td:first-child {
  padding-left: 0;
}

.mk .note .runway {
  margin-top: 1rem;
}

.mk .note .runway .big {
  font-size: 4.5rem;
}

.mk .note .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 1.25rem;
}

/* a teacher's record */
.mk .staff {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem 1.1rem;
  margin-top: 0.75rem;
}

.mk .staff .hd {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.mk .staff dl {
  margin: 0;
}

.mk .staff dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.mk .staff dt {
  color: var(--mute);
}

.mk .staff dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .mk .lesson-board {
    top: 3.6rem;
    height: 40svh;
    z-index: 4;
  }
  .mk .lesson-board .chalk {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 50%;
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  }
  .mk .lesson-steps {
    width: auto;
    margin: 0 var(--gutter);
    padding-bottom: 4rem;
  }
  .mk .slot {
    min-height: 0;
    padding: 1.25rem 0;
  }
  .mk .note {
    box-shadow: none;
  }
}

/* ---------- class: the drawing on the board ---------- */

.mk .timetable ol {
  grid-template-columns: repeat(10, 1fr);
}

.mk .timetable li a {
  font-size: 0.75rem;
}

.mk .chalk-figure {
  position: relative;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 1200 / 600;
  margin-top: 0.75rem;
}

.mk .chalk-layer,
.mk .chalk-layer .sketch,
.mk .chalk-layer .sketch svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.mk .chalk-figure text {
  font-family: var(--hand);
}

.mk .lesson-board .chalk p:empty {
  display: none;
}

/* WhatsApp reply buttons and an outgoing bubble */

.mk .bubble.out {
  align-self: flex-end;
  background: #005c4b;
  border-radius: 10px;
  border-top-right-radius: 2px;
}

.mk .btns-wa {
  align-self: flex-start;
  max-width: 92%;
  width: 100%;
  background: #1f2c34;
  border-radius: 10px;
  overflow: hidden;
}

.mk .btns-wa span {
  display: block;
  text-align: center;
  padding: 0.55rem;
  color: #53bdeb;
  font-weight: 500;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .mk .chalk-figure {
    max-width: none;
    margin-top: 0.4rem;
  }
  .mk .chalk-figure text {
    font-size: 26px;
  }
  .mk .lesson-board .chalkboard {
    height: 46vh;
  }
}

/* ---------- a phone, showing WhatsApp ---------- */

.mk .ph {
  width: min(330px, 100%);
  padding: 9px;
  border-radius: 46px;
  background: #060606;
  box-shadow:
    0 0 0 1.5px #3a3a3a,
    0 0 0 4px #101010,
    0 30px 60px -20px rgba(0, 0, 0, 0.8);
  margin-top: 0.9rem;
}

.mk .ph-screen {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  background: #0b141a;
  display: flex;
  flex-direction: column;
  min-height: 600px;
  font-family: -apple-system, "SF Pro Text", var(--font-geist), system-ui, sans-serif;
  color: #e9edef;
}

.mk .ph-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 27px;
  border-radius: 14px;
  background: #000;
  z-index: 2;
}

.mk .ph-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px 0 30px;
  font-size: 0.9375rem;
  font-weight: 600;
  background: #1f2c34;
  height: 52px;
  box-sizing: border-box;
}

.mk .ph-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mk .wa-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 9px 8px;
  background: #1f2c34;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mk .wa-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #53bdeb;
  font-size: 0.9375rem;
  padding-right: 2px;
}

.mk .wa-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f4a21d;
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9375rem;
  flex: none;
}

.mk .wa-who {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  flex: 1;
}

.mk .wa-who strong {
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mk .wa-who span {
  font-size: 0.75rem;
  color: #8696a0;
}

.mk .wa-acts {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #53bdeb;
}

.mk .wa-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 10px 12px;
  background-color: #0b141a;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.035) 0 1.5px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.03) 0 1px, transparent 1.5px),
    radial-gradient(circle at 45% 85%, rgba(255, 255, 255, 0.03) 0 1.2px, transparent 2px),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.028) 0 1px, transparent 1.5px);
  background-size: 54px 54px, 38px 38px, 62px 62px, 46px 46px;
}

.mk .wa-pill {
  align-self: center;
  background: #182229;
  color: #8696a0;
  font-size: 0.6875rem;
  padding: 4px 10px;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 3px;
}

.mk .wa-pill.wa-lock {
  text-transform: none;
  letter-spacing: 0;
  color: #ffd279;
  text-align: center;
  max-width: 88%;
  line-height: 1.3;
  margin-bottom: 8px;
}

.mk .bub {
  position: relative;
  max-width: 86%;
  padding: 6px 8px 5px 9px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.38;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.25);
}

.mk .bub.in {
  align-self: flex-start;
  background: #202c33;
  border-top-left-radius: 0;
}

.mk .bub.out {
  align-self: flex-end;
  background: #005c4b;
  border-top-right-radius: 0;
}

.mk .bub::before {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.mk .bub.in::before {
  left: -8px;
  border-width: 0 8px 10px 0;
  border-color: transparent #202c33 transparent transparent;
}

.mk .bub.out::before {
  right: -8px;
  border-width: 0 0 10px 8px;
  border-color: transparent transparent transparent #005c4b;
}

.mk .bub + .bub.in,
.mk .bub + .bub.out {
  margin-top: 2px;
}

.mk .bub.in + .bub.in::before,
.mk .bub.out + .bub.out::before {
  display: none;
}

.mk .bub.in + .bub.in {
  border-top-left-radius: 8px;
}

.mk .bub.out + .bub.out {
  border-top-right-radius: 8px;
}

.mk .bub-body p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.mk .bub-body p + p {
  margin-top: 0.55em;
}

.mk .bub-body strong {
  font-weight: 600;
}

.mk .bub-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 6px -2px -2px 10px;
  font-size: 0.6875rem;
  color: rgba(233, 237, 239, 0.6);
}

.mk .bub-meta .ticks {
  color: #53bdeb;
}

.mk .wa-replies {
  align-self: flex-start;
  width: 86%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 1px;
}

.mk .wa-replies span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #202c33;
  color: #53bdeb;
  border-radius: 8px;
  padding: 9px 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.25);
}

.mk .wa-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 6px;
  background: #1f2c34;
  color: #8696a0;
}

.mk .wa-field {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #2a3942;
  border-radius: 18px;
  padding: 7px 10px 7px 14px;
  font-size: 0.9375rem;
  color: #8696a0;
}

.mk .ph-home {
  height: 22px;
  background: #1f2c34;
  position: relative;
}

.mk .ph-home::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  transform: translateX(-50%);
  width: 118px;
  height: 5px;
  border-radius: 3px;
  background: #e9edef;
}

@media (max-width: 900px) {
  .mk .timetable li a {
    font-size: 0.7rem;
  }
  .mk .ph {
    margin-left: auto;
    margin-right: auto;
  }
}

.mk .note .ph-screen {
  min-height: 540px;
}

.mk .close-sub {
  max-width: 34rem;
  color: var(--mute);
  margin: 1rem 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* ---------- class on a phone: a board per period, cards as plain text ---------- */

.mk .mboard {
  display: none;
}

@media (max-width: 900px) {
  .mk .lesson-board {
    display: none;
  }
  .mk .lesson-steps {
    margin: 0;
    padding: 0 var(--gutter) 3rem;
  }
  .mk .mboard {
    display: block;
    position: relative;
    overflow: hidden;
    margin: 2.75rem calc(-1 * var(--gutter)) 0.25rem;
    padding: 1.5rem var(--gutter) 1.6rem;
    background: #0c0d0c;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .mk .mboard .chalk {
    position: relative;
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    line-height: 1.28;
  }
  .mk .mboard .chalk p:empty {
    display: none;
  }
  .mk .mboard .chalk-figure {
    max-width: none;
    margin: 0.9rem 0 0.2rem;
  }
  .mk .mboard .chalk-figure text {
    font-size: 26px;
  }
  .mk .slot {
    min-height: 0;
    padding: 1.35rem 0 1.15rem;
    border-top: 1px solid var(--line);
  }
  .mk .mboard + .slot {
    border-top: 0;
    padding-top: 1.5rem;
  }
  .mk .note {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .mk .note h2 {
    font-size: 1.6rem;
  }
  .mk .note h3 {
    font-size: 1.2rem;
  }
  .mk .note p,
  .mk .note .index li {
    font-size: 1rem;
  }
  .mk .note .ph {
    width: min(300px, 100%);
    margin: 1rem auto 0.25rem;
  }
  .mk .note .ph-screen {
    min-height: 480px;
  }
  .mk .note .staff {
    margin-top: 0.75rem;
  }
  .mk .timetable li a {
    padding: 0.55rem 0.9rem 0.55rem 0.7rem;
    font-size: 0.72rem;
    gap: 0.05rem;
  }
  .mk .timetable li a .t {
    font-size: 0.6rem;
  }
  .mk .door h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
}

/* the phone boards are plain blocks, not the 4:3 framed board */
@media (max-width: 900px) {
  .mk .mboard {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    border-left: 0;
    border-right: 0;
    outline: 0;
    display: block;
  }
  .mk .mboard .chalk-figure {
    width: 92%;
    margin: 1rem auto 0.25rem;
  }
}

/* ---------- questions ---------- */

.mk .faq {
  border-top: 1px solid var(--line);
  padding-top: clamp(4rem, 9vw, 8rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.mk .faq h2 {
  margin: 0 0 2.5rem;
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.mk .faq dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 4rem;
  max-width: 1100px;
}

.mk .faq dl div {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.5rem;
}

.mk .faq dt {
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.mk .faq dd {
  margin: 0;
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 34rem;
}

@media (max-width: 720px) {
  .mk .faq dl {
    grid-template-columns: 1fr;
  }
}

/* ---------- SMIS panel: what you expect, then what you did not ---------- */

.mk .panel.smis .wrap {
  display: block;
}

.mk .panel.smis .text {
  max-width: 40rem;
}

.mk .panel.smis .text h2 {
  max-width: 12em;
}

.mk .expect {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: start;
}

.mk .chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mk .chips li {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  color: var(--mute);
  white-space: nowrap;
}

.mk .expect .got {
  margin: 0.3rem 0 0;
  color: var(--white);
  font-size: 0.95rem;
  white-space: nowrap;
}

.mk .diff {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem 5rem;
  align-items: center;
}

.mk .diff h3 {
  margin: 0 0 1.1rem;
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 11em;
  text-wrap: balance;
}

.mk .diff p {
  color: var(--mute);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 32rem;
}

/* the payment, and everything it moves */

.mk .match {
  position: relative;
  max-width: 520px;
  margin-left: auto;
}

.mk .slip {
  position: relative;
  background: #151615;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 0.9rem 1rem 0.8rem;
}

.mk .slip.sms {
  border-left: 3px solid #3ab54a;
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms ease;
}

.mk .match.go .slip.sms {
  opacity: 1;
  transform: none;
}

.mk .slip .from {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: #3ab54a;
  margin-bottom: 0.35rem;
}

.mk .slip p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--white);
  max-width: none;
}

.mk .slip time {
  position: absolute;
  right: 1rem;
  top: 0.9rem;
  font-size: 0.75rem;
  color: var(--mute);
}

.mk .match .wire {
  width: 1px;
  height: 2.25rem;
  margin: 0 0 0 2.5rem;
  background: rgba(242, 242, 240, 0.35);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 500ms ease 500ms;
}

.mk .match.go .wire {
  transform: none;
}

.mk .lands {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.mk .lands li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.mk .match.go .lands li:nth-child(1) { transition-delay: 1.0s; }
.mk .match.go .lands li:nth-child(2) { transition-delay: 1.35s; }
.mk .match.go .lands li:nth-child(3) { transition-delay: 1.7s; }
.mk .match.go .lands li:nth-child(4) { transition-delay: 2.05s; }

.mk .match.go .lands li {
  opacity: 1;
  transform: none;
}

.mk .lands .k {
  color: var(--white);
  font-weight: 500;
}

.mk .lands .w {
  color: var(--mute);
}

.mk .lands .v {
  color: var(--accent);
  text-align: right;
  white-space: nowrap;
}

.mk .lands .v s {
  color: var(--mute);
  margin-right: 0.4em;
}

.mk .lands li:last-child .v {
  white-space: normal;
  max-width: 14rem;
}

.mk .match .stamp {
  display: block;
  text-align: right;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: var(--mute);
  opacity: 0;
  transition: opacity 500ms ease 2.4s;
}

.mk .match.go .stamp {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .mk .slip.sms, .mk .lands li, .mk .match .stamp { opacity: 1; transform: none; transition: none; }
  .mk .match .wire { transform: none; transition: none; }
}

@media (max-width: 900px) {
  .mk .expect {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .mk .diff {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mk .match {
    margin-left: 0;
  }
  .mk .lands li {
    grid-template-columns: 6rem minmax(0, 1fr);
  }
  .mk .lands .v {
    grid-column: 2;
    text-align: left;
  }
}

/* ---------- the light row: the school, without the chasing ---------- */

.mk .work {
  --w-ink: #111;
  --w-mute: #6f6f6b;
  --w-line: rgba(0, 0, 0, 0.1);
  --w-stage: #f2f2ef;
  --w-paper: #fff;
  --w-green: #1a7f37;
  background: #fff;
  color: var(--w-ink);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
}

.mk .work .whead {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem 5rem;
  align-items: start;
}

.mk .work h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  color: var(--w-ink);
}

.mk .work .whead p {
  margin: 0.4rem 0 0;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.35;
  color: var(--w-mute);
  letter-spacing: -0.01em;
  max-width: 30em;
}

.mk .work .whead p b {
  color: var(--w-ink);
  font-weight: 500;
}

.mk .wnav {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 2.5rem 0 1.5rem;
}

.mk .wnav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #ededea;
  color: var(--w-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-family: inherit;
}

.mk .wnav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.mk .wtrack {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 1rem;
  margin-right: calc(-1 * var(--gutter));
  padding-right: var(--gutter);
}

.mk .wtrack::-webkit-scrollbar {
  display: none;
}

.mk .wcard {
  flex: 0 0 min(880px, 88vw);
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.mk .wcard.in {
  opacity: 1;
  transform: none;
}

.mk .work .stage {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--w-stage);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2.5rem;
}

.mk .wcap {
  padding: 1.6rem 0 0;
}

.mk .wcap .k {
  font-size: 0.9375rem;
  color: var(--w-mute);
  margin-bottom: 0.5rem;
}

.mk .wcap .t {
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--w-ink);
}

.mk .wcap p {
  margin: 0;
  color: var(--w-mute);
  font-size: 1.0625rem;
  line-height: 1.5;
  max-width: 36em;
}

.mk .work .paper {
  background: var(--w-paper);
  color: var(--w-ink);
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 1.1rem 1.2rem;
  font-size: 0.875rem;
  line-height: 1.3;
}

.mk .work .paper .hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.mk .work .paper .hd b {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
}

.mk .work .paper .hd small {
  display: block;
  color: var(--w-mute);
  font-weight: 400;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.mk .work .paper .hd .big {
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  color: #a8a8a4;
  line-height: 1;
}

.mk .work .paper .hd .big.on {
  color: var(--w-ink);
}

.mk .work .paper .hd .meta {
  font-size: 0.75rem;
  color: var(--w-mute);
}

.mk .work .row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.mk .work .av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(160deg, #d9cfc4, #b9a898);
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.mk .work .av::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: 44%;
  height: 44%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}

.mk .work .av::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 90%;
  height: 60%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}

.mk .work .av.b { background: linear-gradient(160deg, #cfd9d3, #98aca2); }
.mk .work .av.c { background: linear-gradient(160deg, #d6d0e0, #a89cbd); }
.mk .work .av.d { background: linear-gradient(160deg, #e3d3c2, #c9a888); }
.mk .work .av.e { background: linear-gradient(160deg, #cdd8e2, #94a9bb); }

.mk .work .row .n {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
}

.mk .work .row .n small {
  display: block;
  color: var(--w-mute);
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.mk .work .row .s {
  font-size: 0.8125rem;
  color: var(--w-mute);
  white-space: nowrap;
}

.mk .work .row .s.ok {
  color: var(--w-green);
}

.mk .work .row .s.ok::before {
  content: "\2713  ";
}

.mk .work .pair {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 100%;
  display: grid;
  place-items: center;
}

.mk .work .pair .paper {
  position: absolute;
  width: 52%;
}

.mk .work .pair .a {
  left: 2%;
  top: 4%;
  opacity: 0.8;
  transform: rotate(-1deg);
}

.mk .work .pair .b {
  right: 2%;
  top: 12%;
  transform: rotate(0.5deg);
}

.mk .work .rc {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 100%;
  display: grid;
  place-items: center;
}

.mk .work .rc .paper {
  width: 58%;
  padding: 1.3rem 1.4rem;
}

.mk .work .rc h4 {
  margin: 0 0 0.15rem;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.mk .work .rc .sub {
  color: var(--w-mute);
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
}

.mk .work .rc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.mk .work .rc td {
  padding: 0.4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.mk .work .rc td:last-child {
  text-align: right;
}

.mk .work .rc td.b {
  width: 52%;
}

.mk .work .rc .gb td .av {
  width: 22px;
  height: 22px;
  margin-right: 0.4rem;
}

.mk .work .rc .gb td.g {
  color: var(--w-mute);
  width: 2.5rem;
}

.mk .work .bar {
  display: block;
  height: 5px;
  background: #ececea;
  border-radius: 3px;
  overflow: hidden;
}

.mk .work .bar i {
  display: block;
  height: 100%;
  background: var(--w-ink);
  border-radius: 3px;
}

.mk .work .pill {
  position: absolute;
  background: var(--w-paper);
  border-radius: 999px;
  padding: 0.5rem 0.55rem 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.mk .work .pill i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--w-green);
  display: inline-block;
}

.mk .work .pill i.blue { background: #2b6cb0; }
.mk .work .pill i.red { background: #c0392b; }

.mk .work .pill .av {
  width: 28px;
  height: 28px;
}

.mk .work .q1 { right: 4%; top: 18%; }
.mk .work .q2 { left: 4%; bottom: 22%; }
.mk .work .q3 { right: 8%; bottom: 14%; }

.mk .work .today {
  width: 100%;
  max-width: 440px;
}

.mk .work .today .row {
  padding: 0.6rem 0;
}

.mk .work .badge {
  min-width: 26px;
  height: 26px;
  border-radius: 13px;
  background: var(--w-ink);
  color: #fff;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  padding: 0 0.5rem;
}

.mk .work .badge.warn { background: #fbe7c6; color: #7a4a00; }
.mk .work .badge.ok { background: #dff3e4; color: var(--w-green); }

.mk .wph {
  width: min(300px, 70%);
  background: #0b141a;
  border-radius: 34px;
  border: 8px solid #0e0e0e;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #e9edef;
}

.mk .wph .top {
  background: #1f2c34;
  padding: 0.9rem 1rem 0.6rem;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mk .wph .top .t {
  background: var(--accent);
  color: #111;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.75rem;
}

.mk .wph .top .when {
  margin-left: auto;
  color: #8696a0;
  font-size: 0.75rem;
}

.mk .wph .chat {
  padding: 0.8rem 0.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.03) 0 1px, transparent 2px);
  background-size: 40px 40px;
}

.mk .wph .bub {
  background: #202c33;
  border-radius: 8px;
  border-top-left-radius: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 94%;
}

.mk .wph .bub p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  max-width: none;
}

.mk .wph .bub p + p {
  margin-top: 0.45em;
}

.mk .wph .bub time {
  display: block;
  text-align: right;
  font-size: 0.65rem;
  color: rgba(233, 237, 239, 0.55);
  margin-top: 0.2rem;
}

.mk .wph .btn {
  background: #202c33;
  color: #53bdeb;
  border-radius: 8px;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
}

@media (max-width: 820px) {
  .mk .work .whead {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .mk .wnav {
    margin-top: 1.5rem;
  }
  .mk .wcard {
    flex-basis: 88vw;
  }
  .mk .work .stage {
    padding: 1.2rem;
    aspect-ratio: 4 / 3;
  }
  .mk .work .pair .paper {
    width: 60%;
  }
  .mk .work .pill {
    font-size: 0.75rem;
  }
  .mk .work .rc .paper {
    width: 72%;
  }
}

@media (max-width: 820px) {
  .mk .work .rc .paper {
    width: 64%;
    padding: 1rem 1.1rem;
    font-size: 0.75rem;
  }
  .mk .work .rc h4 {
    font-size: 0.95rem;
  }
  .mk .work .rc table {
    font-size: 0.75rem;
  }
  .mk .work .pill {
    font-size: 0.72rem;
    padding: 0.4rem 0.5rem 0.4rem 0.75rem;
  }
  .mk .work .pill .av {
    width: 22px;
    height: 22px;
  }
  .mk .work .q1 { right: 0; top: 4%; }
  .mk .work .q2 { left: 0; bottom: 6%; }
  .mk .work .q3 { right: 0; bottom: 0; }
  .mk .work .today {
    max-width: 100%;
  }
}

/* ---------- the blind: the block before the light row holds still while it is covered ---------- */

.mk .pin-wrap {
  position: relative;
}

.mk .pin {
  position: sticky;
  top: calc(100svh - var(--pin-h, 100svh));
  z-index: 1;
}

.mk .pin-inner {
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.mk .pin-wrap .work,
.mk .pin-wrap .mess {
  position: relative;
  z-index: 2;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .mk .pin {
    position: static;
  }
}

/* ---------- SMIS: headline beside the constellation ---------- */

.mk .panel.smis .top {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 3rem 5rem;
  align-items: center;
}

.mk .graph-art {
  width: 100%;
}

.mk .graph {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.mk .g-edges line {
  stroke: rgba(242, 242, 240, 0.2);
  stroke-width: 1;
}

.mk .g-node circle {
  fill: #0b0b0b;
  stroke: rgba(242, 242, 240, 0.75);
  stroke-width: 1.2;
}

.mk .g-node.is-learner circle {
  stroke: var(--accent);
  stroke-width: 1.6;
}

.mk .g-name {
  font-family: var(--sans);
  font-size: 11.5px;
  fill: var(--white);
  letter-spacing: 0.01em;
}

.mk .g-node.is-learner .g-name {
  fill: var(--accent);
  font-size: 12.5px;
}

.mk .g-sub {
  font-family: var(--sans);
  font-size: 9.5px;
  fill: var(--mute);
  letter-spacing: 0.02em;
}

.mk .g-pulses circle {
  fill: var(--accent);
}

.mk .g-pulses .g-dim {
  fill: rgba(242, 242, 240, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .mk .g-pulses {
    display: none;
  }
}

@media (max-width: 900px) {
  .mk .panel.smis .top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mk .g-name {
    font-size: 13px;
  }
  .mk .g-sub {
    font-size: 11px;
  }
}

/* ---------- Advisor: a conversation ---------- */

.mk .watch {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.mk .watch li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 34rem;
}

.mk .watch b {
  color: var(--white);
  font-weight: 500;
}

.mk .panel.advisor .art.talk {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mk .panel.advisor .art.talk .ph {
  margin-top: 0;
}

@media (max-width: 900px) {
  .mk .panel.advisor .art.talk {
    justify-content: flex-start;
  }
}

.mk .panel.smis .top .text,
.mk .panel.smis .top .graph-art {
  grid-column: auto;
  align-self: center;
}

/* ---------- SMIS: the ontology in chalk, beside the headline ---------- */

.mk .onto-board {
  position: relative;
  overflow: hidden;
  background: #0c0d0c;
  border: 1px solid var(--line-2);
  outline: 6px solid #141414;
  padding: 1.5rem 1.25rem;
  isolation: isolate;
}

.mk .onto-board .board {
  z-index: 0;
}

.mk .onto-board .chalk-figure {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0;
}

.mk .panel.smis .top .onto-board {
  grid-column: auto;
  align-self: center;
}

@media (max-width: 900px) {
  .mk .onto-board {
    margin: 0 calc(-1 * var(--gutter) + 6px);
    padding: 1rem 0.75rem;
  }
  .mk .onto-board .chalk-figure text {
    font-size: 26px;
  }
}

@media (max-width: 900px) {
  .mk .onto-board .chalk-figure {
    width: 92%;
    margin: 0 auto;
  }
}

/* ---------- SMIS: ask the school ---------- */

.mk .panel.smis .top {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem 4rem;
}

.mk .panel.smis .top .ask {
  grid-column: auto;
  align-self: center;
  min-width: 0;
}

.mk .ask-board {
  position: relative;
  overflow: hidden;
  background: #0c0d0c;
  border: 1px solid var(--line-2);
  outline: 6px solid #141414;
  isolation: isolate;
}

.mk .ask-board .board {
  z-index: 0;
}

.mk .ask-slate {
  position: relative;
  z-index: 1;
  padding: 1.1rem 1.4rem 1rem;
}

.mk .ask-question,
.mk .ask-answer {
  font-family: var(--hand), cursive;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.mk .ask-question {
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  color: rgba(242, 242, 240, 0.92);
  min-height: 1.25em;
}

.mk .ask-answer {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  color: #f4a21d;
  min-height: 2.4em;
  margin-top: 0.2rem;
}

.mk .ask-question.writing::after,
.mk .ask-answer.writing::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.12em;
  margin-left: 0.12em;
  vertical-align: baseline;
  background: currentColor;
  opacity: 0.7;
}

.mk .ask-fig {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 540;
  margin: 0.35rem 0 0.5rem;
}

.mk .ask-ghost,
.mk .ask-layer,
.mk .ask-fig svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mk .ask-fig text {
  font-family: var(--hand), cursive;
}

.mk .ask-layer {
  opacity: 0;
  transition: opacity 460ms ease, filter 460ms ease, transform 460ms ease;
}

.mk .ask-layer.on {
  opacity: 1;
}

.mk .ask-layer.wipe {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(18px) skewX(-6deg);
}

.mk .ask.wiping .ask-question,
.mk .ask.wiping .ask-answer {
  transition: opacity 380ms ease, filter 380ms ease;
  opacity: 0;
  filter: blur(3px);
}

.mk .ask-q {
  margin-top: 1.4rem;
  display: flex;
  align-items: baseline;
  gap: 1rem 1.25rem;
}

.mk .ask-k {
  flex: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute-2);
}

.mk .ask-q ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
}

.mk .ask-q button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.15rem 0;
  font: inherit;
  font-size: 0.92rem;
  color: var(--mute);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
  text-align: left;
}

.mk .ask-q button:hover {
  color: var(--white);
}

.mk .ask-q button.on {
  color: var(--white);
  border-bottom-color: #f4a21d;
}

@media (max-width: 900px) {
  .mk .panel.smis .top {
    grid-template-columns: 1fr;
  }
  .mk .ask-board {
    margin: 0 calc(-1 * var(--gutter) + 6px);
  }
  .mk .ask-slate {
    padding: 0.9rem 0.9rem 0.8rem;
  }
  .mk .ask-question {
    font-size: 1.3rem;
  }
  .mk .ask-answer {
    font-size: 1.2rem;
    min-height: 3.6em;
  }
  .mk .ask-fig text {
    font-size: 28px;
  }
  .mk .ask-fig [data-l] text {
    font-size: 22px;
  }
  .mk .ask-q {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.1rem;
  }
  .mk .ask-q ol {
    gap: 0.3rem 1rem;
  }
  .mk .ask-q button {
    font-size: 0.95rem;
  }
}

/* ---------- the mess: a school that never spoke to itself ---------- */

.mk .mess {
  height: 340svh;
  --m-ink: #111;
  --m-mute: #6f6f6b;
  --m-line: rgba(0, 0, 0, 0.1);
  --m-paper: #fff;
  --m-hand: #2a2f6b;
  --m-red: #c0392b;
  background: #f5f5f2;
  color: var(--m-ink);
  padding: 0;
}

.mk .mess-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  padding-top: clamp(2.5rem, 5vh, 4rem);
}

.mk .mess .mhead {
  position: relative;
  text-align: center;
  max-width: 52ch;
  margin: 0 auto clamp(1rem, 2.5vw, 2rem);
  display: grid;
}

.mk .mess .mh-a,
.mk .mess .mh-b {
  grid-area: 1 / 1;
  transition: opacity 500ms ease, translate 500ms ease;
}

.mk .mess .mh-b {
  opacity: 0;
  translate: 0 10px;
}

.mk .mess.after .mh-a {
  opacity: 0;
  translate: 0 -10px;
}

.mk .mess.after .mh-b {
  opacity: 1;
  translate: 0 0;
}

.mk .mess h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  color: var(--m-ink);
}

.mk .mess .mhead p {
  margin: 1.1rem auto 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--m-mute);
  max-width: 40ch;
}

/* the stage is 1440 x 900 and runs the full width of the screen */
.mk .mess-fit {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.mk .mess-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1440px;
  height: 900px;
  transform-origin: 0 0;
}

.mk .m-chaos,
.mk .m-order {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
}

.mk .m-order {
  opacity: 0;
  scale: 1.16;
}

.mk .mess .mlines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 1.4;
  stroke-linecap: round;
}

.mk .mess .mlines path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 1800ms ease 700ms;
}

.mk .mess.in .mlines path {
  stroke-dashoffset: 0;
  stroke-dasharray: 3 6;
  transition: stroke-dasharray 0ms 2500ms, stroke-dashoffset 1800ms ease 700ms;
}

.mk .mess .mlines text {
  fill: var(--m-mute);
  stroke: none;
  font-family: var(--hand), cursive;
  font-size: 34px;
  opacity: 0;
  transition: opacity 400ms ease 2400ms;
}

.mk .mess.in .mlines text {
  opacity: 1;
}

.mk .mess .q-it {
  position: absolute;
  font-size: 13px;
  line-height: 1.35;
  rotate: var(--r, 0deg);
  opacity: 0;
  translate: 0 16px;
  transition: opacity 600ms ease, translate 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mk .mess.in .q-it {
  opacity: 1;
  translate: 0 0;
}

/* positions on the stage */
.mk .mess .q-feebook { left: 40px; top: 90px; width: 470px; --r: -2deg; }
.mk .mess .q-reg { left: 560px; top: 10px; width: 290px; --r: 2deg; }
.mk .mess .q-photo { left: 880px; top: 20px; width: 220px; --r: -4deg; }
.mk .mess .q-sticky { left: 1120px; top: 10px; width: 160px; --r: 5deg; }
.mk .mess .q-sticky.q-sticky2 { left: 1250px; top: 640px; width: 165px; --r: -4deg; background: #ffd6e0; }
.mk .mess .q-bus { left: 1230px; top: 180px; width: 210px; --r: -2.5deg; }
.mk .mess .q-phone { left: 1090px; top: 330px; width: 250px; --r: 3deg; }
.mk .mess .q-wa-ico { left: 1030px; top: 300px; }
.mk .mess .q-wa { left: 580px; top: 300px; width: 300px; --r: -1deg; }
.mk .mess .q-mail { left: 860px; top: 470px; width: 250px; --r: 1deg; }
.mk .mess .q-xls { left: 330px; top: 520px; width: 400px; --r: 1deg; }
.mk .mess .q-memo { left: 40px; top: 560px; width: 250px; --r: -1.5deg; }
.mk .mess .q-pay { left: 770px; top: 640px; width: 300px; --r: 1.5deg; }
.mk .mess .q-folder { left: 110px; top: 780px; --r: 0deg; }
.mk .mess .q-a1 { left: 700px; top: 226px; }
.mk .mess .q-a2 { left: 470px; top: 810px; }
.mk .mess .q-a3 { left: 1150px; top: 590px; }

.mk .mess .q-hand {
  font-family: var(--hand), cursive;
  font-size: 1.2em;
  color: var(--m-hand);
}

.mk .mess .q-paper {
  background: var(--m-paper);
  border-radius: 3px;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 0.85rem 1rem 0.9rem;
}

.mk .mess .q-ph {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.mk .mess .q-sub {
  font-size: 11px;
  color: var(--m-mute);
  margin: -0.3rem 0 0.4rem;
}

.mk .mess .q-rr {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid #c9d7ea;
}

.mk .mess .q-rr.q-h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--m-mute);
  border-bottom-color: rgba(0, 0, 0, 0.3);
}

/* the fee book: a stack of pages */
.mk .mess .q-feebook {
  position: absolute;
}

.mk .mess .q-sheetb {
  position: absolute;
  inset: 0;
  background: #fbfbf9;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mk .mess .q-s1 { translate: 10px 10px; rotate: 1.2deg; }
.mk .mess .q-s2 { translate: 20px 22px; rotate: -1deg; background: #f6f6f2; }

.mk .mess .q-ledger {
  position: relative;
  padding: 1rem 1.2rem 1.1rem;
  background-image: linear-gradient(90deg, transparent 0, transparent 26px, rgba(220, 60, 60, 0.35) 26px, rgba(220, 60, 60, 0.35) 27px, transparent 27px);
}

.mk .mess .q-ledger .q-rr {
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  padding: 0.34rem 0;
}

.mk .mess .q-ledger .q-rr .num {
  text-align: right;
}

.mk .mess .q-scrawl {
  position: absolute;
  right: 18px;
  bottom: -16px;
  rotate: -6deg;
  color: var(--m-red);
  font-size: 1.5em;
}

.mk .mess .q-reg .q-mk {
  letter-spacing: 0.18em;
}

.mk .mess .q-reg {
  background-image: linear-gradient(90deg, transparent 0, transparent 22px, rgba(220, 60, 60, 0.35) 22px, rgba(220, 60, 60, 0.35) 23px, transparent 23px);
}

/* a photograph of a receipt on a desk */
.mk .mess .q-photo {
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  background:
    radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #5a4a3c, #2e261f 70%, #1d1814);
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.mk .mess .q-slip {
  position: relative;
  width: 78%;
  background: #f8f5ea;
  padding: 0.6rem 0.65rem 0.7rem;
  rotate: -7deg;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
  font-size: 10px;
  color: #333;
}

.mk .mess .q-slip b {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.mk .mess .q-slip small {
  display: block;
  text-align: center;
  color: #777;
  font-size: 9px;
  margin-bottom: 0.4rem;
}

.mk .mess .q-sl {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  border-bottom: 1px dotted #999;
  padding: 0.22rem 0;
}

.mk .mess .q-sl span { color: #666; }
.mk .mess .q-sl i { font-style: normal; font-size: 1.3em; }

.mk .mess .q-stamp {
  position: absolute;
  right: -6px;
  bottom: 14px;
  rotate: -14deg;
  border: 2px solid rgba(192, 57, 43, 0.75);
  color: rgba(192, 57, 43, 0.8);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  mix-blend-mode: multiply;
}

.mk .mess .q-sticky {
  background: #fff3a3;
  z-index: 3;
  padding: 0.8rem 0.85rem;
  font-size: 1.35em;
  line-height: 1.1;
  box-shadow: 0 16px 24px -16px rgba(0, 0, 0, 0.45);
}

.mk .mess .q-bus .q-rr {
  font-size: 12px;
  border-bottom-color: var(--m-line);
}

.mk .mess .q-mute { color: var(--m-mute); }

.mk .mess .q-pin {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff7b7b, #b3261e);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* the phone */
.mk .mess .q-phone {
  background: #151515;
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  height: 520px;
}

.mk .mess .q-scr {
  background: #fff;
  border-radius: 26px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.8rem;
  gap: 0.5rem;
}

.mk .mess .q-bar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  padding: 0 0.3rem;
}

.mk .mess .q-sig { font-size: 9px; letter-spacing: 0.05em; }

.mk .mess .q-hd {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 13px;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--m-line);
}

.mk .mess .q-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a7f37;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.mk .mess .q-msg {
  background: #eef0ee;
  border-radius: 14px 14px 14px 3px;
  padding: 0.5rem 0.6rem 0.35rem;
  font-size: 11px;
  line-height: 1.35;
  color: #222;
}

.mk .mess .q-msg time {
  display: block;
  text-align: right;
  font-size: 9.5px;
  color: var(--m-mute);
  margin-top: 0.2rem;
}

.mk .mess .q-note {
  position: absolute;
  left: -36px;
  bottom: -30px;
  rotate: -6deg;
  color: var(--m-red);
  font-size: 1.75em;
  white-space: nowrap;
}

/* app icons */
.mk .mess .q-app {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #25d366;
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.45);
  z-index: 3;
}

.mk .mess .q-app::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 4px solid #fff;
  border-radius: 50%;
  border-bottom-left-radius: 6px;
}

.mk .mess .q-app span,
.mk .mess .q-cnt {
  position: absolute;
  right: -10px;
  top: -10px;
  background: #d93025;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mk .mess .q-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(160deg, #d9cfc4, #b9a898);
  flex: none;
}

.mk .mess .q-av.q-b { background: linear-gradient(160deg, #cfd9d3, #98aca2); }
.mk .mess .q-av.q-c { background: linear-gradient(160deg, #d6d0e0, #a89cbd); }
.mk .mess .q-av.q-d { background: linear-gradient(160deg, #e6d6c6, #c9a98a); }

.mk .mess .q-wa {
  background: #efeae2;
  border-radius: 12px;
  padding: 0.6rem 0.7rem 0.7rem;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mk .mess .q-who {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 12px;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mk .mess .q-who small { color: var(--m-mute); font-size: 10px; }

.mk .mess .q-bub {
  background: #fff;
  border-radius: 12px 12px 12px 3px;
  padding: 0.5rem 0.65rem 0.35rem;
  font-size: 12.5px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  max-width: 88%;
}

.mk .mess .q-bub.q-out {
  align-self: flex-end;
  background: #dcf8c6;
  border-radius: 12px 12px 3px 12px;
}

.mk .mess .q-bub time {
  display: block;
  text-align: right;
  font-size: 10px;
  color: #6b7f6b;
  margin-top: 0.15rem;
}

/* the inbox */
.mk .mess .q-mail {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem 0.6rem 3.1rem;
  box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.35);
}

.mk .mess .q-gm {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  translate: 0 -50%;
  width: 30px;
  height: 22px;
  border-radius: 3px;
  background: #fff;
  border: 1px solid #ddd;
  color: #d93025;
  font-weight: 800;
  font-size: 15px;
  line-height: 20px;
  text-align: center;
}

.mk .mess .q-mail b { display: block; font-weight: 600; font-size: 12.5px; }
.mk .mess .q-mail small { color: var(--m-mute); font-size: 11px; }

/* the spreadsheet, three versions */
.mk .mess .q-xls { height: 240px; }

.mk .mess .q-file {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid #b7c7b9;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.35);
  font-size: 11.5px;
  overflow: hidden;
}

.mk .mess .q-f1 { translate: -16px -18px; }
.mk .mess .q-f2 { translate: -32px -36px; }
.mk .mess .q-sheet { position: absolute; }

.mk .mess .q-tab {
  background: #1e6e42;
  color: #fff;
  font-size: 11px;
  padding: 0.35rem 0.6rem;
}

.mk .mess table {
  border-collapse: collapse;
  width: 100%;
}

.mk .mess .q-sheet td,
.mk .mess .q-sheet th {
  border: 1px solid #d8ddd8;
  padding: 0.2rem 0.4rem;
  text-align: left;
  font-weight: 400;
  white-space: nowrap;
}

.mk .mess .q-sheet th,
.mk .mess .q-sheet td:first-child {
  background: #f1f3f1;
  color: var(--m-mute);
  text-align: center;
  width: 1.6em;
}

.mk .mess .q-sheet th { width: auto; }
.mk .mess .q-bad { color: #b3261e; }

.mk .mess .q-memo .q-lh {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--m-mute);
  border-bottom: 2px solid var(--m-ink);
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
}

.mk .mess .q-memo p { margin: 0; font-size: 12.5px; }
.mk .mess .q-sig2 { display: block; margin-top: 0.5rem; text-align: right; }

.mk .mess .q-pay td {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--m-line);
  font-size: 12px;
}

.mk .mess .q-pay td:last-child { text-align: right; }
.mk .mess .q-warn { color: #b3261e; }

/* the folder */
.mk .mess .q-folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 12px;
  text-align: center;
}

.mk .mess .q-folder i {
  display: block;
  width: 70px;
  height: 52px;
  border-radius: 6px;
  background: linear-gradient(180deg, #7fb3ff, #4a8ff0);
  position: relative;
  box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.45);
}

.mk .mess .q-folder i::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 30px;
  height: 12px;
  border-radius: 4px 4px 0 0;
  background: #4a8ff0;
}

.mk .mess .q-folder small { display: block; color: var(--m-mute); font-size: 10.5px; }

/* the people asking */
.mk .mess .q-ask {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 4;
}

.mk .mess .q-ask small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--m-mute);
}


@media (max-width: 700px) {
  .mk .mess {
    height: auto;
    padding: clamp(3rem, 8vw, 5rem) 0 3rem;
  }
  .mk .mess-pin {
    position: static;
    height: auto;
    overflow: visible;
    padding-top: 0;
  }
  .mk .mess .mhead {
    display: block;
  }
  .mk .mess .mhead .mh-b {
    display: none;
  }
  .mk .m-only {
    display: block;
    text-align: center;
    max-width: 46ch;
    margin: 2.5rem auto 1.5rem;
    order: -2;
    opacity: 1;
    translate: none;
  }
  .mk .mess.after .mh-a {
    opacity: 1;
    translate: none;
  }
  .mk .mess .mh-b h2::before {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    background: var(--m-ink);
    margin: 0 auto 1.5rem;
  }
  .mk .m-chaos,
  .mk .m-order {
    position: relative;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
  .mk .m-order {
    order: 3;
  }
  .mk .mess-fit {
    width: auto;
    margin: 0 var(--gutter);
  }
  .mk .mess-stage {
    position: relative;
    width: auto;
    height: auto;
    left: 0 !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
  }
  .mk .m-chaos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem 1rem;
    align-items: start;
    padding: 1rem 0.4rem;
  }
  .mk .m-order {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem 0.4rem;
  }
  .mk .o-col {
    position: relative;
    left: auto !important;
    top: auto;
    width: auto !important;
    gap: 0.8rem;
  }
  .mk .o-mid {
    order: -1;
  }
  .mk .o-wire {
    margin: -6px auto -2px;
  }
  .mk .mess .q-memo,
  .mk .mess .q-pay,
  .mk .mess .q-folder,
  .mk .mess .q-mail,
  .mk .mess .q-reg {
    display: none;
  }
  .mk .mess .mlines { display: none; }
  .mk .mess .q-it {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-width: 0;
    font-size: 11.5px;
  }
  .mk .mess .q-feebook,
  .mk .mess .q-phone,
  .mk .mess .q-xls,
  .mk .mess .q-ask {
    grid-column: 1 / -1;
  }
  .mk .mess .q-xls { height: auto; }
  .mk .mess .q-f1, .mk .mess .q-f2 { display: none; }
  .mk .mess .q-sheet { position: relative; }
  .mk .mess .q-phone { width: 250px; justify-self: center; height: auto; }
  .mk .mess .q-note { right: -10px; top: auto; bottom: -26px; }
  .mk .mess .q-wa-ico { display: none; }
  .mk .mess .q-s1, .mk .mess .q-s2 { display: none; }
  .mk .mess .q-ask { justify-self: center; white-space: normal; }
  .mk .mess .q-rr { gap: 0.4rem; }
  .mk .mess .q-rr .q-hand:first-child,
  .mk .mess .q-bus .q-rr span:first-child { white-space: nowrap; }
  .mk .mess .q-ledger .q-rr { grid-template-columns: 1.3fr 0.9fr 0.9fr; }
  .mk .mess .q-sheet td, .mk .mess .q-sheet th { padding: 0.15rem 0.25rem; }
}

/* ---------- the order: one record, as a grid of matching panels ---------- */

.mk .m-only { display: none; }

.mk .o-panel {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  font-size: 13px;
  line-height: 1.35;
  color: var(--m-ink);
  box-shadow: 0 20px 40px -30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

/* wireframe first: grey bars where the content will be */
.mk .o-panel > * {
  opacity: 0;
  transition: opacity 500ms ease;
}

.mk .o-panel::before {
  content: "";
  position: absolute;
  inset: 1rem 1.1rem auto;
  height: 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 22px 0 -1px rgba(0, 0, 0, 0.07), 0 40px 0 -1px rgba(0, 0, 0, 0.07), 0 58px 0 -1px rgba(0, 0, 0, 0.05);
  width: 46%;
  transition: opacity 400ms ease;
}

.mk .mess.filled .o-panel > * {
  opacity: 1;
}

.mk .mess.filled .o-panel::before {
  opacity: 0;
}

.mk .o-col {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mk .o-left { left: 120px; width: 360px; }
.mk .o-mid { left: 520px; width: 400px; }
.mk .o-right { left: 960px; width: 360px; }

.mk .o-mpesa { padding: 0.7rem 0.9rem; display: flex; gap: 0.6rem; align-items: center; font-size: 11.5px; color: #333; background: #eef0ee; }

.mk .o-wire {
  display: block;
  width: 0;
  height: 22px;
  margin: -16px auto -12px;
  border-left: 1.5px dashed rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 500ms ease;
}

.mk .mess.filled .o-wire { opacity: 1; }

.mk .o-k {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-mute);
  margin-bottom: 0.5rem;
}

.mk .o-t {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mk .o-s {
  color: var(--m-mute);
  font-size: 12px;
  margin-top: 0.15rem;
}

.mk .o-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.mk .o-s + .o-row,
.mk .o-t + .o-row,
.mk .o-marks + .o-row {
  margin-top: 0.6rem;
}

.mk .o-row span { color: var(--m-mute); }
.mk .o-row b { font-weight: 500; text-align: right; }
.mk .o-row.o-tot { border-top-color: rgba(0, 0, 0, 0.3); }
.mk .o-row b s { color: var(--m-mute); font-weight: 400; margin-right: 0.3rem; }
.mk .o-ok { color: #1a7f37; }

.mk .o-big {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0.4rem 0 0.3rem;
}

.mk .o-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  font-size: 12.5px;
}

.mk .o-list i { font-style: normal; color: var(--m-mute); margin-left: 0.3rem; }

.mk .o-bub {
  background: #dcf8c6;
  border-radius: 12px 12px 3px 12px;
  padding: 0.55rem 0.7rem 0.4rem;
  font-size: 12.5px;
  margin-top: 0.4rem;
}

.mk .o-bub time { display: block; text-align: right; font-size: 10px; color: #6b7f6b; margin-top: 0.15rem; }

.mk .o-marks {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0 0.4rem;
  font-size: 12.5px;
  color: var(--m-mute);
}

.mk .o-marks b { color: var(--m-ink); font-weight: 500; margin-left: 0.2rem; }

.mk .o-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a7f37;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

/* the centre card: three lines type in as the reader scrolls */
.mk .o-centre {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
}

.mk .o-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 14px;
}

.mk .o-log li {
  display: none;
  padding-left: 1.4rem;
  position: relative;
  min-height: 1.4em;
}

.mk .o-log li.on { display: block; }

.mk .o-log li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--m-mute);
}

.mk .o-log li.done::before {
  background: #1a7f37;
  border-color: #1a7f37;
}

.mk .o-log li:not(.done) span::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--m-ink);
  opacity: 0.6;
}

/* phone: the order state stacks; these come last so they win */
@media (max-width: 700px) {
  .mk .m-order {
    scale: none;
  }
  .mk .m-only {
    display: block;
  }
  .mk .o-col {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    translate: none;
    gap: 0.8rem;
  }
  .mk .o-mid {
    order: -1;
  }
  .mk .o-wire {
    margin: -6px auto -2px;
  }
}

@media (max-width: 700px) {
  .mk .mess .m-only {
    opacity: 1;
    translate: none;
  }
}

/* ---------- Advisor: the phone at a hand's size, not a poster ---------- */

.mk .panel.advisor .art.talk .ph {
  zoom: 0.76;
}

@media (max-width: 900px) {
  .mk .panel.advisor .art.talk .ph {
    zoom: 0.92;
  }
}

/* ---------- Vision, in the light ---------- */

.mk .vision {
  --v-ink: #111;
  --v-mute: #6f6f6b;
  background: #f5f5f2;
  color: var(--v-ink);
  border-top: 0;
  padding-top: clamp(4rem, 8vw, 7rem);
}

.mk .vision h2 {
  color: var(--v-ink);
}

.mk .vision p,
.mk .vision p:last-child {
  color: var(--v-ink);
}

.mk .vision-art {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.3);
}

.mk .vision-art .sketch svg {
  stroke: #1c1c1a;
}

.mk .vision-art .sketch svg path[stroke="#f4a21d"] {
  stroke: #d98a06;
}
