/* =========================================================
   Components and sections. Mobile first; each block carries
   its own wider-screen rules directly underneath it, so a
   component is read in one place.

   Breakpoints: 40em (large phone), 48em (tablet),
   64em (laptop), 80em (desktop).
   ========================================================= */

/* ═══════════════════════════ PRIMITIVES ═══════════════════════════ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.container--narrow {
  max-width: var(--container-narrow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--ink);
  color: var(--porcelain);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  clip-path: none;
  outline-color: var(--sol);
  outline-offset: -4px;
}

/* ---------- The mark ---------- */

.mark {
  flex: none;
  overflow: visible;
}

.mark__face {
  fill: var(--mark-face, var(--porcelain));
  stroke: var(--mark-ink, var(--ink));
}

.mark__eye {
  fill: var(--mark-ink, var(--ink));
}

/* ---------- Icons ---------- */

.icon {
  flex: none;
  width: 1em;
  height: 1em;
  transition: transform 0.3s var(--ease);
}

/* ---------- Label ----------
   The technical label above a heading: index box, mono name, trailing rule. */

.label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.label::after {
  content: "";
  flex: 1 1 auto;
  max-width: 4rem;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.label__index {
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--rule-mid);
  color: var(--sol-ink);
  letter-spacing: 0.06em;
}

.heading--center .label {
  justify-content: center;
}

/* ---------- Section heading ---------- */

.heading {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.heading--center {
  margin-inline: auto;
  text-align: center;
}

.heading__title {
  font-size: var(--step-4);
}

.heading__lead {
  max-width: 42rem;
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: var(--step-1);
  line-height: 1.55;
}

.heading--center .heading__lead {
  margin-inline: auto;
}

/* ---------- Buttons ----------
   A printed offset rather than a blur: the button sits on the page like a
   stamped label and presses into it on click. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--ink);
  color: var(--porcelain);
  box-shadow: 3px 3px 0 var(--sol);
}

.btn--primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--sol);
}

.btn--secondary {
  background: var(--porcelain);
  color: var(--ink);
  box-shadow: var(--offset);
}

.btn--secondary:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--offset-hover);
}

.btn--sploit {
  border-color: var(--sploit);
  background: var(--sploit);
  color: var(--night-deep);
  box-shadow: 3px 3px 0 var(--on-night);
}

.btn--sploit:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--on-night);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent;
}

.btn--small {
  min-height: 2.5rem;
  padding: 0.5rem 0.9rem;
  font-size: var(--step--1);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* ---------- Links ---------- */

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  color: var(--sol-ink);
  font-weight: 700;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

.more:hover .icon--arrow {
  transform: translateX(3px);
}

/* ---------- Tags ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--rule-mid);
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  line-height: 1.5;
}

.tag--future {
  border-style: dashed;
  background: transparent;
}

.tag--edu {
  border-color: var(--edu);
  background: var(--porcelain);
  color: var(--edu-ink);
}

.tags--large .tag {
  padding: 0.4rem 0.75rem;
  font-size: var(--step--1);
}

/* ---------- Check list ---------- */

.checks {
  display: grid;
  gap: 0.55rem;
}

.checks li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--text-2);
}

.checks li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0.2rem;
  width: 0.8rem;
  height: 0.45rem;
  border-bottom: 2px solid var(--sol-ink);
  border-left: 2px solid var(--sol-ink);
  transform: rotate(-45deg);
}

.checks--compact {
  gap: 0.3rem;
  margin-block: 0.75rem;
  font-size: var(--step--1);
}

/* ---------- Status ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgb(63 122 90 / 0.15);
}

.status--warn .status__dot {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgb(168 112 29 / 0.18);
}

.status--bad .status__dot {
  background: var(--bad);
}

.status--info .status__dot {
  background: var(--sol);
  box-shadow: 0 0 0 3px rgb(143 155 208 / 0.22);
}

/* ---------- Disclosure ---------- */

.disclosure {
  margin-top: 0.75rem;
}

.disclosure__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.25rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.disclosure__summary::-webkit-details-marker {
  display: none;
}

.disclosure__summary:hover {
  color: var(--sol-ink);
}

.disclosure__icon {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid currentColor;
}

.disclosure__icon::before,
.disclosure__icon::after {
  content: "";
  position: absolute;
  inset: 50% 20% auto;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.disclosure__icon::after {
  transform: rotate(90deg);
}

.disclosure[open] .disclosure__icon::after {
  transform: rotate(0deg);
}

.disclosure__body {
  padding: 0.75rem 0 0.25rem;
}

/* ---------- Skull illustrations ---------- */

.skull {
  margin: 0;
}

.skull__img,
.skull__svg {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.skull__caption {
  margin-top: 0.4rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-align: center;
}

@keyframes skull-wiggle {
  0%,
  100% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(-5deg);
  }
  65% {
    transform: rotate(4deg);
  }
}

@keyframes skull-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes skull-blink {
  0%,
  93%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.08);
  }
}

@keyframes skull-rise {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .skull__img {
    transform-origin: 50% 85%;
  }

  .capability:hover .skull__img,
  .feature:hover .skull__img,
  .panel:hover .skull__img,
  .problem:hover .skull__img,
  .product:hover .skull__img,
  .split__skull:hover .skull__img,
  .family-strip__item:hover .skull__img {
    animation: skull-wiggle 0.6s var(--ease);
  }

  .system__skull .sk-eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: skull-blink 6.5s infinite;
  }

  .system__skull .sk-eye:nth-of-type(2) {
    animation-delay: 0.04s;
  }

  .system__hub .skull {
    animation: skull-drift 5s ease-in-out infinite;
  }

  /* Illustrations arrive as they scroll in, where the browser supports tying an
     animation to scroll position. Everywhere else they are simply there. */
  @supports (animation-timeline: view()) {
    .split__skull,
    .capability__art .skull,
    .problem__face .skull,
    .feature__art .skull,
    .panel__art .skull {
      animation: skull-rise linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
  }
}

