@layer reset, base, components, utilities;
@layer reset, base, components, utilities;

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

  html {
    scroll-behavior: smooth;
  }

  body,
  h1,
  h2,
  h3,
  p,
  ul,
  ol,
  figure {
    margin: 0;
  }

  ul,
  ol {
    padding: 0;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
  }

  button,
  input,
  textarea,
  select {
    font: inherit;
  }
}

@layer base {
  :root {
    --paper: #f4f1e8;
    --white: #fffef8;
    --ink: #111413;
    --ink-soft: #1b211e;
    --muted: #5c625d;
    --line: #bfc3ba;
    --signal: #c9f342;
    --signal-ink: #29300f;
    --violet: #4d2f82;
    --violet-wash: #e7e0f1;
    --display: "Arial Narrow", "Aptos Narrow", "Helvetica Neue Condensed", "Franklin Gothic Medium", Arial, sans-serif;
    --sans: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --page: min(76rem, calc(100vw - 2rem));
    --prose: 44rem;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
  }

  body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.62;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  body::before {
    content: "";
    position: fixed;
    z-index: 80;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--signal);
    pointer-events: none;
  }

  main {
    overflow: clip;
  }

  ::selection {
    background: var(--signal);
    color: var(--ink);
  }

  a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
  }

  a:hover {
    color: var(--violet);
  }

  :focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 4px;
  }

  h1,
  h2,
  h3 {
    font-family: var(--display);
    font-stretch: condensed;
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.9;
    text-transform: uppercase;
  }

  h1 {
    font-size: clamp(2.9rem, 6.4vw, 6.1rem);
    text-wrap: balance;
  }

  h2 {
    font-size: clamp(2.7rem, 6vw, 5.6rem);
  }

  h3 {
    font-size: clamp(1.6rem, 3vw, 2.55rem);
    line-height: 0.98;
  }

  p {
    max-width: var(--prose);
  }

  strong {
    font-weight: 800;
  }
}

