/* ==== Mobasity: base (from site.css, palette: Old growth) ==== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0E1E16;
  --bg-raised: #192A1F;
  --line: #273A2B;
  --line-strong: #394E3B;

  --text: #ECF0E6;
  --text-soft: #D1D7CD;
  --muted: #B2B9B0;
  --faint: #939C93;

  --accent: #E8B04B;
  --accent-hover: #EDC06F;
  --accent-ink: #09140E;

  --live: #7BD88F;
  --workshop: #8FB4FF;
  --retired: #939C93;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 76px;

  --sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ul, ol { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

/* ---- shared type ------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.note {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--faint);
}
.h1 {
  margin-top: 14px;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.022em;
}
.h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.lede {
  margin-top: 14px;
  max-width: 40em;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
}

/* ---- buttons and links ------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--ink { background: var(--accent-ink); color: var(--text); }
.btn--ink:hover { background: #2A2148; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.textlink:hover { color: var(--accent); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}

/* ---- status markers ---------------------------------------------------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  white-space: nowrap;
}
.status::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}
.status--workshop::before { border-radius: 2px; background: var(--workshop); }
.status--retired::before { width: 10px; height: 2px; border-radius: 1px; background: var(--retired); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  list-style: none;
}

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

.nav { position: relative; z-index: 10; border-bottom: 1.5px solid var(--line); }
.is-home .nav { position: absolute; top: 0; left: 0; right: 0; border-bottom: 0; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand img { width: 36px; height: 36px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 15px;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
}
.nav__links a:hover { background: rgba(244, 237, 226, .08); }
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav__links .nav__cta { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

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

.hero {
  position: relative;
  min-height: clamp(620px, 90vh, 940px);
  overflow: hidden;
  background: #0D0A22;
}
.hero__sky,
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__bg { object-fit: cover; object-position: 70% 50%; }

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 8, 28, .55) 0%, rgba(10, 8, 28, .2) 40%, rgba(10, 8, 28, 0) 60%),
    linear-gradient(180deg, rgba(10, 8, 28, .35) 0%, rgba(10, 8, 28, 0) 22%, rgba(20, 17, 42, 0) 78%, var(--bg) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + clamp(56px, 13vh, 150px));
  padding-bottom: 160px;
}
.hero__copy { max-width: 660px; }
.hero__title {
  font-size: clamp(44px, 6vw, 90px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero__intro {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--text-soft);
}

.hero__otter {
  position: absolute;
  z-index: 2;
  bottom: 0;
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  width: 200px;
}
.hero__otter img { width: 100%; height: auto; }
.bubble {
  position: absolute;
  top: -22px;
  left: -64px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 16px;
  transform: rotate(-6deg);
}
.bubble::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 10px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--text);
}

.tw { animation: twinkle 4.5s ease-in-out infinite; }
.tw2 { animation-delay: -1.5s; }
.tw3 { animation-delay: -3s; }
@keyframes twinkle { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .tw { animation: none; } }

/* ---- on the bench ------------------------------------------------------ */

.bench { padding-top: 56px; }
.bench > * { position: relative; }
.bench__head,
.bench__grid {
  border: 1.5px dashed var(--line-strong);
}
.bench__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 30px 0;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}
.bench__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px 32px;
  padding: 18px 30px 28px;
  border-top: 0;
  border-radius: 0 0 16px 16px;
}
.bench__item dt { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.bench__item dd { margin-top: 8px; font-size: 16.5px; line-height: 1.45; color: var(--text-soft); }
.bench__item b { color: var(--text); font-weight: 700; }
.bench__count { font-size: 40px !important; font-weight: 800; line-height: 1 !important; color: var(--text) !important; }
.bench__count span { margin-left: 6px; font-size: 15px; font-weight: 400; color: var(--faint); }

/* ---- sections ---------------------------------------------------------- */

.section { padding-top: clamp(96px, 12vw, 150px); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
}
.group-label { margin-top: 64px; }

/* things to try */
.plist {
  margin-top: 16px;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--line);
}
.prow {
  display: grid;
  grid-template-columns: 64px minmax(200px, 260px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 24px 12px;
  border-bottom: 1.5px solid var(--line);
  transition: background-color .15s ease;
}
.prow:hover { background: var(--bg-raised); }
.picon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--c, var(--line-strong));
  color: #fff;
}
.prow__name h4 { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.prow__name .status { margin-top: 6px; }
.prow__text { font-size: 18px; color: var(--text-soft); }
.prow__links,
.icard__links,
.pcard__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 15px;
}
.prow__links { justify-content: flex-end; }
.plink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.plink.is-primary { color: var(--text); text-decoration-thickness: 1.5px; }
.plink:hover { color: var(--accent); }