/* ═══════════════════════════ HEADER ═══════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: rgb(242 239 235 / 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}

/* Fills the band iOS paints behind its translucent status strip. */
.site-header::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 6rem;
  background: var(--paper);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

a.brand:hover .mark {
  animation: skull-wiggle 0.6s var(--ease);
}

/* ---------- Menu (below 64em) ---------- */

.menu__button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding-inline: 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--porcelain);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.menu__button::-webkit-details-marker {
  display: none;
}

.menu__bars {
  position: relative;
  width: 1rem;
  height: 0.625rem;
}

.menu__bars::before,
.menu__bars::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.menu__bars::before {
  top: 0;
}

.menu__bars::after {
  bottom: 0;
}

.menu[open] .menu__bars::before {
  transform: translateY(0.25rem) rotate(45deg);
}

.menu[open] .menu__bars::after {
  transform: translateY(-0.25rem) rotate(-45deg);
}

.menu__panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100dvh - 100%);
  overflow-y: auto;
  padding: 0.5rem max(var(--gutter), env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  box-shadow: 0 24px 40px -30px rgb(23 20 28 / 0.5);
  animation: menu-drop 0.24s var(--ease) both;
}

@keyframes menu-drop {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
}

.nav__list > li + li {
  border-top: 1px solid var(--rule);
}

.nav__link {
  display: block;
  padding-block: 0.9rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  text-decoration: none;
}

.nav__link.is-current {
  color: var(--sol-ink);
}

.nav__link.is-current::after {
  content: " ·";
}

.menu__cta {
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 22em) {
  .menu__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .brand__word {
    font-size: 1.3rem;
  }
}

@media (min-width: 64em) {
  .menu__button {
    display: none;
  }

  .menu__panel {
    position: static;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }

  .menu::details-content {
    content-visibility: visible;
    block-size: auto;
  }

  .nav__list {
    flex-direction: row;
    gap: 1.75rem;
  }

  .nav__list > li + li {
    border-top: 0;
  }

  .nav__link {
    position: relative;
    padding-block: 1.4rem;
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 500;
  }

  .nav__link::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 1rem;
    left: 0;
    height: 1.5px;
    background: var(--sol);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }

  .nav__link:hover::before,
  .nav__link.is-current::before {
    transform: scaleX(1);
  }

  .nav__link.is-current {
    color: var(--ink);
  }

  .nav__link.is-current::after {
    content: none;
  }

  .menu__cta {
    width: auto;
    margin-top: 0;
  }
}

/* ═══════════════════════════ SECTIONS ═══════════════════════════ */

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section--paper {
  background: var(--paper);
}

.section--porcelain {
  background: var(--porcelain);
  border-block: 1px solid var(--rule);
}

.section--grid {
  background-color: var(--paper);
  background-image: var(--grid-dot);
  background-size: var(--grid-size);
  border-block: 1px solid var(--rule);
}

.section--periwinkle {
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(251 249 247 / 0.9) 0%, transparent 55%),
    var(--sol-wash);
}

.section--edu {
  background:
    radial-gradient(110% 90% at 20% 30%, var(--porcelain) 0%, transparent 60%),
    var(--edu-wash);
}

.section--night {
  background: var(--night);
  color: var(--on-night);
}

/* The mascot's teeth, rising from a dark band into whatever sits above it.
   Drawn in the band's own colour, so it never needs to know its neighbour. */
.teeth {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 30px;
  background-color: var(--night);
  -webkit-mask: var(--teeth) repeat-x center bottom / 98px 30px;
  mask: var(--teeth) repeat-x center bottom / 98px 30px;
  transform: scaleY(-1);
  pointer-events: none;
}

/* ═══════════════════════════ SPLIT LAYOUTS ═══════════════════════════ */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.split__skull {
  width: min(100%, 15rem);
  margin-inline: auto;
}

.split__main > .heading:last-child {
  margin-bottom: 0;
}

.split__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split__label--sploit {
  margin-top: 1.5rem;
  margin-bottom: 0;
  --mark-face: var(--porcelain);
}

