@font-face {
  font-family: 'Angelic Peace';
  src: url('../fonts/angelic-peace.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue World Super Condensed';
  src: url('../fonts/neue-world-super-condensed-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: 'Angelic Peace', 'Oranienbaum', serif;
  --font-accent: 'Neue World Super Condensed', 'Oranienbaum', serif;
  --font-text: 'Unbounded', system-ui, sans-serif;
  --accent-stroke: .45px;
  --bg: #000;
  --bg-raised: #0c0c0c;
  --fg: #f4f4f4;
  --muted: #7a7a7a;
  --line: #262626;
  --chrome: linear-gradient(135deg, #fff 0%, #d4d4d4 50%, #9a9a9a 100%);
  --chrome-text: linear-gradient(180deg, #fff 0%, #e2e2e2 55%, #9d9d9d 100%);
  --r-card: 16px;
  --r-small: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg);
  color-scheme: dark;
  overflow-anchor: none;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-anchor: none;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .07) 0%, transparent 60%),
    radial-gradient(90% 60% at 50% 110%, rgba(255, 255, 255, .04) 0%, transparent 70%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

#root {
  position: relative;
  z-index: 1;
}

.chrome-text {
  background: var(--chrome-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.chip,
.chip__cancel,
.field__label,
.dropzone,
.btn,
.intro__skip,
.sheet__meta {
  -webkit-text-stroke: var(--accent-stroke) currentColor;
  -webkit-font-smoothing: auto;
}

.screen {
  min-height: 100dvh;
  padding: calc(28px + var(--safe-top)) 20px calc(40px + var(--safe-bottom));
  max-width: 560px;
  margin: 0 auto;
  animation: screen-in .7s var(--ease) both;
}

.screen--form {
  display: flex;
  flex-direction: column;
  min-height: var(--tg-viewport-stable-height, 100dvh);
  padding-bottom: calc(14px + var(--safe-bottom));
}

.screen--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: 30px;
  line-height: 1.2;
  white-space: nowrap;
  margin-bottom: 40px;
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(46px, 15vw, 72px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.wordmark__cap {
  font-size: 1.45em;
  line-height: 0;
  margin: 0 .07em 0 .28em;
}

.lead {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  margin-bottom: 30px;
  max-width: 34ch;
}

.specialties {
  --list-gap: 10px;
  display: flex;
  flex-direction: column;
  gap: var(--list-gap);
}

.chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 18px;
  text-align: left;
  font-family: var(--font-accent);
  font-weight: 300;
  font-synthesis: none;
  font-size: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid #2a2a2a;
  border-radius: var(--r-card);
  background: var(--bg-raised);
  transition: transform .35s var(--ease), color .35s, background .35s, border-color .35s;
  animation: chip-in .6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.chip__index {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .12em;
  min-width: 22px;
}

.chip__label {
  flex: 1;
}

.chip__arrow {
  width: 18px;
  height: 18px;
  opacity: .5;
  transition: transform .35s var(--ease), opacity .35s;
}

.chip:active {
  transform: scale(.985);
}

.chip--active {
  border-color: rgba(255, 255, 255, .5);
  background: #151515;
}

.chip--active .chip__arrow {
  transform: rotate(90deg);
  opacity: 1;
}

.chip--applied {
  flex-wrap: wrap;
  row-gap: 12px;
  cursor: default;
  color: var(--muted);
}

.chip--applied:active {
  transform: none;
}

.chip__meta {
  display: flex;
  flex-basis: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 38px;
}

.chip__status {
  font-size: 14px;
  letter-spacing: .08em;
}

.chip__cancel {
  padding: 8px 14px;
  font-family: var(--font-accent);
  font-weight: 300;
  font-synthesis: none;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  transition: background .2s, opacity .2s;
}

.chip__cancel:active {
  background: rgba(255, 255, 255, .08);
}

.chip__cancel[disabled] {
  opacity: .5;
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.unroll {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: calc(-1 * var(--list-gap, 0px));
  transition: grid-template-rows .6s var(--ease), margin-top .6s var(--ease);
}

.unroll--open {
  grid-template-rows: 1fr;
  margin-top: 0;
}

.unroll__inner {
  overflow: hidden;
  min-height: 0;
}

.form {
  padding: 24px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.field {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 150ms);
}

.unroll--open .field,
.unroll--open .form__submit {
  opacity: 1;
  transform: none;
}

.field__label {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--font-accent);
  font-weight: 300;
  font-synthesis: none;
  font-size: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #d8d8d8;
  margin-bottom: 8px;
}

.field__required {
  color: var(--muted);
}

.field__hint {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--muted);
}

.field__error {
  display: none;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  color: #fff;
}

.field--invalid .field__error {
  display: block;
}

.field--invalid {
  animation: shake .4s;
}

@keyframes shake {
  20%, 60% {
    transform: translateX(-5px);
  }
  40%, 80% {
    transform: translateX(5px);
  }
}

.input {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  resize: none;
  transition: border-color .3s;
}

.input::placeholder {
  color: #444;
}

.input:focus {
  border-bottom-color: #d4d4d4;
}

.field--invalid .input {
  border-bottom-color: #fff;
}

.counter {
  display: block;
  text-align: right;
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .08em;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option {
  padding: 11px 16px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}

.option:active {
  transform: scale(.96);
}

.option--selected {
  color: #000;
  border-color: #f2f2f2;
  background: #f2f2f2;
}

.dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px;
  font-family: var(--font-accent);
  font-weight: 300;
  font-synthesis: none;
  font-size: 17px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid #2e2e2e;
  border-radius: var(--r-card);
  transition: border-color .3s, background .3s;
}

.dropzone:active {
  background: rgba(255, 255, 255, .04);
  border-color: #aaa;
}

.dropzone[disabled] {
  opacity: .35;
  pointer-events: none;
}

.files {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-small);
  animation: chip-in .4s var(--ease) both;
}

.file__name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file__size {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.file__remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--line);
}

.file__remove svg {
  width: 12px;
  height: 12px;
}

.form__submit {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + 200ms);
  padding-bottom: 8px;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  font-family: var(--font-accent);
  font-weight: 300;
  font-synthesis: none;
  font-size: 19px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #000;
  border-radius: var(--r-card);
  background: var(--chrome);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 10px 40px rgba(255, 255, 255, .08);
  transition: transform .3s var(--ease), opacity .3s;
}

.btn:active {
  transform: scale(.98);
}

.btn[disabled] {
  opacity: .5;
  pointer-events: none;
}

.btn--loading {
  background: linear-gradient(110deg, #cfcfcf 0%, #fff 50%, #cfcfcf 100%);
  background-size: 200% 100%;
  animation: sheen 1.4s linear infinite;
}

.btn--ghost {
  color: var(--fg);
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--line);
}

@keyframes sheen {
  to {
    background-position: 200% 0;
  }
}

.footer {
  margin-top: auto;
  padding-top: 28px;
  font-size: 10px;
  letter-spacing: .08em;
  text-align: center;
  color: var(--muted);
}

.footer__link {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid #3a3a3a;
}

.notice {
  padding: 18px;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-raised);
  color: #cfcfcf;
  margin: 4px 0 14px;
}

