/* Hallmark · macrostructure: Split Studio (banded) · genre: modern-minimal · tone: quiet, plain, trustworthy · anchor hue: cool blue (237)
 * nav: N9 edge-aligned minimal · footer: Ft1 mast-headed · hero: H2 split diptych on navy · enrichment: Tier A pattern + partner map with a dash flow
 * Drawing agreed by the owner, Nov 15: docs/ux/drawings/2026-11-15-truecode-site.html (version 3)
 * Every colour, font and space comes from tokens.css. No scripts on this site.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-style: normal;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
h1 {
  font-size: var(--text-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h3 {
  font-size: var(--text-md);
  font-weight: 800;
  letter-spacing: -0.01em;
}
p {
  margin: var(--space-md) 0 0;
  max-width: 36em;
  color: var(--color-slate);
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}
.pad {
  padding: var(--space-3xl) 0;
}
.skip {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 10;
  background: var(--color-surface);
  color: var(--color-navy);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip:focus {
  top: var(--space-md);
}

/* Split rows */
.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-2xl);
  align-items: center;
}
.split--flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.split--flip > :first-child {
  order: 2;
}
.split--even {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* Buttons and links: default, hover, focus, active */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.chip:active {
  transform: translateY(1px);
}
.chip--bright {
  background: var(--color-sky);
  border-color: var(--color-sky);
  color: var(--color-navy);
}
.chip--bright:hover {
  background: var(--color-on-navy);
  border-color: var(--color-on-navy);
}
.chip--ghost {
  color: var(--color-on-navy);
  border-color: var(--color-navy-line);
}
.chip--ghost:hover {
  border-color: var(--color-sky);
  color: var(--color-sky);
}
.chip--solid {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-surface);
}
.chip--solid:hover {
  background: var(--color-blue-ink);
  border-color: var(--color-blue-ink);
}
a:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-navy a:focus-visible {
  outline-color: var(--color-sky);
}
.tlink {
  color: var(--color-sky);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.tlink:hover {
  color: var(--color-on-navy);
}

/* Band 1: navy hero with the faint brace-and-tick pattern */
.hero {
  position: relative;
  background-color: var(--color-navy);
  color: var(--color-on-navy);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url(pattern.svg);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(105deg, transparent 35%, #000 75%);
  mask-image: linear-gradient(105deg, transparent 35%, #000 75%);
}
.hero > * {
  position: relative;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hero .split {
  padding: var(--space-2xl) 0 var(--space-3xl);
}
.hero h1 .hl {
  color: var(--color-sky);
}
.hero .lede {
  font-size: var(--text-lg);
  color: var(--color-on-navy-muted);
  max-width: 32em;
  margin: var(--space-lg) 0 0;
}

/* Hero: the small pill and the proof points */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-lg);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--color-navy-line);
  border-radius: var(--radius-pill);
  background: var(--color-navy-2);
  color: var(--color-on-navy-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-good);
  box-shadow: 0 0 0 4px var(--color-good-ring);
}
.proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin: var(--space-xl) 0 0;
  padding: 0;
  color: var(--color-on-navy-muted);
  font-size: var(--text-sm);
  font-weight: 600;
}
.proof li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}
.proof li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-sky);
  color: var(--color-navy);
  font-size: 0.6875rem;
  font-weight: 800;
  flex: none;
}

