:root {
  --paper: #e9e8e2;
  --paper-bright: #f6f6f1;
  --ink: #0d0e0b;
  --muted: #666a61;
  --rule: #a8aaa2;
  --acid: #ccff00;
  --acid-dark: #9dc600;
  --danger: #d3342e;
  --sans: "Hanken Grotesk", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(13, 14, 11, .032) 1px, transparent 1px),
    linear-gradient(rgba(13, 14, 11, .032) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: var(--mono);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

button,
input,
label { font: inherit; }

button { color: inherit; }

button:focus-visible,
input:focus-visible,
label:focus-within {
  outline: 3px solid var(--danger);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(.9);
  opacity: .42;
}

[hidden] { display: none !important; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.machine-shell {
  width: min(100%, 1680px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 clamp(17px, 3.5vw, 60px) 32px;
}

.machine-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font: 850 13px/1 var(--sans);
  letter-spacing: -.02em;
  text-decoration: none;
}

.wordmark-pill {
  min-width: 51px;
  padding: 8px 10px 7px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--acid);
  box-shadow: 2px 3px 0 var(--ink);
  font: 900 12px/1 var(--sans);
  text-align: center;
}

.machine-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .03em;
}

.machine-state span {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 13px rgba(204, 255, 0, .7);
}

.intro {
  padding: clamp(38px, 5.8vw, 88px) 0 clamp(30px, 4vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 40px clamp(40px, 9vw, 160px);
  align-items: end;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font: 650 9px/1 var(--mono);
  letter-spacing: .065em;
}

h1 {
  margin: 0;
  font: 900 clamp(66px, 9vw, 148px)/.78 var(--sans);
  letter-spacing: -.085em;
  text-transform: lowercase;
}

.intro-copy {
  margin: 0 0 6px;
  font: 800 clamp(25px, 3vw, 48px)/.91 var(--sans);
  letter-spacing: -.052em;
}

.buttonizer {
  min-height: min(720px, 76vh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 29vw, 450px);
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  box-shadow: 13px 15px 0 rgba(13, 14, 11, .13);
}

.picture-stage {
  position: relative;
  min-width: 0;
  min-height: 620px;
  display: grid;
  place-items: stretch;
  color: #f2f3ec;
  background:
    linear-gradient(45deg, #171914 25%, transparent 25%),
    linear-gradient(-45deg, #171914 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #171914 75%),
    linear-gradient(-45deg, transparent 75%, #171914 75%),
    #11120f;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  overflow: hidden;
}

.drop-card {
  min-height: 100%;
  padding: clamp(25px, 4vw, 58px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 28px;
  color: var(--ink);
  background: var(--acid);
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease;
}

.drop-card:hover,
.picture-stage.is-dragging-file .drop-card {
  background: #d9ff3d;
}

.picture-stage.is-dragging-file .drop-card {
  transform: scale(.985);
}

.drop-number {
  font: 900 14px/1 var(--sans);
}

.drop-copy {
  align-self: center;
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  text-align: center;
}

.drop-copy strong {
  font: 950 clamp(46px, 7vw, 108px)/.79 var(--sans);
  letter-spacing: -.075em;
}

.drop-copy small {
  font: 650 11px/1 var(--mono);
  letter-spacing: .02em;
}

.drop-arrow {
  justify-self: end;
  font: 400 clamp(42px, 5vw, 76px)/.8 var(--sans);
}

.picture-preview {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: clamp(16px, 2.5vw, 34px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.picture-preview img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 26px 45px rgba(0, 0, 0, .52));
}

.picture-preview figcaption {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #aeb1a7;
  font-size: 9px;
}

.picture-preview figcaption button {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--acid);
  color: var(--acid);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.picture-stage.has-result {
  background: #0b0c09;
}

.machine-working {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #f4f5ee;
  background: rgba(9, 10, 7, .88);
  text-align: center;
}

.working-orbit {
  position: relative;
  width: 220px;
  height: 128px;
  display: grid;
  place-items: center;
}

.working-orbit::before,
.working-orbit::after {
  content: "";
  position: absolute;
  inset: 11px 4px;
  border: 1px solid rgba(204, 255, 0, .24);
  border-radius: 50%;
  animation: orbit 1.8s linear infinite;
}

.working-orbit::after {
  inset: 24px 24px;
  animation-direction: reverse;
  animation-duration: 1.15s;
}

.working-orbit img {
  position: relative;
  z-index: 1;
  width: 170px;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(204, 255, 0, .48));
  animation: breathe 1.25s ease-in-out infinite;
}

.machine-working strong {
  color: var(--acid);
  font: 900 28px/1 var(--sans);
  letter-spacing: -.045em;
}

.machine-working span {
  color: #aeb1a7;
  font-size: 9px;
}

.press-bay {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--ink);
  background: var(--paper-bright);
}

.process {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process li {
  min-height: 77px;
  padding: 17px 22px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.process li > span {
  grid-row: 1 / 3;
  color: var(--muted);
  font-size: 9px;
}

.process b {
  font: 850 15px/1 var(--sans);
  letter-spacing: -.02em;
}

.process small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.press-stack {
  padding: clamp(28px, 3.5vw, 48px) 22px 26px;
  color: #f1f2ea;
  background: var(--ink);
}

.buttonize-button {
  position: relative;
  width: 100%;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 27px;
  background: #030402;
  box-shadow: 0 10px 0 #020301, 0 16px 28px rgba(0, 0, 0, .54);
  cursor: pointer;
  transform: translateY(0);
}

.buttonize-face {
  position: absolute;
  inset: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid #e1ff68;
  border-radius: 21px;
  color: var(--ink);
  background: var(--acid);
  box-shadow:
    inset 0 4px 7px rgba(255, 255, 255, .52),
    inset 0 -8px 12px rgba(113, 143, 0, .34),
    0 0 28px rgba(204, 255, 0, .28);
  font: 950 clamp(22px, 2vw, 31px)/1 var(--sans);
  letter-spacing: -.045em;
  transition: transform 90ms ease, filter 90ms ease;
}

.buttonize-depth {
  position: absolute;
  inset: 12px 9px 3px;
  border-radius: 22px;
  background: #668000;
}

.buttonize-button:not(:disabled):hover .buttonize-face {
  filter: brightness(1.06);
}

.buttonize-button:not(:disabled):active .buttonize-face,
.buttonize-button.is-pressing .buttonize-face {
  transform: translateY(8px);
  filter: brightness(.96);
}

.status {
  min-height: 38px;
  margin: 28px 2px 0;
  color: #aeb1a7;
  font-size: 9px;
  line-height: 1.55;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}

.result-actions button {
  min-height: 55px;
  padding: 0 15px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: var(--paper-bright);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.result-actions button:hover { background: var(--acid); }
.result-actions button:nth-child(2) { border-right: 0; }
.result-actions button:last-child {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  border-right: 0;
  color: var(--muted);
}

.upload-note {
  margin: auto 0 0;
  padding: 22px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  font-size: 8px;
  line-height: 1.55;
}

.upload-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.upload-note a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.machine-footer {
  padding: 22px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.machine-footer p { margin: 0; }
.machine-footer p:last-child { max-width: 420px; text-align: right; }

.noscript {
  margin: 20px;
  padding: 18px;
  color: var(--ink);
  background: var(--acid);
  font: 700 13px/1.4 var(--mono);
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes breathe {
  50% { transform: scale(.94); filter: drop-shadow(0 0 10px rgba(204, 255, 0, .34)); }
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .intro-copy { justify-self: end; text-align: right; }

  .buttonizer {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .picture-stage {
    min-height: min(66svh, 650px);
  }

  .press-bay {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .process li {
    min-height: 84px;
    padding: 14px;
    border-right: 1px solid var(--rule);
  }

  .process li:last-child { border-right: 0; }
  .upload-note { margin-top: 0; }
}

@media (max-width: 560px) {
  .machine-shell { padding-inline: 12px; }
  .machine-header { min-height: 58px; }
  .wordmark { font-size: 10px; }
  .wordmark-pill { min-width: 45px; padding: 7px 8px 6px; }
  .machine-state { font-size: 7px; }

  .intro { padding: 24px 4px 21px; gap: 17px; }
  .eyebrow { max-width: 260px; line-height: 1.4; }
  h1 { font-size: clamp(54px, 18vw, 74px); }
  .intro-copy { font-size: clamp(23px, 7.8vw, 34px); }

  .buttonizer { box-shadow: 7px 8px 0 rgba(13, 14, 11, .14); }
  .picture-stage { min-height: 56svh; }
  .picture-stage:not(.has-picture) { min-height: 350px; }
  .drop-card { padding: 22px 18px; }
  .drop-copy strong { font-size: clamp(42px, 16vw, 66px); }
  .picture-preview { padding: 12px; }
  .picture-preview figcaption { font-size: 7px; }

  .process li {
    min-height: 72px;
    grid-template-columns: 22px 1fr;
    padding: 11px 8px;
  }
  .process b { font-size: 11px; }
  .process small { font-size: 6px; }

  .press-stack {
    position: sticky;
    bottom: 0;
    z-index: 8;
    padding: 22px 14px calc(21px + env(safe-area-inset-bottom));
  }
  .buttonize-button { height: 78px; border-radius: 23px; }
  .buttonize-face { border-radius: 17px; }
  .status { margin-top: 21px; }

  .machine-footer {
    display: grid;
  }
  .machine-footer p:last-child { text-align: left; }
}

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