.status-mark {
  width: 84px;
  height: 84px;
  margin-bottom: 10px;
}

.status-mark circle {
  fill: none;
  stroke: url(#mark-gradient);
  stroke-width: 2;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1s var(--ease) .1s forwards;
}

.status-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw .6s var(--ease) .8s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-bottom));
  z-index: 50;
  max-width: calc(100% - 40px);
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 600;
  color: #000;
  background: var(--chrome);
  border-radius: 999px;
  transform: translate(-50%, 30px);
  opacity: 0;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: radial-gradient(70% 50% at 50% 46%, #2a2a2a 0%, #0d0d0d 55%, #000 100%);
  transition: opacity .6s var(--ease), visibility .6s;
}

.intro::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.intro--out {
  opacity: 0;
  visibility: hidden;
}

.intro__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro__table {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150vmax;
  height: 150vmax;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .035), transparent);
  opacity: 0;
  animation: fade-in 1s ease .1s forwards;
}

.intro__stack {
  position: relative;
  width: min(62vw, 290px);
  aspect-ratio: 3 / 4;
  margin-top: 4vh;
}

.sheet {
  position: absolute;
  inset: 0;
  padding: 9% 9%;
  border-radius: 6px;
  background: linear-gradient(160deg, #f6f6f6 0%, #cfcfcf 55%, #efefef 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7), 0 2px 0 rgba(255, 255, 255, .5) inset;
  color: #0a0a0a;
  opacity: 0;
  transform: translateY(-60vh) rotate(-24deg);
  animation: sheet-drop .85s cubic-bezier(.2, .9, .25, 1.05) forwards;
}

.sheet--1 {
  --r: -7deg;
  --x: -10px;
  --y: 6px;
  animation-delay: 1s;
}

.sheet--2 {
  --r: 4deg;
  --x: 8px;
  --y: 0px;
  animation-delay: 1.2s;
}

.sheet--3 {
  --r: -1.5deg;
  --x: 0px;
  --y: -6px;
  animation-delay: 1.4s;
}

.sheet__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
  font-size: clamp(18px, 6.4vw, 28px);
  line-height: 1.05;
}