@layer components {
  .shell {
    width: var(--page);
    margin-inline: auto;
  }

  .skip-link {
    position: fixed;
    z-index: 100;
    top: 0.5rem;
    left: 0.75rem;
    transform: translateY(-170%);
    background: var(--signal);
    color: var(--ink);
    padding: 0.75rem 1rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  .site-header {
    position: sticky;
    z-index: 30;
    top: 0;
    color: var(--white);
    background: var(--ink);
    border-bottom: 1px solid var(--ink);
  }

  .site-header__inner {
    min-height: 4.8rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
  }

  .brand {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: inherit;
    font-family: var(--mono);
    font-weight: 700;
    text-decoration: none;
  }

  .brand:hover {
    color: inherit;
  }

  .brand__mark {
    width: 3.75rem;
    min-height: 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1.2fr;
    align-items: center;
    padding-inline: 0.5rem;
    background: var(--signal);
    color: var(--ink);
    clip-path: polygon(0 0, 100% 0, 100% 72%, 86% 100%, 0 100%);
    font-family: var(--display);
    font-size: 0.95rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
  }

  .brand__mark i {
    color: var(--violet);
    font-style: normal;
  }

  .brand__word {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  .brand__edition {
    padding-left: 0.65rem;
    border-left: 1px solid var(--muted);
    color: var(--line);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
  }

  .site-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.65rem, 1.9vw, 1.5rem);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--white);
    text-decoration: none;
  }

  .site-nav a:hover {
    color: var(--signal);
  }

  .site-nav a[aria-current="page"] {
    color: var(--signal);
  }

  .site-nav a[aria-current="page"]::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    background: currentColor;
    transform: rotate(45deg);
  }

  .site-nav__index {
    color: var(--muted);
    font-size: 0.62rem;
  }

  .site-nav__cta {
    min-height: 44px;
    margin-left: 0.2rem;
    padding: 0.65rem 0.85rem;
    background: var(--signal);
    color: var(--ink) !important;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 90% 100%, 0 100%);
    font-weight: 800;
  }

  .site-nav__cta:hover {
    background: var(--white);
  }

  .hero {
    position: relative;
    /* Capped so tall viewports don't spread `space-between` into dead paper.
       53rem ≈ natural content height; below that the full-viewport fold still applies. */
    min-height: min(calc(100svh - 4.8rem), 53rem);
    padding-block: clamp(2.2rem, 5vw, 5rem) 1.4rem;
    display: grid;
    align-content: space-between;
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .hero::before {
    content: "VECTOR / EVIDENCE / SYSTEM";
    position: absolute;
    z-index: -1;
    top: 15%;
    right: -1rem;
    color: var(--line);
    font-family: var(--mono);
    font-size: clamp(0.65rem, 1vw, 0.82rem);
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
  }

  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(25rem, 0.96fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
  }

  .hero__copy {
    position: relative;
    z-index: 2;
  }

  .hero__code {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.64rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .hero__code span:first-child {
    color: var(--violet);
    font-weight: 800;
  }

  .hero__eyebrow,
  .eyebrow,
  .meta,
  .section-index,
  .project-card__topline,
  .status,
  .kicker {
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.09em;
  }

  .hero__eyebrow,
  .eyebrow,
  .section-index,
  .kicker {
    color: var(--violet);
  }

  .hero h1 {
    max-width: 9.3ch;
    margin-top: 1rem;
  }

  .hero h1 span {
    position: relative;
    display: inline;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--signal);
    text-decoration-thickness: 0.11em;
    text-underline-offset: 0.08em;
  }

  .hero__lede {
    margin-top: 1.7rem;
    max-width: 42rem;
    color: var(--muted);
    font-size: clamp(1.08rem, 1.9vw, 1.38rem);
    line-height: 1.46;
  }

  .hero__actions,
  .button-row {
    margin-top: 1.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    align-items: center;
  }

  .button {
    position: relative;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.05rem;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    clip-path: polygon(0 0, 100% 0, 100% 72%, 92% 100%, 0 100%);
    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-decoration: none;
    transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out), color 140ms var(--ease-out);
  }

  .button--primary {
    background: var(--ink);
    color: var(--white);
  }

  .button--signal {
    border-color: var(--signal);
    background: var(--signal);
    color: var(--ink);
  }

  .button:hover {
    background: var(--violet);
    border-color: var(--violet);
    color: var(--white);
    transform: translate(2px, -2px);
  }

  .button--signal:hover {
    background: var(--ink);
    border-color: var(--ink);
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    min-height: 24px; /* WCAG 2.2 SC 2.5.8 target minimum */
    font-family: var(--mono);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .text-link span {
    color: var(--violet);
    transition: transform 140ms var(--ease-out);
  }

  .text-link:hover span {
    transform: translateX(4px);
  }

}