@media (min-width: 64em) {
  .split {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .split--eng,
  .split--process,
  .split--stack {
    grid-template-columns: 7fr 5fr;
  }

  .split--about {
    grid-template-columns: 4fr 8fr;
    align-items: center;
  }

  .split--process .split__aside,
  .split--stack .split__aside {
    align-self: end;
  }

  .split--it .split__aside,
  .split--security .split__aside {
    position: sticky;
    top: 6rem;
  }

  .split__skull {
    margin-inline: 0;
  }

  .split--process .split__skull,
  .split--stack .split__skull,
  .split--net .split__skull {
    margin-inline: auto 0;
  }
}

/* ═══════════════════════════ HERO ═══════════════════════════ */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(70% 70% at 78% 40%, var(--porcelain) 0%, rgb(251 249 247 / 0) 70%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
}

/* Engineering paper behind the figure, fading out towards the copy. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grid-dot);
  background-size: var(--grid-size);
  -webkit-mask-image: radial-gradient(60% 70% at 75% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 75% 45%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 3rem);
  align-items: center;
}

.hero__title {
  font-size: var(--step-5);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero__title em {
  color: var(--sol-ink);
}

.hero__lede {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--text-2);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__index {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.hero__index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.hero__index li {
  display: inline-flex;
  align-items: center;
}

.hero__index li + li::before {
  content: "/";
  margin-inline: 0.6rem;
  color: var(--rule-mid);
}

.hero__index a {
  color: var(--text-2);
  text-decoration: none;
}

.hero__index a:hover {
  color: var(--sol-ink);
  text-decoration: underline;
}

.hero__index-extra {
  color: var(--text-3);
  font-style: italic;
}

@media (min-width: 64em) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  }
}

/* ---------- The hero figure ---------- */

.system {
  position: relative;
  width: 100%;
  max-width: 38rem;
  margin-inline: auto;
  aspect-ratio: 600 / 520;
}

.system__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.system__ring {
  fill: none;
  stroke: var(--rule-mid);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}

.system__ring--inner {
  stroke: var(--rule);
  stroke-dasharray: none;
}

.system__wire {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
}

.system__joint {
  fill: var(--porcelain);
  stroke: var(--ink);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.system__hub {
  position: absolute;
  top: 57.69%;
  left: 50%;
  width: 54%;
  transform: translate(-50%, -52%);
}

.system__nodes {
  position: absolute;
  inset: 0;
}

.system__node {
  position: absolute;
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--porcelain);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.system__name {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.system__node .status {
  font-size: 0.625rem;
}

.system__node--joke {
  transform: translate(-50%, -50%) rotate(-3deg);
  border-style: dashed;
}

/* Positions match heroNodes in src/components/diagrams.mjs (x/600, y/520). */
.system__node--1 { left: 15.33%; top: 18.46%; }
.system__node--2 { left: 50%; top: 7.69%; }
.system__node--3 { left: 85.33%; top: 18.46%; }
.system__node--4 { left: 9.33%; top: 57.69%; }
.system__node--5 { left: 91.33%; top: 57.69%; }
.system__node--6 { left: 17.33%; top: 91.92%; }
.system__node--7 { left: 82.67%; top: 91.92%; }

.system__caption {
  position: absolute;
  right: 0;
  bottom: -2.25rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

@media (max-width: 29.99em) {
  .system__node--minor,
  .system__wire--minor {
    display: none;
  }

  .system__node {
    padding: 0.25rem 0.4rem;
  }

  .system__hub {
    width: 52%;
  }
}

@media (min-width: 48em) {
  .system__name {
    font-size: 0.75rem;
  }

  .system__node .status {
    font-size: 0.6875rem;
  }
}

/* ═══════════════════════════ CAPABILITIES ═══════════════════════════ */

.capabilities {
  display: grid;
  gap: 1rem;
}

.capability {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--porcelain);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.capability:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--sol);
}

.capability:focus-within {
  box-shadow: 6px 6px 0 var(--sol);
}

.capability__art {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  padding: 1rem;
  border-bottom: 1px solid var(--rule-mid);
  background-color: var(--paper);
  background-image: var(--grid-dot);
  background-size: var(--grid-size);
}

.capability__art .skull {
  width: 7.5rem;
}

@media (min-width: 64em) {
  .capability__art {
    min-height: 11rem;
  }

  .capability__art .skull {
    width: 9rem;
  }
}

.capability__text {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem 1.25rem 1.4rem;
}

.capability__index {
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
}

.capability__title {
  font-size: var(--step-3);
}

/* The whole card is the link's hit area; the heading keeps the accessible name. */
.capability__link {
  text-decoration: none;
}

.capability__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.capability__link:focus-visible {
  outline: none;
}

.capability__link:focus-visible::after {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.capability__body {
  color: var(--text-2);
}

.capability__tags {
  margin-top: 0.25rem;
}

.capability__more {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capability__more::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.capability:hover .capability__more::after {
  transform: translateX(4px);
}

@media (min-width: 40em) {
  .capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability--strip {
    grid-column: 1 / -1;
    grid-template-rows: none;
    grid-template-columns: 12rem 1fr;
  }

  .capability--strip .capability__art {
    min-height: 0;
    border-right: 1px solid var(--rule-mid);
    border-bottom: 0;
  }
}

@media (min-width: 64em) {
  .capabilities {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .capability {
    grid-column: span 4;
  }

  .capability--wide {
    grid-column: span 6;
    grid-template-rows: none;
    grid-template-columns: 15rem 1fr;
  }

  .capability--wide .capability__art {
    border-right: 1px solid var(--rule-mid);
    border-bottom: 0;
  }

  .capability--wide .capability__art .skull {
    width: 10rem;
  }

  .capability--strip {
    grid-column: 1 / -1;
    grid-template-columns: 15rem 1fr;
  }

  .capability--strip .capability__text {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem 2rem;
  }

  .capability--strip .capability__index {
    grid-row: 1 / 3;
  }

  .capability--strip .capability__more {
    grid-row: 1 / 3;
    grid-column: 3;
    margin: 0;
    padding: 0;
  }
}

/* ---------- The family strip ---------- */

.family-strip {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-mid);
}

.family-strip__label {
  margin-bottom: 1rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.family-strip__list {
  display: grid;
  gap: 1rem;
}

.family-strip__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--sol);
  background: var(--porcelain);
}

.family-strip__item--sploit {
  border-left-color: var(--sploit);
}

.family-strip__item--edu {
  border-left-color: var(--edu);
}

.family-strip__item .skull {
  width: 3.25rem;
  flex: none;
}

.family-strip__item p {
  display: grid;
  line-height: 1.35;
}

.family-strip__item strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
}

.family-strip__item strong a {
  text-decoration: none;
}

.family-strip__item strong a:hover {
  text-decoration: underline;
}

.family-strip__item span {
  color: var(--text-2);
  font-size: var(--step--1);
}

.family-strip__note {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  color: var(--sol-ink) !important;
  font-family: var(--font-mono);
  font-size: var(--step--2) !important;
}

@media (min-width: 48em) {
  .family-strip__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ═══════════════════════════ PROBLEMS ═══════════════════════════ */

.problems {
  display: grid;
  gap: 1.25rem 2rem;
}

.problem {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  grid-template-areas:
    "face quote"
    ". route";
  gap: 0.5rem 0.9rem;
  align-items: start;
}

.problem__face {
  grid-area: face;
  padding-top: 0.25rem;
}

.problem__quote {
  position: relative;
  grid-area: quote;
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

/* The speech tail, pointing back at the Skull. Two triangles: the ink edge and
   the paper fill inside it. */
.problem__quote::before,
.problem__quote::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  width: 0;
  height: 0;
  border-style: solid;
}

.problem__quote::before {
  left: -11px;
  border-width: 8px 11px 8px 0;
  border-color: transparent var(--ink) transparent transparent;
}

.problem__quote::after {
  left: -8px;
  border-width: 7px 9px 7px 0;
  margin-top: 1px;
  border-color: transparent var(--paper) transparent transparent;
}

.problem__quote p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
}

.problem__quote p::before {
  content: "“";
}

.problem__quote p::after {
  content: "”";
}

.problem__route {
  grid-area: route;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.04em;
}

.problem__route a {
  color: var(--sol-ink);
  font-weight: 500;
  text-decoration: none;
}

.problem__route a::before {
  content: "→ ";
}

.problem__route a:hover {
  text-decoration: underline;
}

@media (min-width: 48em) {
  .problems {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2.5rem;
  }

  /* The last two are the ones that route to a person; they read as the
     conversation's closing lines, so they sit apart. */
  .problem:nth-last-child(-n + 2) .problem__quote {
    background: var(--sol-tint);
  }

  .problem:nth-last-child(-n + 2) .problem__quote::after {
    border-right-color: var(--sol-tint);
  }
}

@media (min-width: 80em) {
  .problem {
    grid-template-columns: 5.25rem 1fr;
  }
}

/* ═══════════════════════════ SERVICES (spec sheet) ═══════════════════════════ */

.services {
  border-top: 1.5px solid var(--ink);
}

.service {
  display: grid;
  gap: 0.75rem 2rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--rule-mid);
}

.service__name {
  font-size: var(--step-2);
}

.service__summary {
  margin-top: 0.35rem;
  color: var(--text-2);
}

.service__note {
  margin-top: 0.75rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--sol);
  color: var(--text-2);
  font-size: var(--step--1);
}

