/* Direction E: black gallery wall, one RGB mural. Components in page order. Builds on tokens.css.
   Colour appears only in the mural, the three bands and the red full stop. Flat: no shadows,
   no gradients, no bordered cards. No motion here: that lives in motion.css. */

/* Shell */
:root {
  --hs-pad: clamp(1rem, 4vw, 3.5rem);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* clip, not hidden: the mural copies start a few vw off their mark, and must not add a scrollbar. */
main {
  flex: 1 0 auto;
  width: 100%;
  overflow-x: clip;
}

.wrap {
  padding-inline: var(--hs-pad);
}

/* Inner pages: one column on the void. */
.page {
  padding-block: 1rem clamp(3rem, 8vw, 7rem);
}

.page > p:not(.label),
.page > ul,
.sec > p:not(.label) {
  font-size: 1.11rem;
}

/* An inner page that opens on the void and then runs on bands and sections: those bring
   their own space, so the opening block keeps none below. */
.page--top {
  padding-bottom: 0;
}

.page > .mural {
  margin-block: 1rem clamp(2rem, 5vw, 4rem);
}

/* Under the inner-page mural, h2 steps down so scale still carries the hierarchy. */
.page > .poster {
  margin: clamp(3rem, 7vw, 6rem) 0 1.5rem;
  font-size: clamp(1.5rem, 4.5vw, 3.5rem);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -10rem;
  left: 0.5rem;
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--hs-bg);
  color: var(--hs-text);
  border: 2px solid var(--hs-text);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header: bare text on the void. No bar, no fill. */
.site-header {
  padding: 1rem var(--hs-pad) 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.75rem;
}

.site-home {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  margin-right: auto;
  color: var(--hs-text);
  text-decoration: none;
}

/* The HS mark: a white drawing, turned black on the light theme and on paper. */
.site-home img {
  display: block;
  width: auto;
  height: 2.6rem;
}

html[data-theme="light"] .site-home img {
  filter: invert(1);
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hs-text);
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

/* Dropdowns: the section link, then a small button that opens the pages inside it. */
.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-group:has([aria-current="page"]) > .site-nav__link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-height: 44px;
  padding: 0;
  background: none;
  color: var(--hs-text);
  border: 0;
  cursor: pointer;
}

.nav-toggle[hidden] {
  display: none;
}

/* The chevron: a small border corner, pointing down when shut and up when open. */
.nav-toggle::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::before {
  margin-top: 0.25rem;
  transform: rotate(-135deg);
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  min-width: 14rem;
  margin: 0;
  padding: 0.5rem 0;
  background-color: var(--hs-bg);
  border: 1px solid var(--hs-muted);
  list-style: none;
}

.nav-sub[hidden] {
  display: none;
}

.nav-sub__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  color: var(--hs-text);
  text-decoration: none;
}

.nav-sub__link:hover,
.nav-sub__link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav-sub__link[aria-current="page"] {
  font-weight: 700;
}

/* Theme and motion switches: hairline pills, hidden until prefs.js reveals them.
   State is the on/off word and a brighter outline, never colour alone. */
/* Small pills, so the header stays on one row; if it must wrap, they sit on the right. */
.site-prefs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-left: auto;
}

.pref-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.4rem;
  background: none;
  color: var(--hs-muted);
  border: 0;
  font-family: var(--hs-font-body, inherit);
  font-size: 0.85rem;
  line-height: 1.2;
  cursor: pointer;
}

/* The drawn toggle: a track with a knob, knob on the right when the switch is on.
   The on/off word repeats the state, so nothing rests on the drawing. */
.pref-switch::before {
  content: "";
  flex: none;
  width: 1.7rem;
  height: 0.95rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.pref-switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(0.4rem + 0.2rem);
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.275rem;
  border-radius: 50%;
  background: currentColor;
}

.pref-switch[hidden] {
  display: none;
}

.pref-switch:hover .pref-label {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* The flex gap already sits before the word; pull it closer to its label. */
.pref-state {
  margin-inline-start: -0.25rem;
}

.pref-switch[aria-pressed="true"] {
  color: var(--hs-text);
}

.pref-switch[aria-pressed="true"]::after {
  left: calc(0.4rem + 1.7rem - 0.55rem - 0.2rem);
}

/* The Menu button: phones only (see below). Hidden on wider screens and without JavaScript. */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0 0.9rem;
  background: none;
  color: var(--hs-text);
  border: 1px solid var(--hs-muted);
  border-radius: 0;
  font-family: var(--hs-font-mono);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--hs-text);
}

