/* MORE button + overlay — liquid-glass look after the bieber-website kit (skylrk-style),
   hand-drawn wordmark as inline SVG, everything else in mono caps. */

:root {
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --glass-ink: #fbfbfb;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

.glass {
  --c-light: #fff;
  --c-dark: #000;
  position: relative;
  background: #fbfbfb1a;
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  backdrop-filter: blur(8px) saturate(150%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--c-light) 10%, transparent),
    inset 1.8px 3px 0 -2px color-mix(in srgb, var(--c-light) 90%, transparent),
    inset -2px -2px 0 -2px color-mix(in srgb, var(--c-light) 80%, transparent),
    inset -3px -8px 1px -6px color-mix(in srgb, var(--c-light) 60%, transparent),
    inset -.3px -1px 4px 0 color-mix(in srgb, var(--c-dark) 12%, transparent),
    inset -1.5px 2.5px 0 -2px color-mix(in srgb, var(--c-dark) 20%, transparent),
    inset 0 3px 4px -2px color-mix(in srgb, var(--c-dark) 20%, transparent),
    inset 2px -6.5px 1px -4px color-mix(in srgb, var(--c-dark) 10%, transparent),
    0 1px 5px 0 color-mix(in srgb, var(--c-dark) 10%, transparent),
    0 6px 16px 0 color-mix(in srgb, var(--c-dark) 8%, transparent);
}

/* ---------- the MORE pill ---------- */
.more {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 104px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--glass-ink);
  cursor: pointer;
  opacity: .72;
  transform: translateX(-50%);
  transition: opacity .25s var(--ease-out), background-color .25s var(--ease-out);
}
.more:hover,
.more:focus-visible,
.more[aria-expanded="true"] { opacity: 1; background-color: #fbfbfb2b; }
.more:focus-visible { outline: 1px solid #fbfbfb99; outline-offset: 3px; }

.more svg {
  grid-area: 1 / 1;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / .25));
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-in-out);
}
.more .mark { width: 62px; height: auto; stroke-width: 3.4; }
.more .x { width: 12px; height: 12px; stroke-width: 2.2; opacity: 0; transform: rotate(-45deg) scale(.6); }
.more[aria-expanded="true"] .mark { opacity: 0; transform: scale(.85); }
.more[aria-expanded="true"] .x { opacity: 1; transform: none; }

/* ---------- the overlay ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgb(4 3 2 / .86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}
.veil[data-open] { opacity: 1; }

.sheet {
  display: grid;
  gap: 56px;
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 64px;
  color: var(--glass-ink);
  font-family: var(--mono);
}
.sheet form { display: grid; gap: 12px; }

.sheet > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.veil[data-open] .sheet > * { opacity: 1; transform: none; }
.veil[data-open] .sheet > :nth-child(2) { transition-delay: .08s; }

.label {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.field {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 22px;
}
.field.area { border-radius: 16px; align-items: stretch; }

.field input,
.field textarea {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  color: var(--glass-ink);
  font: 14px/1.4 var(--mono);
  outline: none;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input::placeholder,
.field textarea::placeholder { color: #fbfbfb73; text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.field:focus-within { background-color: #fbfbfb26; }

.go {
  flex: none;
  width: 36px;
  height: 36px;
  margin-right: 4px;
  border: 0;
  border-radius: 50%;
  background: var(--glass-ink);
  color: #14110d;
  font: 16px/1 var(--mono);
  cursor: pointer;
}
.go:hover { background: #fff; }

.send {
  justify-self: end;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  color: var(--glass-ink);
  font: 12px/1 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.send:hover { background-color: #fbfbfb2b; }

.go:focus-visible,
.send:focus-visible { outline: 1px solid #fbfbfb99; outline-offset: 3px; }
.sheet button:disabled { opacity: .5; cursor: progress; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.note {
  min-height: 1.2em;
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .6;
}
.note a { color: inherit; }
.note[data-state] { opacity: 1; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 560px) {
  .more { top: 16px; }
  .sheet { padding-top: 88px; gap: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .more svg, .veil, .sheet > * { transition: none; }
}