.service__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.service__price-note {
  color: var(--text-3);
  font-size: var(--step--2);
}

.price {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--rule-mid);
  border-radius: var(--radius);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.price--published {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--porcelain);
}

@media (min-width: 48em) {
  .service {
    grid-template-columns: minmax(0, 1fr) 12rem;
  }

  .service__price {
    flex-direction: column;
    align-items: flex-end;
    padding-top: 0.35rem;
    text-align: right;
  }
}

/* ---------- Pricing tickets ---------- */

.pricing {
  margin-top: 2rem;
}

.split__aside .pricing {
  margin-top: 1.5rem;
}

.pricing__label {
  margin-bottom: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tickets {
  display: grid;
  gap: 0.75rem;
}

/* A ticket: solid on three sides, perforated on the left, with two punched
   notches where the stub would tear off. */
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name price"
    "summary summary"
    "note note";
  gap: 0.25rem 1rem;
  padding: 1rem 1.25rem 1rem 1.5rem;
  border: 1.5px solid var(--ink);
  border-left-style: dashed;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0 50%, var(--paper) 0.55rem, transparent 0.6rem),
    var(--porcelain);
}

.ticket__name {
  grid-area: name;
  align-self: center;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.25;
}

.ticket__price {
  grid-area: price;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  white-space: nowrap;
}

.ticket__from {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

.ticket__amount {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1;
}

.ticket__currency {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
}

.ticket__summary {
  grid-area: summary;
  color: var(--text-2);
  font-size: var(--step--1);
}

.ticket__note {
  grid-area: note;
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

.pricing__note--boxed {
  padding: 0.9rem 1rem;
  border: 1px dashed var(--rule-mid);
  background: var(--porcelain);
}

.pricing__note {
  margin-top: 1rem;
  color: var(--text-2);
  font-size: var(--step--1);
}

.section--porcelain .ticket,
.catalogue-section .ticket {
  background:
    radial-gradient(circle at 0 50%, var(--porcelain) 0.55rem, transparent 0.6rem),
    var(--paper);
}

@media (min-width: 48em) {
  .section:not(.it-section) .tickets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section:not(.it-section) .ticket {
    grid-template-columns: 1fr;
    grid-template-areas: "name" "price" "summary" "note";
  }
}

/* ---------- Features (QR menu, CCTV) ---------- */

.features {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.feature {
  display: grid;
  gap: 1rem 1.5rem;
  padding: 1.5rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--porcelain);
}

.feature__art .skull {
  width: 8rem;
}

.feature__kicker,
.panel__kicker,
.product__kind {
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature__title {
  margin-block: 0.35rem 0.6rem;
  font-size: var(--step-3);
}

.feature__text > p {
  color: var(--text-2);
}

.feature__foot,
.panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
}

.feature__foot .more,
.panel__foot .more {
  margin-top: 0;
}

.steps-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.9rem;
  counter-reset: none;
}

.steps-inline li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--rule-mid);
  background: var(--paper);
  font-size: var(--step--1);
}

.steps-inline span {
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

@media (min-width: 40em) {
  .feature {
    grid-template-columns: 8rem 1fr;
  }
}

@media (min-width: 64em) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Callout ---------- */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--rule-mid);
  background: var(--porcelain);
}

.callout .skull {
  width: 4.5rem;
}

.callout p {
  flex: 1 1 16rem;
  color: var(--text-2);
}

/* ═══════════════════════════ DIAGRAMS ═══════════════════════════ */

.diagram {
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--porcelain);
}

.diagram__caption {
  margin-bottom: 1.25rem;
  color: var(--text-2);
  font-size: var(--step--1);
}

.diagram__fig {
  margin-right: 0.5rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--rule-mid);
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

