:root {
  color-scheme: light;
  --bg: #ffffff;
  --line: #dce1e7;
  --muted: #626c78;
  --ink: #11171f;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  min-height: 106vh;
  min-height: 106dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,
a,
.viewport {
  outline-offset: 7px;
}

button:focus-visible,
a:focus-visible,
.viewport:focus-visible {
  outline: 1px solid var(--ink);
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

.site-header {
  height: 88px;
  flex-shrink: 0;
  margin: 0 4.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.blueprint {
  position: relative;
  margin: 0 4%;
  min-height: 660px;
  flex: 1;
  display: grid;
  grid-template-columns: 27% 48% 23%;
  padding-block: 24px 125px;
  align-items: center;
  background-image: radial-gradient(#11171fad 0.55px, transparent 0.8px);
  background-size: 20px 20px;
  isolation: isolate;
}

.blueprint:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
      var(--bg),
      transparent 35%,
      transparent 75%,
      var(--bg));
}

.hero-copy {
  z-index: 2;
  pointer-events: none;
  padding-bottom: 25px;
}

h1 {
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: clamp(60px, 6.3vw, 104px);
  line-height: 1.02;
  font-weight: 400;
  margin: 0 0 30px;
}

h1 span {
  color: var(--muted);
}

.viewport {
  position: absolute;
  inset: 22px 20% 108px 23%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.viewport.dragging {
  cursor: grabbing;
}

.viewport svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.construction {
  fill: none;
  stroke: #b0bac6;
  opacity: 0.55;
  stroke-width: 0.65;
  stroke-dasharray: 3 7;
}

.model-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.laser-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  filter: url(#soft-glow);
  pointer-events: none;
  stroke-dasharray: 24 1000;
  animation: laser 0.65s linear forwards;
}

.anchor {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 0.7;
  pointer-events: none;
}

.anchor text {
  stroke: none;
  fill: var(--ink);
  font:
    9px Consolas,
    monospace;
  letter-spacing: 0.06em;
}

.canvas-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #909ba8;
  opacity: 0.5;
}

.top-left {
  top: 15%;
  left: 10%;
  border-top: 1px solid;
  border-left: 1px solid;
}

.bottom-right {
  bottom: 16%;
  right: 7%;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

.view-panel {
  grid-column: 3;
  z-index: 2;
  padding-left: 80px;
}

.view-options {
  display: grid;
  gap: 8px;
}

.view-options button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 14px 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
}

.view-options button span {
  font-size: 12px;
  color: var(--muted);
}

.view-options button i {
  font-style: normal;
  margin-left: auto;
  padding-right: 10px;
}

.view-options button[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.view-options button:hover {
  color: var(--ink);
}

.stage-bottom {
  position: absolute;
  bottom: 72px;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.axis {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  font-size: 12px;
}

.axis svg {
  width: 68px;
  height: 57px;
  fill: var(--muted);
  stroke: var(--muted);
  stroke-width: 0.8;
}

.axis text {
  stroke: none;
  font: 9px monospace;
}

.axis span {
  padding-bottom: 3px;
}

#angle-readout {
  font-size: 10px;
  letter-spacing: 0.08em;
  padding-bottom: 4px;
}

.noscript-note {
  position: absolute;
  bottom: 130px;
  left: 30%;
  font-size: 12px;
}

.specifications {
  margin-top: 34px;
  scroll-margin-top: 32px;
}

.specifications dl {
  margin: 0;
}

.specifications dl>div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 16px;
  row-gap: 6px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.specifications dt {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.specifications dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;

  a {
    color: darkblue;
    text-decoration: underline;
  }
}

.muted {
  color: var(--muted);
}

footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  margin: 0 4.2%;
  padding: 24px 0 26px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #555;
  font-family: Consolas, monospace;
}

footer>div:first-child {
  display: flex;
  align-items: center;
  gap: 32px;
}

footer .ml-6 {
  margin-left: 24px;
  color: #777;
  padding: 0;
}

.footer-me .goingtop {
  font-size: 14px;
  font-family: sans-serif;
}

.footer-me .goingtop {
  margin-right: 20px;
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
}

.footer-me span {
  cursor: pointer;
}

@keyframes laser {
  from {
    stroke-dashoffset: 24;
  }

  to {
    stroke-dashoffset: -1000;
  }
}

@media (max-width: 1100px) {
  .blueprint {
    grid-template-columns: 25% 49% 26%;
    min-height: 660px;
  }

  .view-panel {
    padding-left: 8px;
  }

  .view-options button {
    font-size: 12px;
    gap: 8px;
  }

  .viewport {
    inset: 40px 21% 120px 19%;
  }

  .axis span {
    display: none;
  }

  footer {
    font-size: 10px;
    letter-spacing: 0.07em;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 72px;
    margin: 0 6%;
  }

  .wordmark {
    font-size: 14px;
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .blueprint {
    margin: 0 6%;
    padding-block: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy {
    padding: 38px 0 0;
  }

  h1 {
    font-size: clamp(42px, 12vw, 74px);
    margin-bottom: 14px;
  }

  h1 br {
    display: none;
  }

  h1 span {
    margin-left: 10px;
  }

  .viewport {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(370px, 115vw, 570px);
    margin: 6px 0 28px;
  }

  .view-panel {
    padding: 0;
  }

  .view-options {
    display: flex;
    gap: 14px;
  }

  .view-options button {
    flex: 1;
    font-size: 12px;
    padding: 16px 0;
    gap: 6px;
    white-space: nowrap;
    min-height: 48px;
  }

  .view-options button span {
    font-size: 12px;
  }

  .view-options button i {
    display: none;
  }

  .stage-bottom {
    position: static;
    padding: 22px 0;
    align-items: center;
    gap: 8px;
  }

  .axis svg {
    width: 32px;
    height: 32px;
  }

  #angle-readout {
    font-size: 8px;
  }

  .specifications {
    margin-top: 24px;
  }

  .specifications dl>div {
    padding: 11px 0;
  }

  footer {
    margin: 0 6%;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    gap: 12px;
    line-height: 1.8;
  }

  footer>div:first-child {
    padding-left: 0 !important;
  }

  footer .ml-6 {
    margin-left: 8px;
  }

  .noscript-note {
    position: static;
    font-size: 12px;
    line-height: 1.8;
  }
}

@media (max-width: 360px) {
  .view-options {
    gap: 8px;
  }

  .view-options button {
    font-size: 12px;
    gap: 4px;
  }

  .view-options button span {
    font-size: 8px;
  }
}