/* idea card */
.idea-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  margin-top: 48px;
  padding: 44px 52px;
  border-radius: 22px;
  background: var(--accent);
  color: var(--accent-ink);
}
.idea-card__eyebrow { font-family: var(--mono); font-size: 14px; }
.idea-card__title {
  margin-top: 10px;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.idea-card__text { margin-top: 14px; max-width: 40em; font-size: 19px; }

/* behind the scenes */
.behind { margin-top: 104px; }
.behind__lede { margin-top: 8px; font-size: 18px; color: var(--faint); }
.igrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.icard { padding: 22px 0 26px; border-top: 1.5px solid var(--line); }
.icard__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
}
.icard h4 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
}
.icard h4::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}
.icard p { margin-top: 8px; font-size: 16.5px; color: var(--muted); }
.icard__links { margin-top: 12px; font-size: 14px; }

/* small stuff */
.small-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 36px;
  margin-top: 56px;
  padding: 24px 30px;
  border-radius: 16px;
  background: var(--bg-raised);
}
.small-strip .eyebrow { color: var(--faint); }
.small-strip__item { font-size: 16.5px; color: var(--muted); }
.small-strip__item a {
  margin-right: 6px;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.small-strip__item a:hover { color: var(--accent); }
.small-strip__more { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--accent); white-space: nowrap; }

/* how I build */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}
.principles__num { font-family: var(--mono); font-size: 15px; color: var(--accent); }
.principles h3 { margin-top: 14px; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.principles p { margin-top: 12px; font-size: 17.5px; color: var(--muted); }

/* idea pile + retired */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: 72px;
}
.ideas {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 32px 0 30px;
  padding: 0;
  list-style: none;
}
.ideas li { display: flex; gap: 18px; }
.ideas__box {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
}
.ideas h3 { font-size: 20px; font-weight: 700; }
.ideas p { margin-top: 4px; font-size: 17px; color: var(--muted); }
.split .textlink { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--accent); }
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 44px 28px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--faint);
  text-align: center;
}

/* faq */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 72px;
  margin-top: 44px;
}
.faq dt { font-size: 21px; font-weight: 700; }
.faq dd { margin-top: 10px; font-size: 17.5px; color: var(--muted); }
.faq a { color: var(--text); text-underline-offset: 4px; }
.faq a:hover { color: var(--accent); }

/* say hi */
.sayhi { padding-top: clamp(110px, 14vw, 170px); }
.sayhi__big {
  display: inline-block;
  margin: 12px 0 18px;
  font-size: clamp(72px, 10vw, 140px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.sayhi__big span { color: var(--accent); }
.sayhi__big:hover { color: var(--accent); }
.sayhi .textlink { font-family: var(--mono); font-size: 18px; font-weight: 400; }

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

.foot { margin-top: 120px; border-top: 1.5px solid var(--line); }
.foot__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 34px;
  padding-bottom: 40px;
  padding-right: calc(var(--gutter) + 170px);
}
.foot__line { font-size: 15.5px; color: var(--faint); }
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 14px;
}
.foot__links a { display: inline-flex; min-height: 32px; align-items: center; text-underline-offset: 5px; }
.foot__links a:hover { color: var(--accent); }
.foot__links .is-quiet { color: var(--faint); text-decoration: none; }
.foot__otter {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  width: 150px;
  height: auto;
}

/* ---- projects page ----------------------------------------------------- */

.page-head { padding-top: 72px; }
.page-head .h1 { max-width: 16ch; }
.page-head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1.5px solid var(--line);
}
.jump { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 14px; }
.jump a { text-underline-offset: 5px; }
.jump a:hover { color: var(--accent); }