/* ---------- Network: a column on phones, a row from tablet up ---------- */

.net {
  display: grid;
  gap: 1.5rem;
}

.net__stage {
  position: relative;
}

/* The wire between stages. */
.net__stage + .net__stage::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 1.25rem;
  width: 1.5px;
  height: 1.5rem;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 4px, transparent 4px 7px);
}

.net__box {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.net__box--muted {
  border-style: dashed;
  background: transparent;
}

.net__box--key {
  background: var(--sol-wash);
  box-shadow: 3px 3px 0 var(--ink);
}

.net__title {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
}

.net__detail {
  color: var(--text-2);
  font-size: var(--step--2);
  line-height: 1.4;
}

.net__badge {
  justify-self: start;
  margin-top: 0.3rem;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--sol-ink);
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
}

.net__branches {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.25rem;
  border-left: 1.5px solid var(--ink);
}

.net__branch {
  position: relative;
}

.net__branch::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 1.25rem;
  height: 1.5px;
  background: var(--ink);
}

@media (min-width: 48em) {
  .net {
    grid-template-columns: repeat(3, minmax(0, 0.8fr)) minmax(0, 1.4fr);
    align-items: center;
    gap: 1.25rem;
  }

  .net__stage + .net__stage::before {
    top: 50%;
    right: 100%;
    bottom: auto;
    left: auto;
    width: 1.25rem;
    height: 1.5px;
    background: repeating-linear-gradient(to right, var(--ink) 0 4px, transparent 4px 7px);
  }

  .net__stage--split::before {
    display: none;
  }

  .net__branches {
    padding-left: 1.25rem;
  }
}

/* ---------- Architecture: stacked layers ---------- */

.arch {
  display: grid;
  gap: 0.4rem;
}

.arch__layer {
  display: grid;
  gap: 0.4rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule-mid);
  background: var(--paper);
}

.arch__layer--key {
  border: 1.5px solid var(--ink);
  background: var(--sol-wash);
}

.arch__name {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.arch__parts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.arch__parts li {
  padding: 0.1rem 0.45rem;
  border: 1px solid var(--rule-mid);
  background: var(--porcelain);
  font-size: var(--step--2);
}

@media (min-width: 40em) {
  .arch__layer {
    grid-template-columns: 6.5rem 1fr;
    align-items: center;
  }
}

.split__aside--eng {
  display: grid;
  gap: 1.5rem;
}

/* ═══════════════════════════ HEALTH CHECKUP ═══════════════════════════ */

.health {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.health .heading__title em {
  color: var(--sol-ink);
}

.versus {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-block: 0.5rem 1.5rem;
}

.versus__item {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}

.versus__item .skull {
  width: 7rem;
}

.versus__item figcaption {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--rule-mid);
  background: var(--porcelain);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.versus__vs {
  align-self: center;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
}

.health__caveat,
.caveat {
  max-width: 40rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--sol);
  color: var(--text-2);
  font-size: var(--step--1);
}

.caveat {
  margin-top: 2rem;
}

/* The report: a printout on porcelain, with a torn top edge implied by a
   dashed rule, a header strip and rows like a form. */
.report {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--porcelain);
  box-shadow: 8px 8px 0 rgb(23 20 28 / 0.9);
}

.report__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1.5px dashed var(--ink);
}

.report__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
}

.report__meta {
  align-self: center;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report__quarters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule-mid);
}

.report__quarters li {
  padding: 0.5rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-align: center;
}

.report__quarters li + li {
  border-left: 1px solid var(--rule);
}

.report__quarters .is-now {
  background: var(--ink);
  color: var(--porcelain);
}

.report__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "area state"
    "items items";
  gap: 0.25rem 1rem;
  padding: 0.8rem 1.1rem;
}

.report__row + .report__row {
  border-top: 1px solid var(--rule);
}

.report__area {
  grid-area: area;
  font-weight: 700;
}

.report__items {
  grid-area: items;
  color: var(--text-2);
  font-size: var(--step--1);
}

.report__state {
  grid-area: state;
}

@media (min-width: 64em) {
  .health {
    grid-template-columns: 5fr 6fr;
  }

  .report {
    transform: rotate(0.6deg);
  }
}

/* ═══════════════════════════ ENGINEERING ═══════════════════════════ */

.eng-grid {
  display: grid;
  gap: 1px;
  border: 1.5px solid var(--ink);
  background: var(--rule-mid);
}

.eng {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--porcelain);
}

.eng__title {
  font-size: var(--step-2);
}

.eng__summary {
  color: var(--text-2);
}

.eng__tags {
  margin-top: 0.25rem;
}

.eng__note {
  color: var(--text-3);
  font-size: var(--step--1);
  font-style: italic;
}

@media (min-width: 48em) {
  .eng-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eng:last-child {
    grid-column: 1 / -1;
  }
}

.buildables {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 7rem;
  border: 1.5px dashed var(--ink);
  border-radius: var(--radius);
}

.buildables__title {
  font-size: var(--step-3);
}

.buildables__head p {
  max-width: 38rem;
  margin-top: 0.5rem;
  color: var(--text-2);
}

.buildables__skull {
  position: absolute;
  right: 1rem;
  bottom: 0.5rem;
  width: 6.5rem;
}

@media (min-width: 48em) {
  .buildables {
    grid-template-columns: 18rem 1fr;
    padding-bottom: clamp(1.25rem, 3vw, 2rem);
    padding-right: 9rem;
  }
}

/* ═══════════════════════════ CONSULTING ═══════════════════════════ */

.panels {
  display: grid;
  gap: 1.25rem;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
}

.panel--vibe {
  background: var(--sol-tint);
}

.panel--infra {
  background-color: var(--porcelain);
  background-image: var(--grid-dot);
  background-size: var(--grid-size);
}

