:root {
  --bg: #202b31;
  --text: #f1f0ea;
  --accent: #d08b74;
  --soft: #b4c4b8;
  --rule: #64766f;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 2px solid var(--accent);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

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

:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  left: 16px;
}

.wrap {
  width: min(100%, 1440px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--rule);
}

.site-name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.17em;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
}

.masthead nav a {
  font-size: 13px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 32px;
  align-items: center;
  padding: 72px 0 48px;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(62px, 10vw, 148px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
}

.intro {
  max-width: 22em;
  margin: 0 0 24px;
}

.work-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 18px;
}

.hero-art {
  margin: 0;
  min-width: 0;
}

.net-stage {
  display: block;
  width: 100%;
  height: 480px;
  touch-action: pan-y;
}

.net-stage .longitudinal:nth-child(13n) {
  stroke: var(--accent);
}

.hero-art figcaption,
.article-figure figcaption,
.rail-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--soft);
}

.motion-toggle {
  appearance: none;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  white-space: nowrap;
}

.section-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  margin-top: 8px;
}

.section-line h2,
.about h2,
.contact h2,
.page-title {
  margin: 0;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-line small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--soft);
}

.project {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 12px;
  gap: 16px 20px;
  align-items: center;
  min-height: 120px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.project:hover,
.project:focus-visible {
  color: var(--text);
}

.project-number,
.project-meta,
.project-status {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--soft);
}

.project-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.project-meta {
  display: block;
  margin-top: 6px;
}

.project-status {
  text-align: right;
  max-width: 16em;
}

.project-marker {
  width: 7px;
  height: 7px;
  background: transparent;
  justify-self: end;
}

.project:hover .project-marker,
.project:focus-visible .project-marker {
  background: var(--accent);
}

.project:hover .project-number,
.project:focus-visible .project-number {
  color: var(--accent);
}

.project:hover .project-name,
.project:focus-visible .project-name {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.explore-note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soft);
}

.about {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 64px 0 24px;
  border-top: 1px solid var(--rule);
  margin-top: 48px;
}

.about img {
  width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about p,
.contact p {
  max-width: 38em;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--soft);
}

.page-footer a {
  color: var(--text);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact {
  padding-top: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 8px 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soft);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.article-open {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 40px 48px;
  align-items: start;
  padding: 36px 0 28px;
}

.article-open.no-hero {
  grid-template-columns: minmax(0, 42rem);
}

.kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--soft);
}

.article-open h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.45;
  max-width: 28em;
}

.status-line {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--soft);
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.article-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
}

.rail-figure,
.product-figure {
  margin: 0;
}

.rail-figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.product-figure img {
  width: min(100%, 280px);
  margin-inline: auto;
}

.article-body {
  display: grid;
  gap: 8px;
  max-width: 46rem;
  min-width: 0;
  width: 100%;
  padding-bottom: 24px;
}

.article-body > * {
  min-width: 0;
  max-width: 100%;
}

.article-section {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.article-section h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.article-section p {
  margin: 0 0 14px;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-section ul {
  margin: 12px 0 0;
  padding-left: 1.15em;
}

.article-section li + li {
  margin-top: 6px;
}

.table-scroll {
  display: block;
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 18px 0 8px;
  border: 1px solid var(--rule);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-scroll-hint {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--soft);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 36rem;
}

.table-scroll th,
.table-scroll td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.table-scroll th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--soft);
  font-weight: 400;
}

.article-figure {
  margin: 24px 0 0;
}

.article-figure a {
  display: block;
}

.article-figure img {
  background: #101518;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

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

.error-page {
  padding: 72px 0 48px;
  max-width: 28em;
}

.error-page h1 {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin: 0 0 16px;
}

@media (max-width: 1199px) {
  :root {
    --gutter: 36px;
  }

  .hero h1 {
    font-size: clamp(56px, 9vw, 116px);
  }

  .net-stage {
    height: 400px;
  }

  .project {
    min-height: 108px;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 16px;
  }

  .wrap {
    padding-bottom: 64px;
  }

  .masthead {
    align-items: flex-start;
  }

  .masthead .nav-elsewhere {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: clamp(56px, 16vw, 70px);
    margin-bottom: 20px;
  }

  .intro {
    max-width: none;
  }

  .net-stage {
    height: 244px;
  }

  .net-stage .longitudinal:nth-child(3n) {
    display: none;
  }

  .net-stage .cross:nth-child(even) {
    display: none;
  }

  .section-line h2,
  .about h2,
  .contact h2 {
    font-size: 32px;
  }

  .project {
    grid-template-columns: 32px minmax(0, 1fr) 12px;
    min-height: 96px;
    gap: 10px 12px;
  }

  .project-status {
    grid-column: 2;
    text-align: left;
    max-width: none;
    margin-top: -8px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 40px;
  }

  .article-open {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 20px;
  }

  .article-open h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .lede {
    font-size: 18px;
  }

  .product-figure img {
    width: min(100%, 240px);
  }
}

@media (max-width: 359px) {
  :root {
    --gutter: 16px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .project-name {
    font-size: 28px;
  }

  .net-stage {
    height: 230px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.motion-off .net-stage .net-strands {
  transform: none !important;
}
