@layer reset, base, layout, components, motion, responsive;

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

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 1.5rem;
  }

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

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

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

@layer base {
  :root {
    color-scheme: dark;
    --ink: oklch(0.16 0.065 244);
    --ink-raised: oklch(0.21 0.075 242);
    --panel: oklch(0.24 0.078 240);
    --blueprint: oklch(0.55 0.105 230);
    --line: oklch(0.77 0.055 205);
    --chalk: oklch(0.94 0.025 205);
    --muted: oklch(0.79 0.04 220);
    --signal: oklch(0.82 0.14 82);
    --signal-ink: oklch(0.23 0.06 70);
    --rule: oklch(0.73 0.055 220 / 0.36);
    --rule-strong: oklch(0.79 0.075 206 / 0.68);
    --focus: oklch(0.88 0.15 88);
    --font-display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
    --font-body: "Barlow", "Trebuchet MS", sans-serif;
    --font-mono: "Chivo Mono", "Courier New", monospace;
    --ease-draft: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-move: cubic-bezier(0.25, 1, 0.5, 1);
    --page-width: 94rem;
    --page-gutter: clamp(1rem, 4vw, 4.5rem);
    --line-color: var(--rule);
    font-family: var(--font-body);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
  }

  body {
    min-width: 20rem;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--chalk);
    font-size: 1rem;
    line-height: 1.55;
  }

  body::before {
    position: fixed;
    z-index: 0;
    inset: 0;
    background-image:
      linear-gradient(to right, oklch(0.76 0.07 220 / 0.065) 1px, transparent 1px),
      linear-gradient(to bottom, oklch(0.76 0.07 220 / 0.065) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    pointer-events: none;
  }

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

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

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

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.98;
    text-wrap: balance;
  }

  p {
    text-wrap: pretty;
  }
}