.panel__art .skull {
  width: 9rem;
}

.panel__title {
  font-size: var(--step-3);
}

.panel__body {
  color: var(--text-2);
  font-size: var(--step-1);
}

.panel__foot {
  margin-top: auto;
}

@media (min-width: 64em) {
  .panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding-top: 2rem;
  }

  .panel__art {
    position: absolute;
    top: -2.5rem;
    right: 1rem;
  }

  .panel__kicker,
  .panel__title {
    padding-right: 9rem;
  }
}

.minor-services {
  display: grid;
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-block: 1.5px solid var(--ink);
  background: var(--rule-mid);
}

.minor-services li {
  padding: 1.25rem 0;
  background: var(--paper);
}

.section--porcelain .minor-services li {
  background: var(--porcelain);
}

.section--grid .minor-services li {
  background: var(--paper);
}

.minor-services h3 {
  font-size: var(--step-2);
}

.minor-services p {
  margin-top: 0.35rem;
  color: var(--text-2);
}

@media (min-width: 48em) {
  .minor-services,
  .minor-services--four,
  .minor-services--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .minor-services li {
    padding: 1.25rem 1.5rem 1.25rem 0;
  }

  .minor-services li:nth-child(even) {
    padding-left: 1.5rem;
  }
}

@media (min-width: 64em) {
  .minor-services--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .minor-services--four li,
  .minor-services--four li:nth-child(even) {
    padding: 1.25rem 1.25rem 1.25rem 0;
  }

  .minor-services--four li + li {
    padding-left: 1.25rem;
  }
}

/* ═══════════════════════════ SECURITY & SKULLSPLOIT ═══════════════════════════ */

.security-section {
  padding-bottom: calc(var(--section-space) + 1rem);
}

.sploit {
  --mark-face: var(--on-night);
  --mark-ink: var(--night-deep);
  padding-block: calc(var(--section-space) + 1rem) var(--section-space);
  background:
    radial-gradient(60% 70% at 85% 30%, rgb(189 148 195 / 0.14) 0%, transparent 70%),
    var(--night);
}

.sploit__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.sploit .label {
  color: var(--on-night-2);
}

.sploit .label__index {
  border-color: var(--rule-night);
  color: var(--sploit-ink);
}

.sploit__prompt {
  margin-bottom: 1rem;
  color: var(--on-night-2);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  overflow-wrap: anywhere;
}

.sploit__prompt span {
  color: var(--sploit);
}

.sploit__prompt::after {
  content: "▋";
  margin-left: 0.2rem;
  color: var(--sploit);
}

@media (prefers-reduced-motion: no-preference) {
  .sploit__prompt::after {
    animation: caret 1.1s steps(1) infinite;
  }
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.sploit__title {
  color: var(--on-night);
  font-size: var(--step-5);
  line-height: 0.95;
}

.sploit__title em {
  color: var(--sploit-ink);
}

.sploit__lede {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--on-night-2);
  font-size: var(--step-1);
}

.sploit__services {
  display: grid;
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--rule-night);
  background: var(--rule-night);
}

.sploit__services li {
  padding: 1rem 1.1rem;
  background: var(--night);
}

.sploit__services h3 {
  color: var(--on-night);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.sploit__services p {
  margin-top: 0.3rem;
  color: var(--on-night-2);
  font-size: var(--step--1);
}

.sploit__future {
  margin-top: 1.25rem;
  color: var(--on-night-2);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

.sploit__future-label {
  color: var(--sploit-ink);
}

.sploit__split {
  max-width: 38rem;
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--sploit);
  color: var(--on-night-2);
  font-size: var(--step--1);
}

.sploit__art {
  position: relative;
  display: grid;
  justify-items: center;
}

.sploit__skull {
  width: min(100%, 18rem);
}

.sploit__skull--small {
  width: 8rem;
  margin-top: -1rem;
  justify-self: end;
}

.sploit .skull__caption {
  color: var(--on-night-2);
}

.sploit a:not(.btn) {
  color: var(--sploit-ink);
}

@media (min-width: 48em) {
  .sploit__services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .sploit__inner {
    grid-template-columns: 7fr 5fr;
  }

  .sploit__skull--small {
    position: absolute;
    right: 0;
    bottom: -3rem;
  }
}

/* ---------- Security page: layers ---------- */

.layers {
  display: grid;
  gap: 0.6rem;
}

.layer {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.15rem 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--ink);
  background: var(--porcelain);
}

.layer:nth-child(2) { margin-left: clamp(0rem, 2vw, 1.5rem); }
.layer:nth-child(3) { margin-left: clamp(0rem, 4vw, 3rem); }
.layer:nth-child(4) { margin-left: clamp(0rem, 6vw, 4.5rem); }
.layer:nth-child(5) { margin-left: clamp(0rem, 8vw, 6rem); }

.layer--sploit {
  --mark-face: var(--on-night);
  background: var(--night);
  color: var(--on-night);
}

.layer__index {
  grid-row: 1 / 4;
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
}

.layer--sploit .layer__index {
  color: var(--sploit-ink);
}

.layer__title {
  font-size: var(--step-2);
}

.layer--sploit .layer__title {
  color: var(--on-night);
}

.layer__body {
  color: var(--text-2);
}

.layer--sploit .layer__body {
  color: var(--on-night-2);
}