@layer components {
  .hero__visual {
    min-width: 0;
  }

  /* The violet offset sits behind the map only. Anchoring it to the whole
     <figure> put it under the caption, which is unreadable on violet. */
  .hero__visual-frame {
    position: relative;
    isolation: isolate;
  }

  .hero__visual-frame::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1.75rem -1rem -1rem 2rem;
    background: var(--violet);
    clip-path: polygon(10% 0, 100% 0, 100% 82%, 80% 100%, 0 100%, 0 10%);
    transform: rotate(1.4deg);
  }

  .vector-map {
    width: 100%;
    background: var(--ink);
    color: var(--white);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 89% 100%, 0 100%);
  }

  .vector-map__field {
    fill: var(--ink);
    stroke: var(--muted);
    stroke-width: 1;
  }

  .vector-map__rail,
  .vector-map__tick {
    fill: none;
    stroke: var(--signal);
    stroke-width: 5;
    vector-effect: non-scaling-stroke;
  }

  .vector-map__rail--thin {
    stroke: var(--white);
    stroke-width: 1;
    opacity: 0.58;
  }

  .vector-map__tick {
    stroke-width: 2;
  }

  .vector-map__lime {
    fill: var(--signal);
  }

  .vector-map__violet {
    fill: var(--violet);
  }

  .vector-map__paper {
    fill: var(--white);
  }

  .vector-map__outline {
    fill: none;
    stroke: var(--white);
    stroke-width: 2;
  }

  .vector-map__node rect {
    fill: var(--ink-soft);
    stroke: var(--white);
    stroke-width: 1;
  }

  .vector-map__node text,
  .vector-map__micro text {
    fill: var(--white);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .vector-map__node-title {
    font-family: var(--display) !important;
    font-size: 25px !important;
    font-weight: 900;
    letter-spacing: -0.04em !important;
  }

  .vector-map__node--lime rect {
    fill: var(--signal);
    stroke: var(--signal);
  }

  .vector-map__node--lime text {
    fill: var(--ink);
  }

  .vector-map__node--violet rect {
    fill: var(--violet);
    stroke: var(--white);
  }

  .vector-map__node--paper rect {
    fill: var(--white);
    stroke: var(--white);
  }

  .vector-map__node--paper text {
    fill: var(--ink);
  }

  .vector-map__micro text {
    font-size: 8px;
    opacity: 0.76;
  }

  .vector-map__layer {
    transform-box: fill-box;
    transform-origin: center;
    animation: vector-enter 620ms var(--ease-out) both;
  }

  .vector-map__layer--1 {
    animation-delay: 60ms;
  }

  .vector-map__layer--2 {
    animation-delay: 120ms;
  }

  .vector-map__layer--3 {
    animation-delay: 190ms;
  }

  .vector-map__layer--4 {
    animation-delay: 260ms;
  }

  .vector-map__layer--5 {
    animation-delay: 330ms;
  }

  .vector-map__layer--6 {
    animation-delay: 400ms;
  }

  .vector-map__layer--7 {
    animation-delay: 470ms;
  }

  .hero__visual-caption {
    /* Clears the violet offset, which extends 1rem below the frame. */
    margin-top: 1.4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .hero__rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    color: var(--white);
    background: var(--ink);
    border-left: 8px solid var(--signal);
  }

  .hero__rail div {
    min-height: 6.2rem;
    padding: 1rem 1.2rem;
    display: grid;
    align-content: center;
    gap: 0.25rem;
    border-right: 1px solid var(--muted);
  }

  .hero__rail div:last-child {
    border-right: 0;
  }

  .hero__rail strong {
    color: var(--signal);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .hero__rail span {
    color: var(--white);
    font-size: 0.9rem;
    line-height: 1.4;
  }

}

@layer components {
  .section {
    position: relative;
    padding-block: clamp(4.5rem, 9vw, 8.5rem);
    border-top: 1px solid var(--line);
  }

  .section::after {
    content: "";
    position: absolute;
    top: -1px;
    right: 0;
    width: min(9vw, 6rem);
    height: 1.15rem;
    background: var(--signal);
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  }

  .section--ink {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
  }

  .section--ink::after {
    background: var(--violet);
  }

  .section--ink .section-index,
  .section--ink .eyebrow {
    color: var(--signal);
  }

  .section--ink .section-heading__copy p,
  .section--ink .service-item__body p {
    color: var(--line);
  }

  .section--ink .text-link {
    color: var(--white);
  }

  .section--ink .text-link span {
    color: var(--signal);
  }

  .section--signal {
    color: var(--ink);
    background: var(--signal);
    border-color: var(--ink);
  }

  .section--signal::after {
    background: var(--ink);
  }

  .section--signal .eyebrow {
    color: var(--violet);
  }

  .section-heading {
    display: grid;
    grid-template-columns: minmax(7rem, 0.24fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
    margin-bottom: clamp(2.8rem, 6vw, 5rem);
  }

  .section-index {
    position: relative;
    padding-top: 0.2rem;
  }

  .section-index::before {
    content: "";
    display: block;
    width: 2.8rem;
    height: 0.5rem;
    margin-bottom: 0.75rem;
    background: currentColor;
    clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
  }

  .section-heading__copy h2 {
    max-width: 12ch;
  }

  .section-heading__copy p {
    margin-top: 1.15rem;
    color: var(--muted);
    font-size: 1.08rem;
  }

  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
  }

  .project-card {
    position: relative;
    min-height: 24rem;
    padding: clamp(1.3rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--white);
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    text-decoration: none;
    transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
  }

  .project-card::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--paper);
    border-top: 1px solid var(--ink);
    transform: translate(1.8rem, 1.8rem) rotate(45deg);
  }

  .project-card__tab {
    position: absolute;
    top: 0;
    right: 1.1rem;
    padding: 0.4rem 0.7rem;
    color: var(--white);
    background: var(--violet);
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .project-card__topline {
    padding-right: 5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
  }

  .project-card__axis {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .project-card__axis span {
    width: 0.55rem;
    height: 0.55rem;
    background: var(--ink);
    transform: rotate(45deg);
  }

  .project-card__axis span:nth-child(2) {
    width: 3rem;
    height: 2px;
    background: var(--line);
    transform: none;
  }

  .project-card__axis span:nth-child(3) {
    background: var(--signal);
  }

  .project-card h3 {
    margin-top: auto;
    padding-top: 3.5rem;
    max-width: 12ch;
  }

  .project-card p {
    margin-top: 1rem;
    color: var(--muted);
  }

  .project-card__footer {
    margin-top: 2rem;
    padding-top: 0.95rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .project-card:hover {
    z-index: 2;
    color: var(--ink);
    background: var(--signal);
    transform: translate(-4px, -4px);
  }

  .project-card:hover .project-card__tab {
    background: var(--ink);
  }

  .project-card:hover p,
  .project-card:hover .project-card__topline {
    color: var(--signal-ink);
  }

  .project-card:hover::after {
    background: var(--violet);
  }

  .status {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: var(--muted);
  }

  .status::before {
    content: "";
    width: 0.54rem;
    height: 0.54rem;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    background: transparent;
    transform: rotate(45deg);
  }

  .status[data-state="live"],
  .status[data-state="public"] {
    color: var(--signal-ink);
  }

  .status[data-state="live"]::before,
  .status[data-state="public"]::before {
    border-color: var(--signal-ink);
    background: var(--signal);
  }

  .status[data-state="active"],
  .status[data-state="working"] {
    color: var(--violet);
  }

  .status[data-state="active"]::before,
  .status[data-state="working"]::before {
    background: var(--violet);
  }

  .status[data-state="foundation"],
  .status[data-state="private"] {
    color: var(--ink);
  }

  .status[data-state="foundation"]::before,
  .status[data-state="private"]::before {
    background: var(--ink);
  }

  .status[data-state="experiment"],
  .status[data-state="pending"],
  .status[data-state="specification"] {
    color: var(--muted);
  }

  .service-list,
  .note-list,
  .proof-list {
    list-style: none;
    border-top: 1px solid var(--line);
  }

  .section--ink .service-list {
    border-color: var(--muted);
  }

  .service-item,
  .note-item,
  .proof-item {
    padding-block: 1.6rem;
    display: grid;
    grid-template-columns: minmax(7rem, 0.24fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    border-bottom: 1px solid var(--line);
  }

  .section--ink .service-item {
    border-color: var(--muted);
  }

  .service-item__body,
  .note-item__body,
  .proof-item__body {
    display: grid;
    gap: 0.85rem;
  }

  .service-item__body h3,
  .note-item__body h3,
  .proof-item__body h3 {
    max-width: 20ch;
  }

  .service-item__body p,
  .note-item__body p,
  .proof-item__body p {
    color: var(--muted);
  }

  .service-item ul,
  .detail-list {
    list-style: none;
    display: grid;
    gap: 0.45rem;
    margin-top: 0.55rem;
  }

  .service-item li,
  .detail-list li {
    position: relative;
    padding-left: 1.2rem;
  }

  .service-item li::before,
  .detail-list li::before {
    content: "";
    position: absolute;
    top: 0.66em;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--signal);
    transform: rotate(45deg);
  }

  .section--ink .service-item li::before {
    background: var(--signal);
  }

}

@layer components {
  .page-hero {
    position: relative;
    padding-block: clamp(4rem, 9vw, 8.5rem);
  }

  .page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: clamp(3rem, 8vw, 6rem);
    right: 0;
    width: clamp(6rem, 18vw, 14rem);
    height: clamp(2.5rem, 7vw, 5rem);
    background: var(--violet-wash);
    clip-path: polygon(14% 0, 100% 0, 100% 70%, 84% 100%, 0 100%);
  }

  .page-hero h1 {
    max-width: 11ch;
    margin-top: 1rem;
    font-size: clamp(2.8rem, 6.2vw, 5.9rem);
  }

  .page-hero p:not(.eyebrow) {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
  }

  .prose {
    max-width: var(--prose);
  }

  .prose > * + * {
    margin-top: 1.25rem;
  }

  .prose h2,
  .prose h3 {
    margin-top: 3.2rem;
  }

  .prose h2 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
  }

  .prose a {
    font-weight: 700;
  }

  .project-hero {
    position: relative;
    padding-block: clamp(3.6rem, 8vw, 7rem);
    display: grid;
    gap: 1.8rem;
  }

  .project-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -4vw;
    bottom: 10%;
    width: min(34vw, 24rem);
    height: clamp(3rem, 9vw, 7rem);
    background: var(--signal);
    clip-path: polygon(18% 0, 100% 0, 100% 62%, 82% 100%, 0 100%);
  }

  .project-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
  }

  .project-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.3rem, 4.3vw, 3.6rem);
  }

  .project-hero__summary {
    max-width: 52rem;
    color: var(--muted);
    font-size: clamp(1.18rem, 2.3vw, 1.6rem);
    line-height: 1.45;
  }

  .project-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--ink);
  }

  .project-detail {
    min-height: 18rem;
    padding: clamp(1.3rem, 3vw, 2rem);
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    background: var(--white);
  }

  .project-detail:nth-child(2) {
    background: var(--violet-wash);
  }

  .project-detail:nth-child(3) {
    background: var(--ink);
    color: var(--white);
  }

  .project-detail:nth-child(3) .detail-list li::before {
    background: var(--signal);
  }

  .project-detail:nth-child(4) {
    background: var(--signal);
  }

  .project-detail h2 {
    font-family: var(--mono);
    font-size: 0.76rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .project-detail p,
  .project-detail ul {
    margin-top: 1rem;
  }

  .note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--muted);
  }


  .cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.44fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
  }

  .cta-band h2 {
    max-width: 10ch;
  }

  .cta-band p {
    font-size: 1.08rem;
  }

  .site-footer {
    padding-block: 2rem;
    color: var(--white);
    background: var(--ink);
    border-top: 1px solid var(--muted);
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
  }

  .brand--footer {
    margin-bottom: 0.75rem;
  }

  .site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem 1.3rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .site-footer__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* WCAG 2.2 SC 2.5.8: short labels ("Now", "RSS") fell under 24px wide too. */
    min-height: 24px;
    min-width: 24px;
    color: var(--white);
    text-decoration: none;
  }

  .site-footer__links a:hover {
    color: var(--signal);
  }

  .site-footer small {
    color: var(--line);
  }


  @keyframes vector-enter {
    from {
      opacity: 0;
      transform: translateY(14px) scale(0.985);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  @keyframes section-enter {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @supports (animation-timeline: view()) {
    .section-heading,
    .project-card,
    .service-item,
    .note-item,
    .proof-item,
    .project-detail {
      animation-name: section-enter;
      animation-fill-mode: both;
      animation-timing-function: linear;
      animation-timeline: view();
      animation-range: entry 7% cover 24%;
    }
  }
}

@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 980px) {
  .brand__edition {
    display: none;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__copy {
    max-width: 52rem;
  }

  .hero__visual {
    width: min(100%, 43rem);
    justify-self: end;
  }
}

@media (max-width: 760px) {
  :root {
    --page: min(100% - 1.4rem, 76rem);
  }

  body::before {
    width: 3px;
  }

  .site-header__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding-block: 0.75rem;
  }

  .brand {
    justify-self: start;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.9rem;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .site-nav__cta {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 2.2rem;
  }

  .hero::before {
    display: none;
  }

  .hero__grid {
    gap: 2.5rem;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .hero__visual-frame::before {
    inset: 1rem -0.35rem -0.45rem 1rem;
  }

  .hero__visual-caption {
    display: grid;
    gap: 0.15rem;
  }

  .hero__rail,
  .section-heading,
  .service-item,
  .note-item,
  .proof-item,
  .cta-band,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero__rail div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--muted);
  }

  .hero__rail div:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .service-item,
  .note-item,
  .proof-item {
    gap: 1rem;
  }

  .section-index::before {
    margin-bottom: 0.45rem;
  }

  .project-grid,
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 20rem;
  }

  .project-card:hover {
    transform: none;
  }

  .project-detail {
    min-height: auto;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .brand__word {
    display: none;
  }

  .site-nav__index {
    display: none;
  }

  .site-nav {
    font-size: 0.68rem;
  }

  .site-nav__cta {
    padding-inline: 0.7rem;
  }

  .hero__code {
    display: grid;
    gap: 0.2rem;
  }

  .hero__visual {
    margin-inline: -0.2rem;
  }

  .vector-map__micro {
    display: none;
  }

  .project-card__topline {
    display: grid;
    padding-right: 4rem;
  }

  .project-card__footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

