canvas[data-wordmark] {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 696 / 140;
  color: inherit;
}

.hero:has(#hero-stage) {
  position: relative;
  color: var(--ink, #151612);
  background: var(--paper, #f4f6f2);
}
#hero-stage {
  --stage-edge: var(--gutter, 2.8vw);
  --datum-step: clamp(82px, 9vw, 178px);
  display: grid;
  grid-template-rows: 1fr auto;
  row-gap: clamp(16px, 2.2svh, 34px);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(86px, 12svh, 150px) var(--stage-edge) clamp(10px, 1.2svh, 20px);
  background-image: radial-gradient(ellipse 2.2px .75px at 2.5px 1.5px, #6671603f 72%, transparent 97%);
  background-size: var(--datum-step) calc(var(--datum-step) * .83);
  background-position: var(--stage-edge) 88px;
}
#hero-stage:empty::after {
  content: 'TUGITE';
  grid-row: 2;
  color: #151612;
  font: 900 21vw/.9 Helvetica, Arial, sans-serif;
  letter-spacing: -.07em;
}
.tug-measure { grid-row: 2; width: 100%; }
.tug-measure canvas[data-wordmark] { aspect-ratio: 696 / 176; }
.tug-ledger {
  grid-row: 1;
  align-self: start;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5vw;
  margin-top: clamp(22px, 5svh, 66px);
}
.tug-jobs { width: min(58%, 1020px); }
.tug-job-rows {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.tug-job-row {
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}
.tug-row-code {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 630 clamp(12px, .95vw, 18px)/1 var(--mono, monospace);
  font-variant-numeric: tabular-nums;
}
.tug-row-code::before {
  content: '';
  display: block;
  width: 16px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 1px 1px;
  transform: skewX(-14deg);
}
.tug-chosen > .tug-row-code::before {
  border-color: var(--accent, #ff542d);
  background: var(--accent, #ff542d);
}
.tug-job-row b {
  font-size: clamp(14px, 1.12vw, 22px);
  line-height: 1.35;
  font-weight: 720;
  letter-spacing: -.035em;
  text-wrap: balance;
  word-break: keep-all;
}
.tug-job-row:focus-visible { outline-offset: 5px; }
.tug-file {
  width: clamp(215px, 24vw, 490px);
  flex: none;
  margin: 0;
}
.tug-file-window {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.77;
  background: #d9ded5;
}
.tug-file-window img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
  object-fit: cover;
  object-position: 41% 53%;
  transform-origin: 38% 56%;
}
.tug-file-window .tug-frame-dispatch { object-position: 55% 43%; transform-origin: 65% 30%; }
.tug-file-window .tug-frame-desk { object-position: 51% 48%; transform-origin: 30% 45%; }
.tug-file-window .tug-previous { visibility: visible; }
.tug-file-window .tug-chosen {
  z-index: 1;
  visibility: visible;
  animation: tug-focus .6s cubic-bezier(.18,.72,.16,1) both;
}
@keyframes tug-focus {
  from { clip-path: inset(0 0 0 17%); transform: scale(1.13); }
  to { clip-path: inset(0); transform: scale(1); }
}
.tug-file figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5em;
  margin-top: 6px;
  font-size: clamp(12px, .83vw, 16px);
  font-weight: 550;
  line-height: 1.4;
}
.tug-file-number { font: 620 .95em/1 var(--mono, monospace); }
.tug-file-city { margin-left: auto; }
@media (max-width: 760px) {
  #hero-stage {
    --datum-step: 19vw;
    padding-top: max(78px, 9.8svh);
    padding-bottom: clamp(28px, 6.2svh, 55px);
    row-gap: 22px;
  }
  .tug-ledger {
    flex-direction: column-reverse;
    gap: clamp(25px, 5.5svh, 50px);
    align-self: center;
    margin-top: 0;
  }
  .tug-jobs { width: 100%; }
  .tug-job-rows { gap: 10px; }
  .tug-job-row { gap: 6px; min-height: 47px; justify-content: flex-start; padding: 3px 0; }
  .tug-row-code { font-size: 12px; }
  .tug-row-code::before { width: 13px; height: 4px; }
  .tug-job-row b { font-size: clamp(13px, 3.55vw, 20px); }
  .tug-file { align-self: flex-end; width: clamp(175px, 55vw, 305px); }
}
@media (min-width: 761px) and (max-height: 630px) {
  #hero-stage { padding-top: 75px; padding-bottom: 8px; row-gap: 10px; }
  .tug-ledger { margin-top: 0; }
  .tug-file { width: min(23vw, 45svh); }
  .tug-measure { width: min(100%, 175svh); }
}
@media (max-width: 760px) and (max-height: 490px) {
  #hero-stage { padding-block: 73px 7px; row-gap: 8px; }
  .tug-ledger { flex-direction: row; align-items: flex-start; align-self: start; gap: 15px; }
  .tug-jobs { flex: 1; }
  .tug-file { width: min(27vw, 44svh); }
  .tug-job-rows { justify-content: flex-start; gap: clamp(10px, 3vw, 24px); }
  .tug-job-row b { font-size: 13px; }
  .tug-measure { width: min(100%, 148svh); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .tug-file figcaption strong { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion='on']) .tug-file-window .tug-chosen { animation: none; }
}
html[data-motion='off'] .tug-file-window .tug-chosen { animation: none; }