.layer__who {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

.layer--sploit .layer__who {
  color: var(--sploit-ink);
}

/* ═══════════════════════════ PRODUCTS ═══════════════════════════ */

.product {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: rgb(251 249 247 / 0.7);
  box-shadow: 6px 6px 0 var(--edu);
}

.product__art .skull {
  width: min(100%, 13rem);
  margin-inline: auto;
}

.product__kind {
  color: var(--edu-ink);
}

.product__name {
  margin-top: 0.25rem;
  font-size: var(--step-4);
}

.product__line {
  margin-top: 0.25rem;
  color: var(--edu-ink);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
}

.product__summary {
  max-width: 36rem;
  margin-block: 0.75rem 1rem;
  color: var(--text-2);
  font-size: var(--step-1);
}

.product .more {
  color: var(--edu-ink);
}

@media (min-width: 48em) {
  .product {
    grid-template-columns: 16rem 1fr;
  }
}

/* ═══════════════════════════ PROCESS ═══════════════════════════ */

.steps {
  display: grid;
  gap: 1.5rem 1.25rem;
  margin-top: clamp(1rem, 3vw, 2rem);
}

.step {
  padding-top: 0.9rem;
  border-top: 2px solid var(--ink);
}

.step__index {
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.step__title {
  margin-block: 0.3rem 0.4rem;
  font-size: var(--step-2);
}

.step__body {
  color: var(--text-2);
  font-size: var(--step--1);
}

@media (min-width: 40em) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .steps--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.scale {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

/* position: relative gives the visually-hidden labels in the cells a containing
   block inside the scroller. Without it they are positioned against the page,
   escape the overflow clip, and widen the whole layout viewport on phones. */
.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--porcelain);
}

.table-wrap:focus-visible {
  outline-offset: 4px;
}

.scale__table {
  width: 100%;
  min-width: 46rem;
  font-size: var(--step--1);
}

.scale__table caption {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule-mid);
  font-weight: 700;
  text-align: left;
}

.scale__table caption span {
  color: var(--text-3);
  font-weight: 400;
}

.scale__table th,
.scale__table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.scale__table thead th {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  white-space: nowrap;
}

.scale__table thead th span {
  color: var(--sol-ink);
}