@layer layout {
  .site-frame {
    z-index: 1;
    position: relative;
    width: min(100%, var(--page-width));
    margin-inline: auto;
    padding-inline: var(--page-gutter);
  }

  .site-header {
    min-height: 5.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid var(--rule);
  }

  .school-brand,
  .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
  }

  .school-logo-wrap {
    width: 3.4rem;
    aspect-ratio: 1;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid oklch(0.96 0.02 205 / 0.7);
    border-radius: 50%;
    background: oklch(0.96 0.02 205);
  }

  .school-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  .school-name {
    display: grid;
    gap: 0.15rem;
  }

  .school-name strong,
  .footer-brand strong {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.015em;
  }

  .school-name > span,
  .footer-brand small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.63rem;
    line-height: 1.4;
    letter-spacing: 0.015em;
  }

  .header-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
  }

  .header-nav a {
    padding-block: 0.6rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease;
  }

  .header-nav a:hover,
  .header-nav a:focus-visible {
    color: var(--chalk);
  }

  .header-nav .nav-year {
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.7rem;
  }

  .hero {
    min-height: 43rem;
    position: relative;
    display: grid;
    grid-template-columns: minmax(19rem, 0.82fr) minmax(28rem, 1.18fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4.5rem);
    margin-top: 1.15rem;
    padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 4.2vw, 4.5rem);
    overflow: hidden;
    border: 1px solid var(--rule-strong);
  }

  .hero-copy {
    z-index: 1;
    position: relative;
    max-width: 39rem;
    padding-block: 1rem 2rem;
  }

  .hero-kicker,
  .section-kicker,
  .station-overline,
  .machine-coordinate,
  .index-label,
  .unit-topline,
  .station-count,
  .strip-date {
    font-family: var(--font-mono);
    text-transform: uppercase;
  }

  .hero-kicker {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    margin-bottom: 1.65rem;
    color: var(--line);
    font-size: 0.72rem;
    letter-spacing: 0.045em;
  }

  .status-light {
    width: 0.55rem;
    aspect-ratio: 1;
    border: 1px solid var(--signal);
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 4px oklch(0.82 0.14 82 / 0.13);
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(3.8rem, 7.8vw, 5.9rem);
    letter-spacing: -0.025em;
  }

  .hero h1 em,
  .closing-copy h2 em {
    color: var(--signal);
    font-style: normal;
  }

  .hero-lede {
    max-width: 37ch;
    margin-top: 1.55rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
  }

  .blueprint-button {
    width: fit-content;
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 1.9rem;
    padding: 0.72rem 1.05rem 0.72rem 1.2rem;
    border: 1px solid var(--signal);
    background: var(--signal);
    color: var(--signal-ink);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease-draft);
  }

  .blueprint-button svg {
    width: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    transition: transform 180ms var(--ease-draft);
  }

  .blueprint-button:hover {
    background: transparent;
    color: var(--signal);
  }

  .blueprint-button:hover svg {
    transform: translateX(3px);
  }

  .blueprint-button:active {
    transform: translateY(1px);
  }

  .hero-stamp {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: clamp(2.2rem, 5vw, 4rem);
    color: var(--line);
  }

  .stamp-ring {
    width: 2.7rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--signal);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
  }

  .hero-stamp strong,
  .hero-stamp small {
    display: block;
  }

  .hero-stamp strong {
    font-size: 0.82rem;
    font-weight: 600;
  }

  .hero-stamp small {
    margin-top: 0.1rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
  }

  .hero-machine {
    min-width: 0;
    position: relative;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 1.8rem 0;
  }

  .factory-drawing {
    width: 100%;
    overflow: visible;
  }

  .machine-coordinate {
    z-index: 1;
    position: absolute;
    color: var(--line);
    font-size: 0.57rem;
    letter-spacing: 0.055em;
  }

  .coordinate-top {
    top: 0.35rem;
    left: 0.6rem;
  }

  .coordinate-bottom {
    right: 0.6rem;
    bottom: 0.15rem;
  }

  .machine-corner {
    width: 2rem;
    aspect-ratio: 1;
    position: absolute;
    top: 0.25rem;
    right: 0.3rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--rule-strong);
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.88rem;
  }

  .drawing-grid {
    fill: url("#hero-grid");
    stroke: var(--rule);
    stroke-width: 1;
  }

  .drawing-grid-fine {
    fill: url("#fine-grid");
    opacity: 0.42;
  }

  #hero-grid path,
  #fine-grid path {
    stroke: var(--rule);
    stroke-width: 0.6;
  }

  .floor-plane {
    fill: oklch(0.29 0.085 240 / 0.48);
    stroke: var(--line);
    stroke-width: 1.2;
  }

  .floor-axis,
  .machine-back,
  .dimension,
  .drawing-crosshair,
  .conveyor,
  .robot-arm,
  .crate {
    fill: none;
    stroke: var(--line);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
  }

  .floor-axis {
    opacity: 0.42;
  }

  .floor-axis-dashed {
    stroke-dasharray: 3 8;
    opacity: 0.62;
  }

  .machine-back {
    stroke: oklch(0.8 0.07 205 / 0.72);
  }

  .machine-back .thin-line {
    stroke-width: 0.8;
    opacity: 0.68;
  }

  .machine-back .joint {
    fill: var(--signal);
    stroke: var(--ink);
    stroke-width: 1.2;
  }

  .arm-base,
  .arm-segment,
  .arm-segment-light {
    fill: oklch(0.31 0.09 238);
    stroke: var(--line);
  }

  .arm-segment-light {
    fill: oklch(0.4 0.11 230);
  }

  .arm-joint {
    fill: var(--signal);
    stroke: var(--signal);
  }

  .arm-tool {
    stroke: var(--signal);
    stroke-width: 2;
  }

  .belt-side {
    fill: oklch(0.25 0.075 241);
    stroke: var(--line);
  }

  .belt-top {
    fill: color-mix(in oklch, var(--blueprint), var(--ink) 45%);
    stroke: var(--line);
  }

  .belt-line {
    stroke: oklch(0.72 0.08 205 / 0.72);
    stroke-width: 1;
  }

  .belt-frame,
  .belt-foot,
  .roller {
    stroke: var(--line);
    stroke-width: 1.4;
  }

  .roller {
    fill: var(--ink-raised);
  }

  .crate-top {
    fill: oklch(0.43 0.12 214);
    stroke: var(--chalk);
  }

  .crate-left {
    fill: oklch(0.34 0.1 233);
    stroke: var(--chalk);
  }

  .crate-right {
    fill: oklch(0.27 0.08 242);
    stroke: var(--chalk);
  }

  .crate-mark,
  .crate-stamp {
    stroke: var(--signal);
    stroke-width: 1.2;
  }

  .crate-stamp {
    stroke: var(--chalk);
  }

  .dimension {
    stroke: var(--signal);
    stroke-width: 0.95;
    opacity: 0.8;
  }

  .dimension text {
    fill: var(--signal);
    stroke: none;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.5px;
  }

  .drawing-crosshair {
    stroke: var(--signal);
    stroke-width: 0.8;
  }

  .intro-strip {
    min-height: 4.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--rule);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .intro-strip p {
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }

  .intro-strip p:nth-child(2) {
    color: var(--line);
  }

  .intro-strip p:nth-child(2) span {
    color: var(--signal);
  }

  .strip-mark {
    color: var(--signal);
    font-size: 1rem;
  }

  .projects-section {
    padding-block: clamp(4.5rem, 9vw, 8rem) clamp(5rem, 10vw, 9rem);
  }

  .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .section-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    color: var(--signal);
    font-size: 0.66rem;
    letter-spacing: 0.065em;
  }

  .section-kicker-line {
    width: 1.6rem;
    height: 1px;
    background: var(--signal);
  }

  .section-heading h2 {
    font-size: clamp(2.8rem, 5.4vw, 4.6rem);
    letter-spacing: -0.02em;
  }

  .section-description {
    max-width: 32ch;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .course-index {
    min-height: 3.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
    padding: 0.6rem 1rem;
    border: 1px solid var(--rule);
    background: oklch(0.2 0.073 242 / 0.85);
  }

  .index-label {
    margin-right: auto;
    color: var(--line);
    font-size: 0.61rem;
    letter-spacing: 0.06em;
  }

  .course-index a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.38rem;
    color: var(--chalk);
    font-size: 0.79rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease;
  }

  .course-index a:hover {
    color: var(--signal);
  }

  .index-dot {
    width: 0.45rem;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    transform: rotate(45deg);
  }

  .course-index a:hover .index-dot {
    border-color: var(--signal);
    background: var(--signal);
  }

  .course-lines {
    display: grid;
    gap: clamp(3.5rem, 7vw, 6.25rem);
  }

  .course-station {
    min-width: 0;
    position: relative;
    scroll-margin-top: 2rem;
  }

  .station-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--rule-strong);
  }

  .station-title {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .station-marker {
    width: 3.2rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--signal);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    transform: rotate(45deg);
  }

  .station-marker span {
    transform: rotate(-45deg);
  }

  .station-overline {
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.59rem;
    line-height: 1.5;
    letter-spacing: 0.055em;
  }

  .station-overline span {
    color: var(--signal);
  }

  .station-title h3 {
    font-size: clamp(2.1rem, 3.8vw, 3.15rem);
  }

  .station-count {
    flex: 0 0 auto;
    color: var(--line);
    font-size: 0.62rem;
    letter-spacing: 0.045em;
  }

  .station-belt {
    position: relative;
    padding-top: 0.3rem;
  }

  .belt-rail {
    height: 2rem;
    position: absolute;
    z-index: 0;
    top: 9.7rem;
    right: 0;
    left: 0;
    border-block: 1px solid oklch(0.77 0.055 205 / 0.45);
    background:
      repeating-linear-gradient(
        90deg,
        transparent 0,
        transparent 13px,
        oklch(0.77 0.055 205 / 0.28) 13px,
        oklch(0.77 0.055 205 / 0.28) 14px
      );
    pointer-events: none;
  }

  .belt-rail::before,
  .belt-rail::after {
    width: 0.5rem;
    aspect-ratio: 1;
    position: absolute;
    top: 0.68rem;
    border: 1px solid var(--signal);
    border-radius: 50%;
    content: "";
  }

  .belt-rail::before {
    left: 0.4rem;
  }

  .belt-rail::after {
    right: 0.4rem;
  }

  .project-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .project-unit {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--rule);
    background: var(--panel);
    transition: border-color 180ms ease, background-color 180ms ease;
  }

  .project-unit:hover,
  .project-unit:focus-within {
    border-color: var(--rule-strong);
    background: oklch(0.23 0.08 240);
  }

  .unit-visual-link {
    min-height: 14.3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 0.8rem 0.8rem 0.7rem;
    border-bottom: 1px solid var(--rule);
    background-color: oklch(0.19 0.073 242);
    background-image:
      linear-gradient(to right, oklch(0.78 0.07 210 / 0.07) 1px, transparent 1px),
      linear-gradient(to bottom, oklch(0.78 0.07 210 / 0.07) 1px, transparent 1px);
    background-size: 19px 19px;
    text-decoration: none;
  }

  .unit-visual-link::after {
    position: absolute;
    inset: auto 0 2.95rem;
    height: 1px;
    background: var(--rule);
    content: "";
  }

  .unit-topline {
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.54rem;
    letter-spacing: 0.045em;
  }

  .unit-batch {
    padding: 0.2rem 0.35rem;
    border: 1px solid var(--rule-strong);
    color: var(--signal);
  }

  .unit-platform {
    text-align: right;
  }

  .unit-object {
    position: absolute;
    inset: 2rem 0.5rem 2.4rem;
    display: grid;
    place-items: center;
    perspective: 400px;
  }

  .iso-product {
    width: min(100%, 11.5rem);
    overflow: visible;
    filter: drop-shadow(0 0.8rem 0.38rem oklch(0.08 0.04 242 / 0.45));
    transform-origin: 50% 70%;
    transition: transform 220ms var(--ease-draft), filter 220ms ease;
  }

  .iso-shadow {
    fill: oklch(0.1 0.045 242 / 0.45);
  }

  .iso-top {
    fill: color-mix(in oklch, var(--unit-tone), oklch(1 0 0) 19%);
    stroke: var(--chalk);
    stroke-width: 1.35;
    stroke-linejoin: round;
  }

  .iso-left {
    fill: color-mix(in oklch, var(--unit-tone), var(--ink) 25%);
    stroke: var(--chalk);
    stroke-width: 1.35;
    stroke-linejoin: round;
  }

  .iso-right {
    fill: color-mix(in oklch, var(--unit-tone), var(--ink) 49%);
    stroke: var(--chalk);
    stroke-width: 1.35;
    stroke-linejoin: round;
  }

  .iso-seam,
  .iso-foot {
    fill: none;
    stroke: oklch(0.93 0.035 205 / 0.8);
    stroke-width: 0.9;
  }

  .iso-top-mark {
    fill: oklch(0.15 0.06 240 / 0.3);
    stroke: oklch(0.97 0.025 205 / 0.7);
    stroke-width: 0.8;
    stroke-dasharray: 2 2;
  }

  .iso-screen {
    fill: oklch(0.13 0.07 238);
    stroke: oklch(0.96 0.02 205);
    stroke-width: 1;
    stroke-linejoin: round;
  }

  .iso-screen-edge {
    fill: none;
    stroke: var(--signal);
    stroke-width: 1;
  }

  .iso-glyph {
    fill: none;
    stroke: var(--chalk);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
  }

  .iso-side-mark {
    fill: none;
    stroke: oklch(0.96 0.02 205 / 0.73);
    stroke-linecap: round;
    stroke-width: 1;
  }

  .unit-launch {
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding-top: 0.65rem;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.61rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }

  .unit-launch > span {
    font-size: 0.83rem;
    transition: transform 180ms var(--ease-draft);
  }

  .unit-visual-link:hover .unit-launch > span,
  .unit-visual-link:focus-visible .unit-launch > span {
    transform: translate(2px, -2px);
  }

  .unit-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 0.9rem 1rem;
  }

  .unit-details h4 {
    max-width: 100%;
    color: var(--chalk);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.05;
  }

  .unit-authors {
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .unit-resources {
    min-height: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.85rem;
    margin-top: auto;
    padding-top: 0.8rem;
  }

  .resource-link {
    color: var(--line);
    font-family: var(--font-mono);
    font-size: 0.59rem;
    line-height: 1.5;
    text-decoration-color: oklch(0.77 0.055 205 / 0.45);
    text-underline-offset: 0.2em;
    transition: color 160ms ease;
  }

  .resource-link:hover {
    color: var(--signal);
  }

  .resource-link span {
    color: var(--signal);
  }

  .resource-empty {
    color: oklch(0.73 0.035 220);
    font-family: var(--font-mono);
    font-size: 0.57rem;
  }

  .closing-panel {
    min-height: 25rem;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    align-items: center;
    gap: 2rem;
    margin-bottom: clamp(4rem, 7vw, 6.5rem);
    padding: clamp(2rem, 5vw, 4.5rem);
    overflow: hidden;
    border: 1px solid var(--rule-strong);
  }

  .closing-copy {
    z-index: 1;
    position: relative;
    max-width: 43rem;
  }

  .closing-copy h2 {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    letter-spacing: -0.025em;
  }

  .closing-copy > p:not(.section-kicker) {
    max-width: 54ch;
    margin-top: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
  }

  .closing-copy > a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.35rem;
    color: var(--signal);
    font-weight: 700;
    text-decoration: none;
  }

  .closing-copy > a span {
    transition: transform 160ms var(--ease-draft);
  }

  .closing-copy > a:hover span {
    transform: translate(2px, -2px);
  }

  .closing-diagram {
    min-height: 17rem;
    position: relative;
    display: grid;
    place-items: center;
    color: var(--line);
  }

  .closing-diagram svg {
    width: min(100%, 22rem);
    fill: oklch(0.27 0.085 238 / 0.7);
    stroke: var(--line);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.1;
  }

  .closing-diagram svg circle {
    fill: var(--signal);
    stroke: var(--ink);
  }

  .diagram-ring {
    position: absolute;
    width: 12rem;
    aspect-ratio: 1;
    border: 1px dashed var(--rule-strong);
    border-radius: 50%;
  }

  .ring-one {
    transform: scaleX(1.55) rotate(-25deg);
  }

  .ring-two {
    transform: scaleX(1.55) rotate(42deg);
  }

  .diagram-node {
    z-index: 1;
    position: absolute;
    padding: 0.24rem 0.4rem;
    border: 1px solid var(--rule-strong);
    background: var(--ink);
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.03em;
  }

  .node-one {
    top: 12%;
    left: 12%;
  }

  .node-two {
    top: 12%;
    right: 8%;
  }

  .node-three {
    right: 19%;
    bottom: 7%;
  }

  .site-footer {
    min-height: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid var(--rule);
  }

  .footer-logo-wrap {
    width: 2.65rem;
  }

  .footer-brand > span:last-child {
    display: grid;
    gap: 0.15rem;
  }

  .footer-brand strong {
    font-size: 0.82rem;
  }

  .footer-brand small {
    font-size: 0.56rem;
  }

  .site-footer > p,
  .back-to-top {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }

  .site-footer > p strong {
    color: var(--chalk);
    font-weight: 500;
  }

  .site-footer > p span {
    color: var(--signal);
  }

  .back-to-top {
    color: var(--line);
    text-decoration: none;
  }

  .back-to-top span {
    color: var(--signal);
  }
}