/* Three drawn lines; an X while the menu is open. Borders, not fills, so forced colours keep them. */
.menu-toggle__icon {
  position: relative;
  flex: none;
  width: 1.1rem;
  height: 0.8rem;
  border-block: 2px solid currentColor;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: -1px;
  border-top: 2px solid currentColor;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
  border-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  transform: rotate(-45deg);
}

/* Tablet and desktop: the menu wrapper adds no box, so links and switches sit in the header row. */
.site-menu {
  display: contents;
}

/* Phones: HS and one Menu button. The button opens a full-width panel under the header with the
   four sections, each with a disclosure button for its pages, and the two switches at the foot.
   html[data-motion] is set by the inline head script, so it means JavaScript runs: only then is
   the panel closed by default. Without JavaScript the whole list shows, pages included. */
@media (max-width: 47.98rem) {
  .site-header {
    position: relative;
    padding-top: 0.5rem;
  }

  .site-nav {
    gap: 0 1rem;
  }

  .site-menu {
    display: block;
    width: 100%;
    padding-bottom: 0.5rem;
  }

  html[data-motion] .menu-toggle {
    display: inline-flex;
  }

  html[data-motion] .site-menu {
    display: none;
  }

  html[data-motion] .site-menu.is-open {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 60;
    display: block;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
    padding: 0.25rem var(--hs-pad) 1rem;
    background-color: var(--hs-bg);
    border-bottom: 1px solid var(--hs-muted);
  }

  .site-nav__links {
    flex-direction: column;
    gap: 0;
  }

  .site-nav__links > li {
    border-top: 1px solid var(--hs-line);
  }

  .nav-group {
    position: static;
    flex-wrap: wrap;
  }

  .nav-group > .site-nav__link {
    flex: 1 1 auto;
  }

  .site-nav__link {
    min-height: 48px;
  }

  .nav-toggle {
    width: 48px;
    min-height: 48px;
  }

  .nav-sub {
    position: static;
    flex-basis: 100%;
    min-width: 0;
    margin: 0 0 0.75rem 0.2rem;
    padding: 0;
    background: none;
    border: 0;
    border-left: 2px solid var(--hs-muted);
  }

  /* Bootstrap hides [hidden] with !important, so this override needs it too. */
  html:not([data-motion]) .nav-sub[hidden] {
    display: block !important;
  }

  .site-prefs {
    justify-content: flex-start;
    margin: 0;
  }

  /* The switches need JavaScript, so their rule shows only when it runs. */
  html[data-motion] .site-prefs {
    padding-top: 0.5rem;
    border-top: 1px solid var(--hs-line);
  }
}

/* Holds the mural's #hs-rough filter; takes no space. */
.hs-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Breadcrumb: mono metadata line. */
.breadcrumb {
  --bs-breadcrumb-divider-color: var(--hs-muted);
  --bs-breadcrumb-item-active-color: var(--hs-muted);
  margin: 0;
  font-family: var(--hs-font-mono);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 0.4em;
}