/* Hero: the live system. A sale at the till lights up NorthTill, then the back office and the shop. */
.split--hero {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}
.sys {
  margin: 0;
  background: var(--color-navy-2);
  border: 1px solid var(--color-navy-line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-lg);
}
.sys__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-lg) var(--space-md);
  align-items: center;
}
.sys__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  overflow: visible;
}
.sys__wires path {
  fill: none;
  stroke: var(--color-sky);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
  vector-effect: non-scaling-stroke;
  opacity: 0.6;
  animation: flow var(--dur-flow) linear infinite;
}
.sys__node {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: var(--color-navy);
  border: 1.5px solid var(--color-navy-line);
  border-radius: var(--radius-md);
}
.sys__node b {
  font-size: 0.9375rem;
  line-height: 1.3;
}
.sys__node small {
  color: var(--color-on-navy-muted);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.sys__ic {
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--color-sky-ring);
  color: var(--color-sky);
}
.sys__node::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: var(--radius-md);
  box-shadow:
    0 0 0 2px var(--color-sky),
    0 0 24px var(--color-sky-glow);
  opacity: 0;
  animation: lit var(--dur-story) var(--ease-out) infinite;
}
.sys__office::after,
.sys__shop::after {
  animation-delay: calc(var(--dur-story) / 3);
}
.sys__till {
  grid-area: 1 / 1;
}
.sys__screen {
  grid-area: 2 / 1;
}
.sys__office {
  grid-area: 1 / 3;
}
.sys__shop {
  grid-area: 2 / 3;
}
.sys__hub {
  grid-area: 1 / 2 / 3 / 3;
  position: relative;
  justify-self: center;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  background: var(--color-surface);
  color: var(--color-navy);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.9375rem;
  box-shadow: 0 0 0 8px var(--color-sky-ring);
}
.sys__hub::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 34px;
  box-shadow: 0 0 0 2px var(--color-sky);
  opacity: 0;
  animation: pulse var(--dur-story) var(--ease-out) calc(var(--dur-story) / 7.5) infinite;
}
.sys__story {
  position: relative;
  height: 22px;
  border-top: 1px solid var(--color-navy-line);
  padding-top: var(--space-md);
  box-sizing: content-box;
}
.sys__story span {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-on-navy);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  animation: tell var(--dur-story) var(--ease-out) infinite;
}
.sys__story span:nth-child(2) {
  animation-delay: calc(var(--dur-story) / 3);
}
.sys__story span:nth-child(3) {
  animation-delay: calc(var(--dur-story) * 2 / 3);
}
@keyframes lit {
  0% {
    opacity: 0;
  }
  6%,
  26% {
    opacity: 1;
  }
  36%,
  100% {
    opacity: 0;
  }
}
@keyframes pulse {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  8% {
    opacity: 1;
    transform: scale(1);
  }
  24% {
    opacity: 0;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
  }
}
@keyframes tell {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  5%,
  28% {
    opacity: 1;
    transform: none;
  }
  33%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* Band 2: white, what we make */
.make {
  background: var(--color-surface);
}
.lead {
  font-size: var(--text-lg);
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.cols > div {
  border-top: 3px solid var(--color-navy);
  padding-top: var(--space-md);
}
.cols p {
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
}

/* Band 3: soft blue, how it's built */
.built {
  background: var(--color-tint);
}
.facts {
  list-style: none;
  margin: var(--space-xl) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}
.facts li {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-sm);
  align-content: start;
}
.facts .ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--color-tint);
  color: var(--color-blue-ink);
  display: grid;
  place-items: center;
}
.facts p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Band 4: navy, partner with us. Socket cards (owner, Nov 15, P1): each kind of
 * partner ends in a small flowing line into NorthTill; the dashed card is an open socket. */
.partner {
  background: var(--color-navy);
  color: var(--color-on-navy);
}
.partner p {
  color: var(--color-on-navy-muted);
}
.partner__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-lg) var(--space-2xl);
  align-items: end;
}
.partner__intro p {
  margin-top: var(--space-md);
  max-width: 34em;
}
@keyframes flow {
  to {
    stroke-dashoffset: -18;
  }
}
@keyframes dash {
  from {
    transform: translateX(-10px);
  }
  to {
    transform: translateX(0);
  }
}
.sockets {
  list-style: none;
  margin: var(--space-2xl) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-md);
}
.sockets li {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: var(--space-lg) 22px 20px;
  background: var(--color-navy-2);
  border: 1px solid var(--color-navy-line);
  border-radius: var(--radius);
}
.sockets h3 {
  margin-top: 6px;
  font-size: var(--text-md);
  color: var(--color-on-navy);
}
.sockets p {
  margin: 0;
  font-size: 0.9375rem;
}
.socket__ic {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--color-sky-ring);
  color: var(--color-sky);
}
.socket__plug {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-sm);
  padding-top: 14px;
  border-top: 1px solid var(--color-navy-line);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-on-navy);
}
.socket__line {
  position: relative;
  flex: 1;
  min-width: 24px;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-navy-line);
}
.socket__line::after {
  content: "";
  position: absolute;
  inset: 0 -10px 0 0;
  background: repeating-linear-gradient(90deg, var(--color-sky) 0 3px, transparent 3px 10px);
  animation: dash 1.2s linear infinite;
}
.socket__nt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.socket--yours {
  background: transparent !important;
  border: 1.5px dashed var(--color-navy-line) !important;
}
.socket--yours .socket__ic {
  background: transparent;
  border: 1.5px dashed var(--color-sky);
}
.socket--yours .socket__plug {
  border-top-style: dashed;
}
.socket__link {
  color: var(--color-sky);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.socket__link:hover {
  color: var(--color-on-navy);
}
.partner__note {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
}

/* Band 5: white, contact */
.contact {
  background: var(--color-surface);
}
.mail {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
}
.mail li {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: var(--space-md);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  align-items: baseline;
}
.mail li:first-child {
  border-top: 1px solid var(--color-line);
}
.mail span {
  color: var(--color-slate);
}
.mail a {
  color: var(--color-blue-ink);
  font-weight: 700;
  font-size: var(--text-md);
  text-decoration: none;
  white-space: nowrap;
}
.mail a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.office {
  background: var(--color-tint);
  border-radius: var(--radius);
  padding: var(--space-xl);
  display: grid;
  gap: var(--space-sm);
}
.office__t {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-slate);
}
.office address {
  font-style: normal;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.4;
}