@layer components {
  .blueprint-surface {
    background-color: oklch(0.18 0.071 242);
    background-image:
      linear-gradient(to right, oklch(0.78 0.065 214 / 0.075) 1px, transparent 1px),
      linear-gradient(to bottom, oklch(0.78 0.065 214 / 0.075) 1px, transparent 1px),
      linear-gradient(to right, oklch(0.78 0.065 214 / 0.035) 1px, transparent 1px),
      linear-gradient(to bottom, oklch(0.78 0.065 214 / 0.035) 1px, transparent 1px);
    background-size: 44px 44px, 44px 44px, 11px 11px, 11px 11px;
  }

  .skip-link {
    z-index: 10;
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.7rem 1rem;
    transform: translateY(-160%);
    border: 1px solid var(--signal);
    background: var(--ink);
    color: var(--chalk);
    font-weight: 700;
  }

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

  noscript {
    display: block;
    margin-block: 2rem;
    padding: 1rem;
    border: 1px solid var(--signal);
    color: var(--chalk);
  }
}

@layer motion {
  .crate-one,
  .crate-two {
    transform-box: fill-box;
    transform-origin: center;
  }

  .hero-machine.is-in-view .crate-one {
    animation: crate-pass 7.5s var(--ease-move) infinite;
  }

  .hero-machine.is-in-view .crate-two {
    animation: crate-pass 7.5s var(--ease-move) 3.4s infinite;
  }

  .hero-machine.is-in-view .robot-arm {
    transform-box: fill-box;
    transform-origin: 45% 58%;
    animation: arm-check 5.5s var(--ease-draft) 0.8s infinite;
  }

  @keyframes crate-pass {
    0% {
      opacity: 0;
      transform: translate(-85px, 49px);
    }
    12% {
      opacity: 1;
    }
    82% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translate(90px, -52px);
    }
  }

  @keyframes arm-check {
    0%,
    66%,
    100% {
      transform: rotate(0);
    }
    76% {
      transform: rotate(-5deg);
    }
    86% {
      transform: rotate(1.5deg);
    }
  }

  @media (hover: hover) and (pointer: fine) {
    .project-unit:hover .iso-product,
    .project-unit:focus-within .iso-product {
      filter: drop-shadow(0 1rem 0.5rem oklch(0.08 0.04 242 / 0.58));
      transform: translateY(-5px) rotate(-1deg);
    }
  }
}