.scale__table th[scope="row"] {
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.scale__table tbody tr:last-child > * {
  border-bottom: 0;
}

.dot {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  vertical-align: middle;
}

.dot--yes {
  background: var(--ink);
}

.dot--some {
  border: 1.5px solid var(--ink);
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
}

.dot--no {
  width: 0.6rem;
  height: 1.5px;
  border-radius: 0;
  background: var(--rule-mid);
}

.scale__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

.scale__legend .dot {
  margin-left: 0.5rem;
}

/* ═══════════════════════════ STACK ═══════════════════════════ */

.stack {
  display: grid;
  gap: 1px;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  border: 1.5px solid var(--ink);
  background: var(--rule-mid);
}

.stack__group {
  padding: 1.1rem 1.25rem 1.3rem;
  background: var(--porcelain);
}

.stack__label {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
}

.stack__label span {
  margin-right: 0.35rem;
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
}

.stack .tag {
  background: var(--paper);
}

@media (min-width: 48em) {
  .stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stack__group:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64em) {
  .stack {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .stack__group:last-child {
    grid-column: auto;
  }
}

/* ═══════════════════════════ ABOUT ═══════════════════════════ */

.principles {
  display: grid;
  gap: 1.25rem 2rem;
}

.principles li {
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule-mid);
}

.principles h3 {
  font-size: var(--step-2);
}

.principles p {
  margin-top: 0.35rem;
  color: var(--text-2);
}

.principles__index {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

@media (min-width: 64em) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .principles--numbered {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.people {
  display: grid;
  gap: 1.25rem;
}

.person {
  padding: 1.25rem;
  border: 1.5px solid var(--ink);
  background: var(--porcelain);
}

.person__name {
  font-size: var(--step-3);
}

.person__role {
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person__background {
  margin-top: 0.6rem;
  color: var(--text-2);
}

@media (min-width: 48em) {
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.family-cards {
  display: grid;
  gap: 1.25rem;
}

.family-card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1.5px solid var(--ink);
  border-top-width: 6px;
  border-top-color: var(--sol);
  background: var(--porcelain);
}

.family-card .skull {
  width: 6rem;
  margin-bottom: 0.5rem;
}

.family-card h3 {
  font-size: var(--step-3);
}

.family-card h3 a {
  text-decoration: none;
}

.family-card h3 a:hover {
  text-decoration: underline;
}

.family-card p {
  color: var(--text-2);
}

.family-card__role {
  color: var(--sol-ink) !important;
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

.family-card--sploit {
  --mark-face: var(--on-night);
  border-top-color: var(--sploit);
  background: var(--night);
}

.family-card--sploit h3,
.family-card--sploit h3 a {
  color: var(--on-night);
}

.family-card--sploit p {
  color: var(--on-night-2);
}

.family-card--sploit .family-card__role {
  color: var(--sploit-ink) !important;
}

.family-card--edu {
  border-top-color: var(--edu);
  background: var(--edu-wash);
}

.family-card--edu .family-card__role {
  color: var(--edu-ink) !important;
}

@media (min-width: 64em) {
  .family-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.prose {
  max-width: 40rem;
  display: grid;
  gap: 1rem;
  color: var(--text-2);
  font-size: var(--step-1);
  line-height: 1.65;
}

.prose a {
  color: var(--sol-ink);
}

.prose-split {
  display: grid;
  gap: 1rem 4rem;
}

@media (min-width: 64em) {
  .prose-split {
    grid-template-columns: 5fr 7fr;
  }
}

.subheading {
  margin-block: 1.5rem 0.75rem;
  font-size: var(--step-2);
}

/* ---------- Topics (cyber-safety, vibe code scope) ---------- */

.topics {
  display: grid;
  gap: 1px;
  border: 1.5px solid var(--ink);
  background: var(--rule-mid);
}

.topic {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 1.1rem 1.25rem;
  background: var(--porcelain);
}

.topic__index {
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

.topic__title {
  font-size: var(--step-2);
}

.topic__body {
  color: var(--text-2);
  font-size: var(--step--1);
}

@media (min-width: 40em) {
  .topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64em) {
  .topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ═══════════════════════════ CONTACT ═══════════════════════════ */

.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.contact__intro {
  position: relative;
}

.contact__topics {
  margin-top: -0.75rem;
}

.contact__address {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.1;
}

.contact__address a {
  text-decoration-color: var(--sol);
  text-decoration-thickness: 2px;
}

.contact__skull {
  width: 9.5rem;
  margin-top: 1.5rem;
}

.enquiries {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.enquiry {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  padding: 1.25rem 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--porcelain);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.enquiry:hover,
.enquiry:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.enquiry__index {
  grid-row: 1 / 4;
  color: var(--sol-ink);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

.enquiry__title {
  font-size: var(--step-3);
}

.enquiry__body {
  color: var(--text-2);
}

.enquiry__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  margin-top: 0.5rem;
  font-weight: 700;
  text-decoration-color: var(--sol);
  text-decoration-thickness: 2px;
}

.enquiry__link::after {
  content: "→";
}

/* The whole card opens the mail link. */
.enquiry__link::before {
  content: "";
  position: absolute;
  inset: 0;
}

@media (min-width: 64em) {
  .contact {
    grid-template-columns: 6fr 5fr;
  }

  .contact__skull {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
  }

  .contact__address {
    padding-right: 9rem;
  }
}

.contact-address {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-address a {
  text-decoration-color: var(--sol);
  text-decoration-thickness: 2px;
}

/* ---------- The assistant hand-off line ---------- */

.ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 2rem;
  color: var(--text-2);
}

.ask[hidden] {
  display: none;
}

.ask__button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ask__button:hover {
  box-shadow: 3px 3px 0 var(--ink);
}

/* ═══════════════════════════ PAGE HEAD ═══════════════════════════ */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(60% 80% at 85% 50%, var(--porcelain) 0%, rgb(251 249 247 / 0) 70%),
    var(--paper);
  border-bottom: 1px solid var(--rule);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grid-dot);
  background-size: var(--grid-size);
  -webkit-mask-image: radial-gradient(50% 80% at 85% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(50% 80% at 85% 50%, #000 0%, transparent 75%);
  pointer-events: none;
}

.page-head__inner {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-head__title {
  font-size: var(--step-5);
  line-height: 0.98;
}

.page-head__title em {
  color: var(--sol-ink);
}

.page-head__lead {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: var(--text-2);
  font-size: var(--step-1);
}

.page-head__meta {
  margin-top: 1rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

.page-head__price {
  margin-top: 1.25rem;
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.page-head__art .skull {
  width: min(60vw, 16rem);
  margin-inline: auto;
}

.page-head--center {
  text-align: center;
}

.page-head--center .label,
.page-head--center .page-head__actions {
  justify-content: center;
}

.page-head--center .page-head__lead {
  margin-inline: auto;
}

.not-found__skull {
  width: 14rem;
  margin: 0 auto 1rem;
}

@media (min-width: 64em) {
  .page-head__inner {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }

  .page-head__title {
    font-size: var(--step-5);
  }
}

.trail ol {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

.trail li + li::before {
  content: "/";
  margin-inline: 0.5rem;
  color: var(--rule-mid);
}

.trail a {
  color: var(--text-2);
  text-decoration: none;
}

.trail a:hover {
  text-decoration: underline;
}

.page-toc ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
}

/* ═══════════════════════════ FOOTER ═══════════════════════════ */

.site-footer {
  --mark-face: var(--on-night);
  --mark-ink: var(--night-deep);
  position: relative;
  margin-top: 30px;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--night);
  color: var(--on-night-2);
}

.site-footer a {
  color: var(--on-night);
  text-decoration-color: rgb(239 233 239 / 0.35);
}

.site-footer a:hover {
  text-decoration-color: var(--sol);
}

.site-footer__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.brand--footer {
  color: var(--on-night);
}

.site-footer__line {
  margin-top: 1rem;
  color: var(--on-night);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-style: italic;
}

.site-footer__description {
  max-width: 26rem;
  margin-top: 0.5rem;
  font-size: var(--step--1);
}

.site-footer__email {
  margin-top: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer__nav {
  display: grid;
  gap: 2rem;
}

.site-footer__heading {
  margin-bottom: 0.9rem;
  color: var(--on-night-2);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__links {
  display: grid;
  gap: 0.45rem;
  font-size: var(--step--1);
}

.site-footer__links a {
  text-decoration: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__links--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
}

.family {
  display: grid;
  gap: 0.9rem;
}

.family__item {
  display: grid;
  padding-left: 0.75rem;
  border-left: 2px solid var(--sol);
  line-height: 1.35;
}

.family__item:nth-child(2) {
  border-left-color: var(--sploit);
}

.family__item:nth-child(3) {
  border-left-color: var(--edu);
}

.family__name {
  color: var(--on-night);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.family__role {
  font-size: var(--step--1);
}

.site-footer__skull {
  width: 9rem;
  justify-self: end;
  opacity: 0.95;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid var(--rule-night);
  font-family: var(--font-mono);
  font-size: var(--step--2);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

@media (min-width: 48em) {
  .site-footer__nav {
    grid-template-columns: 1.3fr 1fr;
  }
}

@media (min-width: 64em) {
  .site-footer__inner {
    grid-template-columns: 1fr 1.6fr;
    padding-right: 10rem;
  }

  .site-footer__skull {
    position: absolute;
    right: var(--gutter);
    bottom: 1rem;
  }
}

/* The footer skull sleeps on the dark ground, so its caption-free image gets a
   faint lift to stay readable against the night. */
.site-footer__skull .skull__img {
  filter: drop-shadow(0 0 18px rgb(143 155 208 / 0.18));
}

/* ═══════════════════════════ CATALOGUE PAGES ═══════════════════════════ */

.catalogue-section .heading {
  margin-bottom: 1.75rem;
}