/* Footer: deep navy, mast-headed */
.foot {
  background: var(--color-navy-deep);
  color: var(--color-on-navy-muted);
}
.foot .wrap {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
  display: grid;
  gap: var(--space-md);
}
.foot .brand {
  color: var(--color-on-navy);
  font-size: 1.375rem;
  justify-self: start;
}
.foot__tag {
  margin: 0;
  color: var(--color-on-navy-muted);
}
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.8125rem;
  border-top: 1px solid var(--color-navy-2);
  padding-top: var(--space-md);
  margin-top: var(--space-sm);
}
.foot__legal a {
  color: var(--color-on-navy);
  white-space: nowrap;
}

/* Legal pages and 404 */
.top {
  background: var(--color-navy);
  color: var(--color-on-navy);
}
.draft {
  margin: 0;
  max-width: none;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-draft-bg);
  color: var(--color-draft);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--page-gutter) var(--space-3xl);
}
.legal h1 {
  font-size: var(--text-h2);
}
.legal h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-xl);
}
.legal p,
.legal li {
  color: var(--color-navy);
  max-width: none;
}
.legal ul {
  padding-left: 1.25rem;
  display: grid;
  gap: var(--space-sm);
}
.legal a {
  color: var(--color-blue-ink);
  font-weight: 600;
}
.legal__date {
  color: var(--color-slate) !important;
  margin-top: var(--space-sm);
}
.legal__back {
  display: inline-flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-weight: 700;
  text-decoration: none;
}
.lost {
  min-height: 60vh;
  display: grid;
  align-content: center;
  justify-items: start;
}

/* Phone */
@media (max-width: 760px) {
  :root {
    --page-gutter: 16px;
  }
  .split,
  .split--flip,
  .split--even {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }
  .split--flip > :first-child {
    order: 0;
  }
  .pad {
    padding: var(--space-2xl) 0;
  }
  .hero .split {
    padding: var(--space-lg) 0 var(--space-2xl);
  }
  .hero::before {
    -webkit-mask-image: linear-gradient(180deg, transparent 45%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 45%, #000 100%);
  }
  .hero .lede,
  .lead {
    font-size: var(--text-md);
  }
  .cols,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .office {
    padding: var(--space-lg);
  }
  .nav .chip {
    padding: 0 14px;
    font-size: var(--text-sm);
  }
  .brand__full {
    display: none;
  }
  .mail li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .mail span {
    font-size: 0.8125rem;
  }
  .partner__intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .sockets {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .sockets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .socket--yours {
    grid-column: 1 / -1;
  }
}
@media (max-width: 1000px) {
  .split--hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xl);
  }
  .sys {
    width: 100%;
    max-width: 560px;
  }
}
@media (max-width: 440px) {
  .sys {
    padding: var(--space-md);
  }
  .sys__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: var(--space-md) var(--space-sm);
  }
  .sys__till {
    grid-area: 1 / 1;
  }
  .sys__office {
    grid-area: 1 / 2;
  }
  .sys__hub {
    grid-area: 2 / 1 / 3 / 3;
    width: 96px;
    height: 96px;
  }
  .sys__screen {
    grid-area: 3 / 1;
  }
  .sys__shop {
    grid-area: 3 / 2;
  }
  .sys__node {
    padding: 12px;
  }
  .sys__node small {
    display: none;
  }
  .sys__story span {
    font-size: 0.8125rem;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .sys__story span:first-child {
    opacity: 1;
    transform: none;
  }
}