.pgroup { padding-top: 80px; scroll-margin-top: 16px; }
.pgroup__title { font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -0.015em; }
.pgroup__lede { margin-top: 8px; font-size: 18px; color: var(--faint); }
.pcards { display: grid; gap: 16px; margin-top: 24px; }
.pcard {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-raised);
  scroll-margin-top: 16px;
}
.pcard .picon { width: 56px; height: 56px; border-radius: 15px; }
.pcard__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.pcard h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.pcard__body > p { margin-top: 10px; max-width: 62ch; font-size: 17.5px; line-height: 1.55; color: var(--text-soft); }
.pcard__body > .pcard__built { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.pcard__links { justify-content: flex-end; max-width: 260px; padding-top: 6px; }

/* ---- work in progress / 404 -------------------------------------------- */

.message {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  min-height: calc(100vh - var(--nav-h) - 260px);
  padding-top: 72px;
  padding-bottom: 24px;
}
.message__otter { width: 300px; height: auto; transform: rotate(-4deg); }
.message .h1 { max-width: 14ch; }

/* ---- smaller screens --------------------------------------------------- */

@media (max-width: 1000px) {
  .prow { grid-template-columns: 56px minmax(0, 1fr); gap: 14px 20px; padding: 22px 4px; }
  .prow .picon { width: 56px; height: 56px; }
  .prow__text, .prow__links { grid-column: 2; }
  .prow__links { justify-content: flex-start; }
  .idea-card { grid-template-columns: 1fr; padding: 36px 32px; gap: 28px; }
  .idea-card .btn { justify-self: start; }
  .igrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .small-strip { grid-template-columns: 1fr; gap: 14px; }
  .principles { grid-template-columns: 1fr; gap: 36px; }
  .split { grid-template-columns: 1fr; gap: 80px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .pcard { grid-template-columns: 52px minmax(0, 1fr); }
  .pcard .picon { width: 52px; height: 52px; }
  .pcard__links { grid-column: 2; justify-content: flex-start; max-width: none; padding-top: 0; }
  .message { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  .message__otter { width: 220px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .brand { font-size: 21px; }
  .brand img { width: 32px; height: 32px; }
  .nav__links { font-size: 14px; }
  .nav__links a { padding: 0 10px; }
  .nav__links li:nth-child(2),
  .nav__links li:nth-child(3) { display: none; }
  .hero { min-height: 640px; }
  .hero__inner { padding-bottom: 150px; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(10, 8, 28, .55) 0%, rgba(10, 8, 28, .25) 55%, rgba(20, 17, 42, 0) 75%, var(--bg) 100%);
  }
  .hero__otter { width: 150px; }
  .bubble { left: -54px; font-size: 14px; }
  .bench__head { padding: 18px 20px 0; }
  .bench__grid { padding: 14px 20px 22px; }
  .igrid { grid-template-columns: 1fr; }
  .pcard { grid-template-columns: 1fr; padding: 22px 20px; gap: 16px; }
  .pcard__links { grid-column: 1; }
  .foot__inner { padding-right: var(--gutter); padding-bottom: 110px; }
}

/* ==== Mobasity: additions ================================================ */
:root {
  --band: #162C20;
  --band-raised: #21362A;
  --grain: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27200%27%20height%3D%27200%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.85%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27saturate%27%20values%3D%270%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url(%23n)%27%2F%3E%3C%2Fsvg%3E");
}
html { background: var(--bg); color-scheme: dark; }
body { overflow-x: clip; }
[hidden] { display: none !important; }

/* project colors come from /projects.css, generated from projects.json */

/* nav floats over the smoky header on pages that have one */
.nav-over .nav { position: absolute; top: 0; left: 0; right: 0; border-bottom: 0; }

/* hero: smoke replaces the old night sky */
.hero { background: transparent; }

/* ---- smoke: two drifting layers, CSS only ---- */
.smoke { position: relative; isolation: isolate; overflow: hidden; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27200%27%20height%3D%27200%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.85%27%20numOctaves%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27saturate%27%20values%3D%270%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url(%23n)%27%20opacity%3D%27.18%27%2F%3E%3C%2Fsvg%3E"); background-size: 200px 200px; }
.smoke::before, .smoke::after {
  content: ""; position: absolute; inset: -400px; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-size: cover; background-position: center;
  will-change: transform;
  animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
.smoke::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%271000%27%3E%3Cfilter%20id%3D%27s%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.004%20.011%27%20numOctaves%3D%275%27%20seed%3D%273%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20values%3D%270%200%200%200%200.663%20%200%200%200%200%200.796%20%200%200%200%200%200.608%20%201.6%200%200%200%20-0.62%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url(%23s)%27%2F%3E%3C%2Fsvg%3E"); opacity: .42; animation-name: smoke-a; animation-duration: 60s; }
.smoke::after  { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27800%27%20height%3D%271000%27%3E%3Cfilter%20id%3D%27s%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%27.006%20.013%27%20numOctaves%3D%275%27%20seed%3D%279%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20values%3D%270%200%200%200%200.663%20%200%200%200%200%200.796%20%200%200%200%200%200.608%20%201.6%200%200%200%20-0.66%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url(%23s)%27%2F%3E%3C%2Fsvg%3E"); opacity: .32; animation-name: smoke-b; animation-duration: 84s; }
@keyframes smoke-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  35%  { transform: translate3d(-180px, -70px, 0) scale(1.05); }
  70%  { transform: translate3d(-90px, -230px, 0) scale(1.02); }
  100% { transform: translate3d(-280px, -150px, 0) scale(1.06); }
}
@keyframes smoke-b {
  0%   { transform: translate3d(-300px, -240px, 0) scale(1.04); }
  40%  { transform: translate3d(-120px, -60px, 0) scale(1); }
  75%  { transform: translate3d(-240px, 10px, 0) scale(1.05); }
  100% { transform: translate3d(-40px, -120px, 0) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { .smoke::before, .smoke::after { animation: none; } }
main.smoke + .foot { margin-top: 0; }

/* ---- tinted bands (Projects, Idea pile / Retired, footer) ---- */
.band { position: relative; isolation: isolate; }
section.band { padding-bottom: clamp(96px, 12vw, 150px); margin-top: clamp(72px, 9vw, 120px); }
footer.band { margin-top: clamp(72px, 9vw, 120px); }
.band { --bg-raised: var(--band-raised); }
.band::before, .band::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
}
.band::before { background: var(--band); }
.band::after { background-image: var(--grain); background-size: 200px 200px; opacity: .18; }

/* ---- otters ---- */
/* otters */
[hidden] { display: none !important; }
.lo { display: block; height: auto; pointer-events: none; user-select: none; }
.lo-idea { width: 170px; align-self: end; margin: -96px 0 -44px; }
.idea-card.has-otter { grid-template-columns: auto minmax(0, 1fr) auto; }
.lo-anchor { position: relative; height: 0; }
.lo-wrench { position: absolute; right: 0; bottom: -30px; width: 176px; }
.lo-nap { width: 210px; }
.empty.has-otter svg { display: none; }
.sayhi { position: relative; }
.lo-wave { position: absolute; right: 0; bottom: -10px; width: 190px; }
@media (max-width: 1000px) {
  .lo-wrench { width: 120px; }
  .lo-wave { width: 130px; }
  .idea-card.has-otter { grid-template-columns: minmax(0, 1fr); }
  .lo-idea { display: none; }
}

/* ---- projects with pictures (home) ---- */
/* projects with pictures */
.feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; margin: 44px 0 84px; }
.shot { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-raised); }
.feat__eyebrow { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.feat__name { margin-top: 10px; font-size: clamp(38px, 4.2vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.feat .status { margin-top: 12px; }
.feat__text { margin-top: 18px; max-width: 32em; font-size: 18.5px; line-height: 1.55; color: var(--text-soft); }
.feat__links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 15px; }
.sgrid { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.scard { min-width: 0; }
.scard .shot { transition: transform .2s ease, border-color .2s ease; }
.scard:hover .shot { transform: translateY(-3px); border-color: var(--c, var(--line-strong)); }
.scard__top { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.scard .picon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.scard .picon svg { width: 22px; height: 22px; }
.scard h4 { font-size: 23px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.scard .status { margin-top: 3px; }
.scard__text { margin-top: 12px; font-size: 16.5px; line-height: 1.5; color: var(--text-soft); }
.scard__links { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) { .scard .shot { transition: none; } .scard:hover .shot { transform: none; } }
@media (max-width: 1000px) { .feat { grid-template-columns: minmax(0, 1fr); gap: 28px; } .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sgrid { grid-template-columns: minmax(0, 1fr); } }

.scard__link { display: block; border-radius: 14px; }
.scard h4 a { text-decoration: none; }
.scard h4 a:hover { color: var(--accent); }

/* ==== Mobasity: inner pages ================================================
   Status, about, contact, projects, project detail, blog, blog post.
   Builds on site.css tokens and components. */

.btn--ink:hover { background: var(--accent-ink); filter: brightness(1.6); }
.h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }

/* ---- page header band (smoke lives here) --------------------------------- */
.phead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(48px, 6vw, 80px);
  border-bottom: 1.5px solid var(--line);
}
.phead__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
}
.phead__copy { max-width: 760px; min-width: 0; }
.phead__title {
  margin-top: 12px;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.phead__lede {
  margin-top: 20px;
  max-width: 36em;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  color: var(--text-soft);
}
.phead__otter { width: 190px; height: auto; margin-bottom: calc(-1 * clamp(48px, 6vw, 80px) - 2px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--muted); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--accent); }

.page-body { padding-top: clamp(48px, 6vw, 80px); }

/* shared bits */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-family: var(--mono); font-size: 14px; color: var(--muted); text-decoration: none;
}
.chip span { color: var(--faint); }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-on { background: var(--text); border-color: var(--text); color: var(--bg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.tags li, .tagchip {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  background: var(--bg-raised); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
}
.facts { display: grid; gap: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 13.5px; color: var(--faint); }
.facts dd { text-align: right; font-weight: 600; color: var(--text-soft); }

.prose { max-width: 680px; font-size: 18.5px; line-height: 1.7; color: var(--text-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.9em; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--text); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.prose a:hover { color: var(--accent); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose pre {
  overflow-x: auto; padding: 18px 20px; border-radius: 12px;
  background: var(--bg-raised); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 14.5px; line-height: 1.6; color: var(--text);
}
.prose blockquote {
  margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  font-size: 21px; line-height: 1.5; color: var(--text);
}

/* ---- status --------------------------------------------------------------- */
.overall { display: grid; gap: 8px; justify-items: end; }
.overall__pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--live) 14%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--live) 45%, transparent);
  font-weight: 700; font-size: 18px; color: var(--text);
}
.overall__meta { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--live); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--live); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse::after { animation: none; } }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 22px 24px; border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--line); }
.tile dt { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.tile dd { margin-top: 10px; font-size: 40px; line-height: 1; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.tile dd span { margin-left: 4px; font-size: 16px; font-weight: 500; color: var(--muted); }
.tile p { margin-top: 8px; font-family: var(--mono); font-size: 13px; color: var(--muted); }

.sblock { margin-top: clamp(56px, 6vw, 80px); }
.sblock__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; padding-bottom: 16px; border-bottom: 1.5px solid var(--line); }
.sblock__note { font-size: 15px; color: var(--faint); }
.keys { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.keys li { display: inline-flex; align-items: center; gap: 8px; }
.keys .bar { flex: none; width: 6px; height: 14px; }

.svcs, .libs, .incidents { list-style: none; padding: 0; }
.svc {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) 80px 80px 150px;
  align-items: center; gap: 28px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.svc__name { display: flex; align-items: center; gap: 14px; min-width: 0; }
.svc .picon, .lib .picon { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.picon--site { background: var(--text); }
.picon--site img { width: 24px; height: 24px; }
.svc h3, .lib h3 { font-size: 19px; font-weight: 700; line-height: 1.2; }
.svc__name p, .lib p { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.bars { display: flex; gap: 2px; height: 30px; }
.bar { flex: 1 1 0; min-width: 2px; height: 100%; border-radius: 2px; background: var(--live); opacity: .85; }
.bar--warn { background: var(--accent); opacity: 1; }
.bar--down { background: #E5675A; opacity: 1; }
.bar--maint { background: var(--workshop); opacity: 1; }
.bar:hover { opacity: 1; filter: brightness(1.2); }
.bars__axis b { font-weight: inherit; }
.ax30 { display: none; }
.bars__axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.svc__num { font-family: var(--mono); font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.svc__k { display: block; margin-bottom: 2px; font-size: 11.5px; color: var(--faint); }
.svc__state { display: grid; justify-items: end; gap: 6px; }
.svc__rt { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.svc--idle { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) 150px; }
.svc--idle .svc__name { opacity: .75; }
.svc__note { font-size: 15px; color: var(--faint); }

.pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--live); background: color-mix(in srgb, var(--live) 13%, transparent); }
.pill--warn { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pill--down { color: #F08A7E; background: color-mix(in srgb, #E5675A 16%, transparent); }
.pill--maint { color: var(--workshop); background: color-mix(in srgb, var(--workshop) 14%, transparent); }
.pill--idle { color: var(--faint); background: color-mix(in srgb, var(--faint) 12%, transparent); }

.lib {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 90px minmax(0, 200px) 150px;
  align-items: center; gap: 14px 24px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.lib__ver { font-family: var(--mono); font-size: 15px; color: var(--text); }
.lib__where { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.lib .pill { justify-self: end; }

.incidents li {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px 28px; align-items: start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.incidents time { font-family: var(--mono); font-size: 14px; color: var(--faint); padding-top: 3px; }
.incidents h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.incidents p { margin-top: 6px; max-width: 46em; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---- about ---------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__side { position: sticky; top: 32px; display: grid; gap: 14px; }
.about__side .eyebrow + * { margin-top: -2px; }
.about__side .facts { margin-bottom: 26px; }
.elsewhere { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; font-family: var(--mono); font-size: 15px; }

/* ---- contact -------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 7vw, 110px); align-items: start; }
.cform { display: grid; gap: 24px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: 12px; padding: 0; font-weight: 700; color: var(--text); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-size: 15.5px; color: var(--muted); transition: border-color .15s, background-color .15s, color .15s;
}
.choice input:hover + span { border-color: var(--accent); color: var(--text); }
.choice input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.cform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > span { font-weight: 700; color: var(--text); }
.field em { margin-left: 6px; font-style: normal; font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--faint); }
.field small { font-size: 13.5px; color: var(--faint); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-raised); border: 1.5px solid var(--line-strong);
  color: var(--text); font: inherit; font-size: 17px; line-height: 1.5;
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 180px; }
.field input:hover, .field textarea:hover { border-color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cform__foot .btn { border: 0; cursor: pointer; font-family: inherit; }
.cform__note { font-size: 14.5px; color: var(--faint); }
.contact__side { display: grid; gap: 14px; align-content: start; padding: 28px; border: 1.5px dashed var(--line-strong); border-radius: 18px; }
.contact__mail { margin-bottom: 4px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--accent); }
.contact__quick { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin-bottom: 14px; font-family: var(--mono); font-size: 14.5px; }
.contact__side > .plink { font-family: var(--mono); font-size: 14.5px; margin-bottom: 14px; justify-self: start; }
.contact__tip { padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--faint); }
.contact__tip a { color: var(--text-soft); text-underline-offset: 4px; }

/* ---- projects page -------------------------------------------------------- */
.xgroup { margin-top: clamp(64px, 8vw, 110px); }
.xgroup:first-of-type { margin-top: 56px; }
.xgroup__head { padding-bottom: 28px; border-bottom: 1.5px solid var(--line); }
.xgroup__head .h2 { font-size: clamp(34px, 3.8vw, 50px); }
.xrows, .xcards { list-style: none; padding: 0; }
.xrow {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px 48px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.xrow:nth-child(even) .xrow__shot { order: 2; }
.xrow__shot { display: block; border-radius: 14px; }
.xrow__shot .shot, .scard__link .shot { transition: transform .2s ease, border-color .2s ease; }
.xrow__shot:hover .shot, .scard__link:hover .shot { transform: translateY(-3px); border-color: var(--c, var(--line-strong)); }
.xrow__top { display: flex; align-items: center; gap: 16px; }
.xrow__top .picon { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.xrow h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }
.xrow h3 a, .xcard h3 a { text-decoration: none; }
.xrow h3 a:hover, .xcard h3 a:hover { color: var(--accent); }
.xrow .status, .xcard .status { margin-top: 6px; }
.xrow__tag { margin-top: 20px; font-size: 19px; font-weight: 600; color: var(--text); }
.xrow__desc { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.xrow .tags, .xcard .tags { margin-top: 16px; }
.xrow__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; font-family: var(--mono); font-size: 14.5px; }
.xrow__more { margin-left: auto; color: var(--accent); }
.xcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.xcard { display: flex; flex-direction: column; padding: 32px 0; border-bottom: 1px solid var(--line); }
.xcard .picon { width: 44px; height: 44px; border-radius: 12px; }
.xcard h3 { font-size: 24px; line-height: 1.1; font-weight: 800; }
.xcard .xrow__desc { margin-top: 16px; }
.xcard .xrow__links { margin-top: auto; padding-top: 18px; }

/* ---- project detail ------------------------------------------------------- */
.dtitle { display: flex; align-items: center; gap: 20px; margin-top: 18px; }
.dtitle .phead__title { margin-top: 0; }
.dtitle .status { margin-top: 10px; }
.picon--lg { width: 76px; height: 76px; border-radius: 20px; flex: none; }
.detail__shot { border-radius: 18px; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 7vw, 110px); align-items: start; margin-top: clamp(48px, 6vw, 72px); }
.detail__side { display: grid; gap: 14px; }
.detail__side .facts { margin-bottom: 26px; }
.detail__side .facts .status { font-weight: 400; }
.changelog { list-style: none; padding: 0; display: grid; gap: 18px; }
.changelog li { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.changelog span { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--text); }
.changelog time { justify-self: end; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.changelog p { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }
.more { margin-top: clamp(64px, 8vw, 110px); padding-top: 28px; border-top: 1.5px solid var(--line); }
.more__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.more .sgrid { margin-top: 28px; }
.scard__link { display: block; border-radius: 14px; }

/* ---- blog ----------------------------------------------------------------- */
.pfeat {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  margin-top: 36px; padding: clamp(28px, 4vw, 48px); padding-bottom: 0;
  border-radius: 22px; background: var(--bg-raised); border: 1px solid var(--line);
}
.pfeat__copy { padding-bottom: clamp(28px, 4vw, 48px); }
.pfeat__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--faint); }
.pfeat__new { padding: 3px 10px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.pfeat__title { margin-top: 18px; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.pfeat__title a, .post h3 a { text-decoration: none; }
.pfeat__title a:hover, .post h3 a:hover { color: var(--accent); }
.pfeat__text { margin-top: 16px; max-width: 36em; font-size: 18.5px; line-height: 1.6; color: var(--text-soft); }
.pfeat .textlink { margin-top: 24px; }
.pfeat__otter { width: 190px; height: auto; align-self: end; }
.posts { list-style: none; padding: 0; margin-top: 40px; }
.post {
  display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.post time { font-family: var(--mono); font-size: 14px; color: var(--faint); }
.post h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.post div p { margin-top: 8px; max-width: 44em; font-size: 16.5px; line-height: 1.55; color: var(--muted); }
.post__meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--faint); white-space: nowrap; }
.older { margin-top: 32px; }

/* ---- blog post ------------------------------------------------------------ */
.phead--post .phead__copy { max-width: 860px; }
.byline { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.byline img { width: 28px; height: 28px; border-radius: 50%; background: var(--text); padding: 3px; }
.article .prose { margin-inline: auto; }
.figure { margin: 2em 0; }
.figure figcaption { margin-top: 12px; font-family: var(--mono); font-size: 13.5px; color: var(--faint); }
.prose .swatches li + li { margin-top: 0; }
.prose .swatches { padding: 0; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; }
.swatches li { display: grid; gap: 6px; }
.swatches .sw { display: block; height: 84px; border-radius: 12px; border: 1px solid var(--line-strong); }
.swatches li:nth-child(1) .sw { background: var(--bg); }
.swatches li:nth-child(2) .sw { background: var(--text); }
.swatches li:nth-child(3) .sw { background: var(--sw-primary, #A9CB9B); }
.swatches li:nth-child(4) .sw { background: var(--sw-secondary, #1D3A2A); }
.swatches li:nth-child(5) .sw { background: var(--accent); }
.swatches code { font-family: var(--mono); font-size: 13px; color: var(--text); }
.swatches em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.figure--otters .otter-row { display: flex; align-items: flex-end; justify-content: space-around; gap: 16px; padding: 28px 20px 24px; border-radius: 16px; background: var(--bg-raised); border: 1px solid var(--line); }
.otter-row img { width: auto; height: 130px; min-width: 0; object-fit: contain; }
.post-foot { max-width: 680px; margin: clamp(48px, 6vw, 72px) auto 0; padding-top: 28px; border-top: 1.5px solid var(--line); }
.pnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pnav__item { display: grid; gap: 6px; padding: 20px 22px; border-radius: 14px; border: 1.5px solid var(--line); text-decoration: none; }
.pnav__item span { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.pnav__item strong { font-size: 17px; line-height: 1.3; color: var(--text); }
.pnav__item:hover { border-color: var(--accent); }
.pnav__item--next { text-align: right; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; }
  .svc__bars { grid-column: 1 / -1; grid-row: 2; }
  .svc__num { display: none; }
  .svc__state { grid-column: 2; grid-row: 1; }
  .svc--idle { grid-template-columns: minmax(0, 1fr) auto; }
  .lib { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .lib__where { grid-column: 2; grid-row: 2; }
  .lib .pill { grid-column: 3; grid-row: 1; }
  .lib__ver { grid-column: 3; grid-row: 2; justify-self: end; }
  .about, .contact, .detail__grid { grid-template-columns: minmax(0, 1fr); }
  .about__side { position: static; }
  .xrow { grid-template-columns: minmax(0, 1fr); }
  .xrow:nth-child(even) .xrow__shot { order: 0; }
  .post { grid-template-columns: minmax(0, 1fr); }
  .post__meta { order: 3; }
}
@media (max-width: 640px) {
  .phead__otter { width: 120px; }
  .overall { justify-items: start; }
  .tile dd { font-size: 32px; }
  .bars i:nth-child(-n+60) { display: none; }
  .ax90 { display: none; }
  .ax30 { display: inline; }
  .incidents li { grid-template-columns: minmax(0, 1fr); }
  .cform__row, .xcards, .pnav { grid-template-columns: minmax(0, 1fr); }
  .pfeat { grid-template-columns: minmax(0, 1fr); }
  .pfeat__otter { display: none; }
  .pfeat__copy { padding-bottom: 28px; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .otter-row img { height: 80px; }
  .xrow__more { margin-left: 0; }
  .dtitle { gap: 14px; }
  .picon--lg { width: 56px; height: 56px; border-radius: 16px; }
}

/* nav: five links on desktop, the two most important on phones */
.nav__links a { white-space: nowrap; }
@media (max-width: 640px) {
  .nav__links li:not(:first-child):not(:last-child) { display: none; }
}

/* status banner when things aren't all green: add a modifier to .overall__pill */
.overall__pill--warn { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.overall__pill--warn .pulse, .overall__pill--warn .pulse::after { background: var(--accent); }
.overall__pill--down { background: color-mix(in srgb, #E5675A 16%, transparent); border-color: color-mix(in srgb, #E5675A 50%, transparent); }
.overall__pill--down .pulse, .overall__pill--down .pulse::after { background: #E5675A; }

/* contact form errors: add .cform__error above the form and .field--error on a field */
.cform__error { padding: 14px 18px; border-radius: 12px; border: 1.5px solid #E5675A; background: color-mix(in srgb, #E5675A 12%, transparent); color: var(--text); font-size: 15.5px; }
.field--error input, .field--error textarea { border-color: #E5675A; }
.field__msg { font-size: 13.5px; color: #F08A7E; }

/* linked project names inside cards and the feature */
.feat__name a { text-decoration: none; }
.feat__name a:hover, .icard h4 a:hover { color: var(--accent); }
.icard h4 a { text-decoration: none; }
.field > .field__msg { font-weight: 400; font-size: 13.5px; color: #F08A7E; }