/* Type primitives */
.label {
  margin: 0;
  color: var(--hs-muted);
  font-family: var(--hs-font-mono);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Thin serif italic for the small joining words inside display lines, and for one-line asides. */
.it {
  font-family: var(--hs-font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
}

/* The red full stop. Decoration beside a visually hidden real full stop. */
.stop {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--hs-band-red);
}

.poster {
  margin: 0.3rem 0 2.5rem;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* A heading with one long word (Certifications): a step down, so the word fits a 320px screen
   whole. Every display rule also wraps inside a word as a last resort, so a word that is still
   too wide (fallback fonts, wider letter spacing) wraps instead of being clipped. */
.poster--long {
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  overflow-wrap: break-word;
}

/* A lower-case letter inside a capitals heading: the plural s in DNFs. */
.lc {
  text-transform: none;
}

.poster .it {
  color: var(--hs-muted);
  letter-spacing: -0.03em;
}

/* inline-block so a wrapped line keeps its arrow; padding keeps the target over 44px. */
.more {
  display: inline-block;
  margin-top: 2rem;
  padding-block: 0.75rem;
  color: inherit;
  font-family: var(--hs-font-mono);
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-underline-offset: 0.4em;
}

/* Mural: the h1. .mural__text is the real heading; mural.js adds the coloured copies. */
.mural {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--hs-text);
  font-size: clamp(2.5rem, 8.5vw, 6.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.mural__line {
  display: block;
}

.mural .it {
  display: block;
  padding-left: 0.12em;
  color: var(--hs-muted);
  font-size: max(1rem, 0.36em);
  line-height: 1.5;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.mural__ch {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.mural__ch .it {
  color: inherit;
}

/* Inner-page headings: one or two words, smaller so a long word fits at 320px. */
.mural--quick {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

/* Hero */
.hero {
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem);
}

.hero__content > .label {
  margin-bottom: 1rem;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.5rem 3rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hs-line);
}

/* :where keeps this at its old weight, so .hero__meta .it still sets the aside's size. */
.hero__meta p:where(:not(.label)) {
  margin: 0;
  font-size: 1.22rem;
  max-width: 32ch;
}

.hero__meta .it {
  color: var(--hs-muted);
  font-size: 1.5rem;
  line-height: 1.3;
}

/* Home hero stage (Hemal approved the mockup, 2026-11-16): his licensed light-trail picture,
   full-bleed behind the header and under the headline, under one flat 70% black layer. The
   intro row (.hero__meta) sits below the stage on the page colour, so it follows the theme.
   The header stays in the page flow. The stage is pulled up under it by a fixed 8rem and
   padded down by the same 8rem, so the words start right under the header however tall it
   wraps. The part of the picture above the page top is never seen.
   The picture is the video itself. Its poster is the video's first frame, so the page shows
   that frame at once, with or without script, and the video starts from the same frame with no
   jump. hero.js plays it, round and round, with motion on (Hemal, 2026-11-17). */
.hero--media {
  padding: 0;
}

.hero__stage {
  --hs-head: 8rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* The header and the stage are a dark stage in both themes: dark tokens, scoped.
   Grey text cannot hold 7:1 over moving light, so on the stage every word is white.
   Screen only: print keeps its paper tokens and the stage stays below the header. */
@media screen {
  .site-header:has(~ main .hero__stage),
  .hero__stage {
    --hs-bg: #080808;
    --hs-panel: #151617;
    --hs-line: #34373c;
    --hs-text: #fcfcfc;
    --hs-muted: #fcfcfc;
    --hs-focus: #ffd84d;
    color-scheme: dark;
    color: var(--hs-text);
  }

  .site-header:has(~ main .hero__stage) {
    position: relative;
    z-index: 3;
  }

  html[data-theme="light"] .site-header:has(~ main .hero__stage) .site-home img {
    filter: none;
  }

  .hero__stage {
    margin-top: calc(-1 * var(--hs-head));
    padding-top: var(--hs-head);
    background-color: #080808;
  }
}

.hero__media,
.hero__video,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  z-index: -1;
  pointer-events: none;
}

.hero__video {
  object-fit: cover;
  /* The moving shapes sit about three quarters across the clip; keep them in frame when the
     stage is narrower than the clip. The poster takes the same fit and position, so it lines
     up with the first frame. */
  object-position: 76% 50%;
}

/* One flat dark layer between the picture and the words. One rgba fill, no blend.
   The light trails are already dimmed inside the clip, so this layer can be light and the
   shapes stay bright. On a phone the shapes pass behind the words, so the layer is heavy. */
.hero__veil {
  background-color: rgba(8, 8, 8, 0.25);
}

@media (max-width: 47.98rem) {
  .hero__veil {
    background-color: rgba(8, 8, 8, 0.7);
  }
}

.hero__content {
  position: relative;
  padding-block: clamp(1.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4rem);
}

.hero--media .hero__meta {
  margin-top: 0;
  padding-block: 1.5rem clamp(3rem, 8vw, 6rem);
  border-top: 0;
}

/* Paper and forced colours: words only, no picture. */
@media print, (forced-colors: active) {
  .hero__media {
    display: none;
  }
}

/* Greeting: hello in six languages, in the hero's top corner. With motion off it is a short
   list of words; motion.css turns it into one rolling word with its language name.
   The language name stays readable to screen readers in both states. */
.hero {
  position: relative;
}

.greet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--hs-muted);
  list-style: none;
}

.greet > li {
  max-width: none;
}

.greet__word {
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.4;
}

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

@media (min-width: 48rem) {
  .greet {
    position: absolute;
    top: clamp(1.5rem, 5vw, 4rem);
    right: var(--hs-pad);
    justify-content: flex-end;
    max-width: 18rem;
    margin: 0;
  }
}

/* From tablet width the greeting sits at the top right, so the label line on its left stops
   short of it and wraps, instead of running underneath the six greetings. */
@media (min-width: 48rem) {
  .hero__content > .label {
    max-width: calc(100% - 20rem);
  }
}

/* Starting grid: the main pages as grid slots, two columns, every second slot set back, as
   cars line up on a race grid. Each slot is a bracket drawn with a top line and two ticks.
   Home shows it large; the footer of every page shows a small one with the current page marked. */
.grid-nav {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.grid-nav__slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem clamp(1.25rem, 6vw, 6rem);
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.grid-nav__slots > li {
  max-width: none;
}

.grid-nav__slots > li:nth-child(even) {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.grid-nav__slots a {
  position: relative;
  display: block;
  min-height: 44px;
  padding: 0.9rem 0.9rem 1rem;
  color: var(--hs-text);
  border-top: 3px solid var(--hs-muted);
  text-decoration: none;
}

.grid-nav__slots a::before,
.grid-nav__slots a::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 1.4rem;
  background: var(--hs-muted);
}

.grid-nav__slots a::before {
  left: 0;
}

.grid-nav__slots a::after {
  right: 0;
}

.grid-nav__pos {
  display: block;
  color: var(--hs-muted);
  font-family: var(--hs-font-mono);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.grid-nav__name {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.grid-nav__note {
  display: block;
  margin-top: 0.4rem;
  color: var(--hs-muted);
  font-size: 1.15rem;
  line-height: 1.3;
}

.grid-nav__slots a:hover .grid-nav__name {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

/* "Next on the grid" in the footer: one or two places, each with its grid position. */
.next-grid {
  padding-block: 0 clamp(2rem, 5vw, 3.5rem);
}

.next-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.next-grid a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--hs-text);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-underline-offset: 0.2em;
}

.next-grid__pos {
  color: var(--hs-muted);
  font-family: var(--hs-font-mono);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

/* Home already opens on the big grid. */
main:has(.grid-nav--home) ~ .site-footer .next-grid {
  display: none;
}

/* Lanes: the two-way choice as giant text rows between hairlines. */
.lanes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lanes > li {
  max-width: none;
}

.lanes a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  padding-block: 1.5rem;
  color: var(--hs-text);
  border-top: 1px solid var(--hs-line);
  text-decoration: none;
}

.lanes li:last-child a {
  border-bottom: 1px solid var(--hs-line);
}

.lanes__name {
  display: block;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* A single long word (Recognition) that would push the arrow off a 320px screen. */
.lanes__name--long {
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  overflow-wrap: break-word;
}

.lanes .it {
  display: block;
  margin-top: 0.5rem;
  color: var(--hs-muted);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
  max-width: 48ch;
}

.lanes__arrow {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 0.9;
  overflow-wrap: break-word;
}

.lanes a:hover .lanes__name {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
}

.lanes a:hover .lanes__arrow {
  transform: translateX(0.12em);
}

/* Bands: the only chromatic surfaces. Full bleed, large text only, ink always band ink.
   Never two in a row: a section on the void or the turned page sits between. */
.band {
  padding: clamp(2.5rem, 5vw, 4rem) var(--hs-pad);
  color: var(--hs-band-ink);
}

.band--green {
  background-color: var(--hs-band-green);
}

.band--red {
  background-color: var(--hs-band-red);
}

.band--blue {
  background-color: var(--hs-band-blue);
}

.band .label {
  color: var(--hs-band-ink);
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.band h2 {
  margin: 0.1em 0 0;
  color: var(--hs-band-ink);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.band p:not(.label) {
  margin: 1rem 0 0;
  font-size: clamp(1.34rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 44ch;
}

.band :focus-visible {
  outline-color: var(--hs-band-ink);
}

/* Sections on the void */
.sec {
  padding-block: clamp(3rem, 8vw, 7rem);
}

/* Sheet: proof numbers at display scale on hairlines, no boxes. Four numbers, so 1, then 2 by 2,
   then 4 across; never 3 + 1. */
.sheet {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hs-line);
}

@media (min-width: 36rem) {
  .sheet {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 60rem) {
  .sheet {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Three numbers: 1, then 3 across; never 2 + 1. */
@media (min-width: 36rem) {
  .sheet--three {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 48rem) {
  .sheet--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sheet > li {
  max-width: none;
  padding: 1.5rem 1.5rem 2rem 0;
  border-bottom: 1px solid var(--hs-line);
}

.sheet__num {
  display: block;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
}

.sheet__num .it {
  color: var(--hs-muted);
  font-size: max(1rem, 0.36em);
}

/* Proof numbers, set up by proof.js. The running count sits on top of the real number, which
   keeps its place, so the layout never moves. The drawn line is decoration (aria-hidden) and is
   shown only with motion on (motion.css); its width and left are set in em by the script. */
.sheet__num {
  position: relative;
}

.proof-run {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  white-space: nowrap;
}

/* Colours of the soft red, green and blue run along each drawn line (proof.js sets the stroke). */
.proof-stop--red {
  stop-color: var(--hs-band-red);
}

.proof-stop--green {
  stop-color: var(--hs-band-green);
}

.proof-stop--blue {
  stop-color: var(--hs-band-blue);
}

.proof-line {
  position: absolute;
  bottom: -0.2em;
  height: 14px;
  overflow: visible;
  visibility: hidden;
  pointer-events: none;
  fill: none;
  stroke-width: 4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#hs-pencil);
}

.sheet__what {
  display: block;
  max-width: 24ch;
  margin-top: 0.75rem;
  color: var(--hs-muted);
}

/* Log: rows of a time or year, then one large line. */
.log {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hs-line);
}

.log__row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: baseline;
  gap: 0.5rem 2rem;
  max-width: none;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--hs-line);
}

.log__t {
  color: var(--hs-muted);
  font-family: var(--hs-font-mono);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.log__line {
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 46ch;
}

/* A log line may open with a mono label: the employer, the issuer. */
.log__line > .label {
  display: block;
  margin-bottom: 0.4rem;
}

/* Quick answers: a question, then a plain two-sentence answer in a calmer size. */
.log--qa .log__row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.log--qa .log__t {
  color: var(--hs-text);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.log--qa .log__line {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.01em;
}

/* Glossary terms: a wider first column than the time or year. */
.log--terms .log__row {
  grid-template-columns: 13rem 1fr;
}

.log--terms .log__t {
  color: var(--hs-text);
}

@media (max-width: 40rem) {
  .log--qa .log__row,
  .log--terms .log__row {
    grid-template-columns: 1fr;
  }

  .log__row {
    grid-template-columns: 1fr;
  }
}

/* Brand wall: names as display type that wraps freely between two hairlines, in each brand's own
   casing. No logos, no boxes, no colour: every other name steps down to muted grey. */
.brands > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em 0.9em;
  margin: 2rem 0 0;
  padding: 1.5rem 0;
  list-style: none;
  border-block: 1px solid var(--hs-line);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: none;
}

.brands > ul > li {
  max-width: none;
}

.brands > ul > li:nth-child(even) {
  color: var(--hs-muted);
}

/* Two statements in one heading: each part starts its own line. */
.poster__line {
  display: block;
}

.poster__line + .poster__line {
  margin-top: 0.35em;
}

/* Stories index: short stories stacked in one section, a hairline between them. */
.story + .story {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--hs-line);
}

.story > p:not(.label):not(.sheet__num) {
  font-size: 1.11rem;
}

.story > .sheet__num {
  margin: 0 0 1.5rem;
}

/* Turned page: at most one per page. Linen on the dark theme, black on the light theme. */
.turn {
  padding: clamp(3rem, 8vw, 7rem) var(--hs-pad);
  background-color: var(--hs-turn-bg);
  color: var(--hs-turn-text);
}

.turn__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  align-items: start;
  gap: 3rem;
}

.turn .label,
.turn .poster .it {
  color: var(--hs-turn-muted);
}

.turn .poster {
  margin-bottom: 1.5rem;
  color: var(--hs-turn-text);
}

/* A heading that ends its column keeps no space below: the grid gap is enough. */
.turn .poster:last-child {
  margin-bottom: 0;
}

.turn p:not(.label) {
  margin: 0 0 1rem;
  font-size: 1.22rem;
  max-width: 34ch;
}

.turn a {
  color: var(--hs-turn-text);
}

.turn :focus-visible {
  outline-color: var(--hs-turn-text);
}

.turn img {
  display: block;
  width: 100%;
  max-width: 26rem;
  height: auto;
  border-radius: 4px;
}

/* Lists on the turned page: the laps of a story, or a short list of traits. One item per
   hairline, each at reading size. */
.laps,
.traits {
  margin: 0;
  padding: 0;
  list-style: none;
}

.laps > li,
.traits > li {
  max-width: 40ch;
  padding-block: 1rem;
  border-top: 1px solid var(--hs-turn-muted);
  font-size: 1.22rem;
}

/* The traits, and the last lap of a story: the punchline, a size up. */
.traits > li,
.laps > li:last-child {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.laps .label {
  display: block;
  margin-bottom: 0.3rem;
}

/* A wide picture that opens the turned page across the full grid: the Sierra sketch. */
.turn img.turn__wide {
  grid-column: 1 / -1;
  max-width: 64rem;
}

/* The caricature is a cut-out with a transparent background, so it sits on linen or on black. */

/* Footer: ends on the email address as display type. */
/* The race track above the footer: a strip of tarmac with white edge lines, a dashed centre line
   and a chequered finish line on the right. The race car runs it left to right (motion.css and
   track.js); with motion off it waits on the grid at the left. Decoration only. */
.track {
  position: relative;
  height: 5rem;
  margin: 0 calc(-1 * var(--hs-pad)) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  background-color: var(--hs-panel);
  border-block: 3px solid var(--hs-muted);
}

.track::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 2px dashed var(--hs-line);
}

.track::after {
  content: "";
  position: absolute;
  top: 0;
  right: 2.5rem;
  bottom: 0;
  width: 1.5rem;
  background: url("/assets/img/chequer.svg") repeat 0 0 / 0.75rem 0.75rem;
}

/* The car art faces left; the flip points it the way it drives. */
.track__car {
  position: absolute;
  bottom: 0.45rem;
  left: 1.5rem;
  z-index: 1;
  width: 7rem;
  height: 1.72rem;
  background: url("/assets/img/race-car.svg") no-repeat 0 0 / contain;
  transform: scaleX(-1);
}

.site-footer {
  flex-shrink: 0;
  padding: clamp(3rem, 8vw, 6rem) var(--hs-pad) 3rem;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2.5rem;
  margin: 0 0 clamp(3rem, 8vw, 6rem);
  padding: 1rem 0 0;
  border-top: 1px solid var(--hs-line);
  list-style: none;
}

.site-footer__meta .it {
  color: var(--hs-muted);
  font-size: 1.22rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--hs-text);
  text-underline-offset: 0.4em;
}

.site-footer .mail,
main .mail {
  display: block;
  min-height: 44px;
  margin-top: 0.5rem;
  color: var(--hs-text);
  font-size: clamp(1.7rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer .mail:hover,
main .mail:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.12em;
}

/* Contact form: labels above fields, hairline boxes, one solid button. */
.form {
  max-width: 38rem;
  margin-top: 1.5rem;
}

.form__row {
  margin-bottom: 1.5rem;
}

.form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form input,
.form textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  background: var(--hs-bg);
  color: var(--hs-text);
  border: 1px solid var(--hs-muted);
  border-radius: 0;
  font: inherit;
}

.form__note,
.form__hint {
  margin: 0.4rem 0 1.5rem;
  color: var(--hs-muted);
}

.form__row .form__hint {
  margin-bottom: 0;
}

/* The trap field: off the page for people, still in the form for robots. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__send {
  min-height: 44px;
  padding: 0.6rem 3rem;
  background: var(--hs-text);
  color: var(--hs-bg);
  border: 1px solid var(--hs-text);
  border-radius: 0;
  font-family: var(--hs-font-mono);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Send row: the button, then the result of the last send beside it or below it. */
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

/* The button keeps its paper plane inside it. Equal room on both sides of the label: the plane
   lives in the left one and never crosses the text. */
.form__send {
  position: relative;
  overflow: hidden;
}

.form__send-label {
  position: relative;
  z-index: 1;
}

/* The paper plane. Hidden at rest; shown while sending (motion.css makes it hover and fly). */
.form__plane {
  position: absolute;
  bottom: 0.65rem;
  left: 0.95rem;
  width: 1.3rem;
  height: auto;
  opacity: 0;
  pointer-events: none;
}

/* The three dots after "Sending". */
.form__dots {
  display: none;
}

/* Sending: amber with dark grey text, the plane waiting in its lane. */
.form__send[data-state="sending"] {
  background-color: var(--hs-send-amber);
  border-color: transparent;
  color: var(--hs-send-ink);
  cursor: progress;
}

.form__send[data-state="sending"] .form__plane {
  opacity: 1;
}

.form__send[data-state="sending"] .form__dots {
  display: inline;
}

/* Delivered: green with dark grey text. */
.form__send[data-state="sent"] {
  background-color: var(--hs-band-green);
  border-color: transparent;
  color: var(--hs-send-ink);
}

/* Failed: deep red with white text. */
.form__send[data-state="failed"] {
  background-color: var(--hs-send-red);
  border-color: transparent;
  color: var(--hs-send-paper);
}

.form__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin: 0;
}

.form__status:empty {
  display: none;
}

.form__flag {
  width: 1.6rem;
  height: auto;
  color: var(--hs-text);
}

.form__done {
  font-weight: 700;
}

.form__lap {
  color: var(--hs-muted);
  font-family: var(--hs-font-mono);
  font-size: 1rem;
}

/* Scribble to design (Hemal approved mockups/scribble-poster/, built 2026-11-17): an example
   poster for a made-up place, on a sheet of dotted paper. With motion on, a pencil first draws
   the rough layout, then a wand taps it and the finished poster opens from the left
   (motion.css, reveal.js). This is the resting state, and all that shows with Motion off, with
   reduced motion or without a script: the finished poster, still. The art, the sketch
   and the pencil and wand are hidden from screen readers; the poster's words are real SVG text they read.
   Paper and poster colours are fixed, the same in both themes. The words are short so they fit
   at 30 or 31 units on a 467.53 unit sheet: at least 18.1px at 320px, never below 1rem. */
.reveal {
  max-width: 26.5rem;
  margin: 2rem 0 0;
}

.reveal__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 467.53 / 643.28;
  border: 1px solid #d8d0bf;
  border-radius: 8px;
  background: #f6f2ea url("/assets/img/dots.svg") repeat 0 0 / 14px 14px;
}

.reveal__layer,
.reveal__tools {
  position: absolute;
  inset: 0;
}

.reveal__svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* The sketch and the drawing tools only show while the drawing plays (motion.css). */
.reveal__sketch,
.reveal__tools {
  display: none;
  pointer-events: none;
}

.reveal__control {
  margin-top: 1rem;
}

.reveal__control[hidden] {
  display: none;
}

.reveal__replay {
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--hs-text);
  border-radius: 4px;
  background: transparent;
  color: var(--hs-text);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.reveal figcaption {
  max-width: 60ch;
  margin-top: 0.75rem;
  color: var(--hs-muted);
}

/* Link list (404) */
.link-list {
  padding-inline-start: 0;
  list-style: none;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Flag: the status of a thing started (running, finished, dormant, ended, left). Plain text
   with the word "Status" in front. No box and no glyph, so it cannot be taken for a button. */
.flag {
  color: var(--hs-muted);
  font-family: var(--hs-font-mono);
  font-size: 1rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.flag::before {
  content: "Status:\00a0\00a0";
}

/* Communities list: a log whose rows end on their flag, the punchline of the row. */
.log__line > .flag {
  display: flex;
  width: fit-content;
  margin-top: 1.1rem;
}

/* The detail under a log line's one big sentence: body size, full contrast. */
.log__more {
  display: block;
  max-width: 60ch;
  margin-top: 0.75rem;
  font-size: 1.11rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.log__more a {
  color: var(--hs-text);
  text-underline-offset: 0.25em;
}

/* An aside at the end of a log line: one dry line in the serif. */
.log__aside {
  display: block;
  margin-top: 0.75rem;
  color: var(--hs-muted);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
}

/* A community logo under the year: small, as supplied, never recoloured. */
.log__mark {
  display: block;
  width: 5.5rem;
  height: auto;
  margin-top: 1rem;
  border-radius: 4px;
}

/* An award certificate under its row: the top of the certificate only, cropped so no client,
   signature or other name shows. */
.log__cert {
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  margin-top: 1rem;
  border-radius: 4px;
}

/* A photograph on the void: wide, flat, 4px corners. */
.photo {
  margin: 0 0 2.5rem;
}

.photo img {
  display: block;
  width: 100%;
  max-width: 64rem;
  height: auto;
  border-radius: 4px;
}

/* A video the reader starts (inspection tool story): native controls, no autoplay, no loop.
   The frame keeps 16:9 before the poster loads, so nothing below it jumps. */
.promo {
  margin: 2rem 0 1rem;
}

.promo__video {
  display: block;
  width: 100%;
  max-width: 64rem;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hs-line);
  border-radius: 4px;
  background-color: #14181b;
}

.promo figcaption {
  max-width: 60ch;
  margin-top: 0.75rem;
  color: var(--hs-muted);
}

/* The video as text: a plain disclosure, the summary a 44px target. */
.transcript {
  max-width: 64rem;
  border-block: 1px solid var(--hs-line);
}

.transcript summary {
  display: list-item;
  min-height: 44px;
  padding-block: 0.6rem;
  cursor: pointer;
  font-family: var(--hs-font-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.transcript__list {
  max-width: var(--hs-measure);
  padding-inline-start: 0;
  list-style: none;
}

.transcript__list li {
  padding-block: 0.6rem;
  border-top: 1px solid var(--hs-line);
}

.transcript__t {
  display: block;
  color: var(--hs-muted);
  font-family: var(--hs-font-mono);
}

/* Abbreviation tip (abbr.js). The script moves each title into data-hs-tip, so the dotted line
   and help cursor that Bootstrap gives abbr[title] are restored here. Heading copies made by
   mural.js and sketch.js stay without the line, as before.
   The tip is the reverse of the page: white on black ink in the dark theme, black on linen in the
   light theme (19:1 either way). Its border is the page colour, so the edge shows on every
   surface: the fill stands out on the page, the border on the bands and the turned page. */
abbr[data-hs-tip] {
  text-decoration: underline dotted;
  text-decoration-skip-ink: none;
  cursor: help;
}

[aria-hidden="true"] abbr[data-hs-tip] {
  text-decoration: none;
}

/* No tips and no dotted line in navigation (Hemal, 2026-11-17). Pages carry no abbr there;
   this keeps Bootstrap's abbr[title] line and help cursor off any that slip in. */
nav abbr[title],
nav abbr[data-hs-tip],
header abbr[title],
header abbr[data-hs-tip] {
  text-decoration: none;
  cursor: inherit;
}

.abbr-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1500;
  box-sizing: border-box;
  width: max-content;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.45rem 0.75rem;
  border: 2px solid var(--hs-bg);
  border-radius: 4px;
  background-color: var(--hs-text);
  color: var(--hs-bg);
  font-family: var(--hs-font-display);
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: start;
  text-transform: none;
  overflow-wrap: break-word;
}

/* Forced colours: system colours only. The mural copies go; content, focus and edges stay. */
@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 4px;
  }

  button,
  .pref-switch {
    border: 1px solid ButtonText;
  }


  .band,
  .turn {
    border-block: 1px solid CanvasText;
  }

  .stop {
    forced-color-adjust: none;
    background: CanvasText;
  }

  .mural__ch {
    display: none !important;
  }
}

/* Print: white paper, black ink, no controls. The tokens carry it, so the turned page and the
   bands print white with black text, each with a black rule above it. */
@media print {
  :root,
  html[data-theme] {
    --hs-bg: #fff;
    --hs-panel: #fff;
    --hs-line: #999;
    --hs-text: #000;
    --hs-muted: #333;
    --hs-band-green: #fff;
    --hs-band-red: #fff;
    --hs-band-blue: #fff;
    --hs-band-ink: #000;
    --hs-turn-bg: #fff;
    --hs-turn-text: #000;
    --hs-turn-muted: #333;
  }

  .band,
  .turn {
    border-top: 1pt solid #000;
  }

  /* The red full stop would print white: draw it in ink. */
  .stop {
    background: #000;
  }

  .site-prefs,
  .pref-switch,
  .skip-link,
  .abbr-tip,
  .mural__ch,
  .site-nav__links {
    display: none !important;
  }

  a[href^="https://"]::after {
    content: " (" attr(href) ")";
  }

  .log__row,
  .sheet > *,
  figure {
    break-inside: avoid;
  }

  .site-home img {
    filter: invert(1);
  }


  .track {
    display: none;
  }

  .nav-toggle,
  .nav-sub,
  .menu-toggle {
    display: none;
  }
}