@layer responsive {
  @media (max-width: 1120px) {
    .hero {
      grid-template-columns: minmax(18rem, 0.8fr) minmax(24rem, 1.2fr);
      gap: 1rem;
      padding-inline: clamp(1.4rem, 3vw, 3rem);
    }

    .hero h1 {
      font-size: clamp(3.65rem, 7.4vw, 5.25rem);
    }

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

  @media (max-width: 820px) {
    .site-header {
      min-height: 5.25rem;
    }

    .header-nav {
      gap: 1.1rem;
    }

    .header-nav a {
      font-size: 0.8rem;
    }

    .hero {
      min-height: 0;
      grid-template-columns: 1fr;
      gap: 0;
      padding: 3rem clamp(1.4rem, 5vw, 3rem) 2.2rem;
    }

    .hero-copy {
      max-width: 44rem;
      padding-block: 0 0.2rem;
    }

    .hero h1 {
      max-width: 12ch;
      font-size: clamp(4rem, 11vw, 5.75rem);
    }

    .hero-lede {
      max-width: 53ch;
    }

    .hero-stamp {
      margin-top: 2rem;
    }

    .hero-machine {
      width: min(100%, 43rem);
      justify-self: center;
      margin-top: 0.8rem;
      padding-block: 2.1rem;
    }

    .factory-drawing {
      width: min(100%, 42rem);
    }

    .intro-strip {
      flex-wrap: wrap;
      justify-content: flex-start;
      gap: 0.5rem 1.6rem;
      padding-block: 1rem;
    }

    .intro-strip p:nth-child(2) {
      order: 3;
      width: 100%;
    }

    .section-heading {
      align-items: flex-start;
      flex-direction: column;
      gap: 1rem;
    }

    .section-description {
      max-width: 55ch;
    }

    .closing-panel {
      grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.7fr);
      padding: 2.2rem;
    }

    .closing-diagram {
      min-height: 14rem;
    }
  }

  @media (max-width: 620px) {
    :root {
      --page-gutter: 1rem;
    }

    .site-header {
      align-items: flex-start;
      flex-direction: column;
      gap: 0.7rem;
      padding-block: 0.9rem 0.75rem;
    }

    .school-logo-wrap {
      width: 2.9rem;
    }

    .school-name strong {
      font-size: 0.88rem;
    }

    .header-nav {
      width: 100%;
      justify-content: space-between;
      gap: 0.5rem;
      padding-left: 3.7rem;
    }

    .header-nav a {
      padding-block: 0.2rem;
      font-size: 0.76rem;
    }

    .header-nav .nav-year {
      font-size: 0.61rem;
    }

    .hero {
      margin-top: 0.75rem;
      padding: 2.25rem 1.2rem 1.2rem;
    }

    .hero-kicker {
      margin-bottom: 1.2rem;
      font-size: 0.59rem;
    }

    .hero h1 {
      font-size: clamp(3.2rem, 15vw, 4.6rem);
      line-height: 0.92;
    }

    .hero-lede {
      margin-top: 1.1rem;
      font-size: 0.96rem;
    }

    .blueprint-button {
      min-height: 3rem;
      margin-top: 1.35rem;
      font-size: 0.82rem;
    }

    .hero-stamp {
      display: none;
    }

    .hero-machine {
      width: calc(100% + 1rem);
      margin: 0.8rem -0.5rem 0;
      padding-block: 1.8rem;
    }

    .machine-coordinate {
      font-size: 0.48rem;
    }

    .machine-corner {
      width: 1.55rem;
      font-size: 0.7rem;
    }

    .factory-drawing {
      width: 100%;
      max-width: 100%;
      transform: none;
    }

    .intro-strip {
      min-height: 0;
      gap: 0.45rem 1rem;
      font-size: 0.55rem;
    }

    .intro-strip p:first-child {
      width: 100%;
    }

    .intro-strip p:nth-child(2) {
      width: auto;
      order: initial;
    }

    .projects-section {
      padding-block: 4rem 5rem;
    }

    .section-heading {
      margin-bottom: 1.5rem;
    }

    .section-heading h2 {
      font-size: clamp(2.65rem, 12vw, 3.6rem);
    }

    .section-description {
      font-size: 0.9rem;
    }

    .course-index {
      gap: 0.4rem 0.75rem;
      margin-bottom: 3.5rem;
      padding: 0.6rem 0.7rem;
    }

    .index-label {
      width: 100%;
    }

    .course-index a {
      font-size: 0.76rem;
    }

    .course-lines {
      gap: 3.7rem;
    }

    .station-header {
      align-items: flex-end;
      gap: 0.65rem;
      margin-bottom: 1rem;
      padding-bottom: 0.9rem;
    }

    .station-title {
      gap: 0.72rem;
    }

    .station-marker {
      width: 2.5rem;
      font-size: 0.95rem;
    }

    .station-overline {
      max-width: 19ch;
      font-size: 0.5rem;
    }

    .station-title h3 {
      font-size: 2.25rem;
    }

    .station-count {
      max-width: 7.5rem;
      font-size: 0.52rem;
      line-height: 1.5;
      text-align: right;
    }

    .project-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.7rem;
    }

    .unit-visual-link {
      min-height: 11.4rem;
      padding: 0.55rem 0.55rem 0.55rem;
    }

    .unit-visual-link::after {
      inset-block-end: 2.55rem;
    }

    .unit-topline {
      font-size: 0.44rem;
    }

    .unit-object {
      inset: 1.7rem 0.1rem 2rem;
    }

    .iso-product {
      width: min(100%, 9rem);
    }

    .unit-launch {
      padding-top: 0.5rem;
      font-size: 0.52rem;
    }

    .unit-details {
      padding: 0.7rem 0.65rem 0.75rem;
    }

    .unit-details h4 {
      font-size: 1.16rem;
      line-height: 1;
    }

    .unit-authors {
      margin-top: 0.45rem;
      font-size: 0.69rem;
      line-height: 1.4;
    }

    .unit-resources {
      gap: 0.28rem 0.55rem;
      padding-top: 0.65rem;
    }

    .resource-link,
    .resource-empty {
      font-size: 0.52rem;
    }

    .belt-rail {
      top: 7.9rem;
      height: 1.7rem;
    }

    .belt-rail::before,
    .belt-rail::after {
      top: 0.57rem;
      width: 0.42rem;
    }

    .closing-panel {
      grid-template-columns: 1fr;
      gap: 0.5rem;
      margin-bottom: 3.5rem;
      padding: 1.6rem 1.25rem 0.6rem;
    }

    .closing-copy h2 {
      font-size: clamp(2.5rem, 11vw, 3.4rem);
      line-height: 0.98;
    }

    .closing-copy > p:not(.section-kicker) {
      font-size: 0.9rem;
    }

    .closing-diagram {
      min-height: 11rem;
    }

    .closing-diagram svg {
      width: min(82%, 17rem);
    }

    .diagram-ring {
      width: 8rem;
    }

    .node-one {
      top: 7%;
      left: 14%;
    }

    .node-two {
      top: 6%;
      right: 11%;
    }

    .site-footer {
      min-height: 0;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 1rem;
      padding-block: 1.2rem;
    }

    .site-footer > p {
      grid-column: 1 / -1;
      grid-row: 2;
      font-size: 0.54rem;
    }

    .footer-logo-wrap {
      width: 2.3rem;
    }

    .back-to-top {
      font-size: 0.52rem;
    }
  }

  @media (max-width: 380px) {
    .project-grid {
      grid-template-columns: 1fr;
      gap: 0.8rem;
    }

    .unit-visual-link {
      min-height: 13rem;
    }

    .unit-object {
      inset: 1.7rem 0.5rem 2rem;
    }

    .iso-product {
      width: min(100%, 10rem);
    }

    .belt-rail {
      top: 9.1rem;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}