.sheet__meta {
  margin-top: 6px;
  font-family: var(--font-accent);
  font-weight: 300;
  font-synthesis: none;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #555;
}

.sheet__lines {
  margin-top: 16%;
  height: 46%;
  background: repeating-linear-gradient(180deg, #9a9a9a 0 1px, transparent 1px 15px);
}

.sheet__stamp {
  position: absolute;
  right: 9%;
  bottom: 8%;
  padding: 4px 9px;
  font-weight: 900;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  border: 2px solid #0a0a0a;
  border-radius: 3px;
  transform: rotate(-9deg) scale(2.2);
  opacity: 0;
  animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1) 2.55s forwards;
}

@keyframes sheet-drop {
  0% {
    opacity: 0;
    transform: translateY(-60vh) rotate(-24deg);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate(var(--x), var(--y)) rotate(var(--r));
  }
}

@keyframes stamp {
  to {
    opacity: .9;
    transform: rotate(-9deg) scale(1);
  }
}

.intro__hand {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(44vw, 190px, 24vh);
  height: calc(min(44vw, 190px, 24vh) * 3.05);
  margin-left: calc(min(44vw, 190px, 24vh) / -2);
  transform: translateY(-105%) rotate(-3deg);
  transform-origin: 50% 0;
  filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .8));
  animation: hand 2.1s cubic-bezier(.6, 0, .3, 1) .3s forwards;
}

.intro__hand::before {
  content: '';
  position: absolute;
  left: 24%;
  bottom: 80%;
  width: 62%;
  height: 150vh;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 7% 100%);
  background: linear-gradient(90deg, #030303 0%, #141414 22%, #333 42%, #111 62%, #1d1d1d 82%, #040404 100%);
}

.intro__gauntlet {
  position: absolute;
  left: -20%;
  top: -2%;
  width: 140%;
  height: 104%;
  display: block;
}

.intro__glints {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  will-change: transform;
}

.glint path,
.glint rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: glint 1.8s ease-in-out infinite;
}

.glint--2 path,
.glint--2 rect {
  animation-delay: .6s;
}

.glint--3 path,
.glint--3 rect {
  animation-delay: 1.2s;
}

@keyframes glint {
  0%,
  100% {
    opacity: .15;
    transform: scale(.4);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hand {
  0% {
    transform: translateY(-105%) rotate(-3deg);
  }
  38% {
    transform: translateY(2vh) rotate(0deg);
  }
  56% {
    transform: translateY(2vh) rotate(.8deg);
  }
  100% {
    transform: translateY(-105%) rotate(-2deg);
  }
}

.intro__skip {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(20px + var(--safe-top));
  text-align: center;
  font-family: var(--font-accent);
  font-weight: 300;
  font-synthesis: none;
  font-size: 13px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #777;
  opacity: 0;
  animation: fade-in .6s ease 1s forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}

@supports (corner-shape: squircle) {
  :root {
    --r-card: 24px;
    --r-small: 18px;
  }

  .chip,
  .dropzone,
  .file,
  .btn,
  .notice {
    corner-shape: squircle;
  }
}
