@font-face {
  font-family: "DM";
  src: url("./assets/dm-sans.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex";
  src: url("./assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #100e17;
  --paper: #f3f1f4;
  --secondary: #c2b9c9;
  --mono: "Plex", monospace;
  --edge: clamp(22px, 4.2vw, 76px);
  font-family: "DM", Helvetica, sans-serif;
  background: var(--night);
  color: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; }
button, input, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid #ceb2ff; outline-offset: 5px; }
.stage { height: 100vh; height: 100svh; position: relative; overflow: hidden; isolation: isolate; }
.still, #ascii, .lower-shade { width: 100%; height: 100%; position: absolute; inset: 0; }
.still { background: var(--night) url("./assets/ascii-still.webp") center / cover no-repeat; }
#ascii { z-index: 1; display: block; opacity: 0; touch-action: pan-y pinch-zoom; transition: opacity 240ms ease-out; }
.art-ready #ascii { opacity: 1; }
.lower-shade {
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(16,14,23,.42), transparent 18%);
}
header {
  position: absolute; z-index: 3; left: var(--edge); right: var(--edge);
  top: max(env(safe-area-inset-top), clamp(18px, 3.2vh, 40px));
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
header a, header button, .controls button { pointer-events: auto; }
.sigil {
  width: 48px; height: 48px; margin-left: -7px; padding: 0;
  display: grid; place-items: center; color: #c99cda;
}
.sigil span {
  font: 600 12px/.74 var(--mono); white-space: nowrap; text-align: center; letter-spacing: 1px;
  background: linear-gradient(115deg, #8e90ff 13%, #f8badc 62%, #f3af97);
  color: transparent; background-clip: text; -webkit-background-clip: text;
}
.contact-link { min-height: 44px; padding: 0; text-decoration: none; display: flex; align-items: center; gap: 14px; font: 14px var(--mono); }
.contact-link span { font: 21px/1 var(--mono); color: #d9b0eb; transition: transform .2s; }
.contact-link:hover span { transform: rotate(90deg); }
.signature {
  position: absolute; z-index: 3; left: var(--edge);
  bottom: max(calc(env(safe-area-inset-bottom) + 20px), 5.8vh);
  pointer-events: none;
}
h1 {
  font: 400 clamp(60px, 7.35vw, 136px)/.97 "DM", Helvetica, sans-serif;
  letter-spacing: -.075em; margin-left: -.048em;
}
.signature p { margin-top: clamp(12px, 2vh, 22px); color: var(--secondary); font: 400 clamp(12px,.96vw,16px)/1.55 var(--mono); }
.signature p span { color: #bb96c7; }
.controls {
  position: absolute; right: var(--edge); bottom: max(calc(env(safe-area-inset-bottom) + 18px),5.2vh);
  z-index: 3; display: flex; gap: 12px; align-items: center; pointer-events: none;
}
.gesture { font: 12px/1.3 var(--mono); color: #c4b8cc; transition: opacity 600ms; }
.has-interacted .gesture { opacity: 0; }
.touch-hint { display: none; }
.motion {
  width: 44px; height: 44px; border: 1px solid #544d60; border-radius: 50%;
  display: grid; place-items: center; transition: border-color .2s; background: rgba(16,14,23,.32);
}
.motion:hover { border-color: #c1a8d2; }
.motion-symbol { width: 8px; height: 10px; border-inline: 2px solid #e7deea; }
.motion.is-paused .motion-symbol { width: 0; height: 0; border: 0; border-block: 5px solid transparent; border-left: 8px solid #e7deea; transform: translateX(1px); }
h2 { font-weight: 400; }
.down { position: absolute; z-index: 3; bottom: 4vh; left: calc(50% - 24px); width: 48px; height: 48px; display: grid; place-items: center; font: 22px var(--mono); color: #e0cbea; text-decoration: none; }
.studio-page { max-width: 1600px; margin: 0 auto; padding: 0 var(--edge) max(48px, 6vh); }
.spread { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 1.65fr); gap: 4vw; border-top: 1px solid #3e3747; padding: clamp(52px, 7.4vw, 118px) 0; scroll-margin-top: 20px; }
.section-label { font: 13px/1.6 var(--mono); color: #c9bacf; }
.bio-copy p:first-child { font-size: clamp(39px, 5.5vw, 91px); line-height: 1.04; letter-spacing: -.065em; max-width: 15ch; }
.bio-copy p + p { max-width: 51ch; margin-top: 30px; font-size: clamp(18px, 1.55vw, 25px); line-height: 1.52; color: #c9c0ce; }
.channels { display: flex; flex-direction: column; }
.channels a { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid #3e3747; padding: 10px 0 16px; text-decoration: none; font-size: clamp(34px, 4.4vw, 74px); letter-spacing: -.055em; line-height: 1.1; }
.channels a:first-child { padding-top: 0; }
.channels a + a { margin-top: 12px; }
.channels a span { font: .56em var(--mono); margin-right: .14em; color: #cfacd9; transition: transform .2s; }
.channels a:hover span, .channels a:focus-visible span { transform: translate(4px,-3px); }
.enquiry h2 { font-size: clamp(42px, 5vw, 84px); line-height: 1; letter-spacing: -.065em; }
.enquiry h2 span { color: #e4a6d6; }
.form-wrap { max-width: 650px; width: 100%; }
#file-contact { margin-bottom: 24px; color: #e3c6eb; font: 13px/1.6 var(--mono); }
form label { display: block; font: 13px/1.4 var(--mono); color: var(--secondary); }
input, textarea { display: block; width: 100%; margin: 3px 0 21px; padding: 6px 1px 9px; background: transparent; border: 0; border-bottom: 1px solid #58505e; border-radius: 0; font: 16px/1.4 "DM", sans-serif; }
textarea { min-height: 62px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: #e2b4df; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.send { display: inline-block; background: var(--paper); color: var(--night); min-height: 43px; padding: 0 18px; font: 13px var(--mono); }
.send:disabled { opacity: .65; cursor: wait; }
#result:not(:empty) { margin-top: 14px; }
#result { font: 13px/1.6 var(--mono); color: #d3c2db; }
#result.error { color: #ffbcc8; }
@media (max-width: 700px) {
  .spread { grid-template-columns: 1fr; gap: 24px; }
  .bio-copy p:first-child { max-width: 17ch; }
  .down { bottom: auto; left: auto; right: var(--edge); top: 46%; width: 42px; }
  .still { background-image: url("./assets/ascii-mobile.webp"); }
  h1 { font-size: clamp(53px, 12vw, 82px); }
  .signature p { font-size: clamp(12px, 2.65vw, 13px); }
  .controls { gap: 0; }
  .gesture { position: absolute; right: 0; bottom: 53px; white-space: nowrap; font-size: 10px; }
  .lower-shade { background: linear-gradient(0deg, rgba(16,14,23,.82), transparent 27%); }
}
@media (hover: none) { .desktop-hint { display: none; } .touch-hint { display: inline; } }
@media (max-height: 455px) and (orientation: landscape) {
  h1 { font-size: 42px; } .signature p { margin-top: 5px; } .gesture { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.signature .signature-place { display: block; color: #d7b8dc; margin-top: .22em; }
@media(max-width:700px){ .signature { max-width: calc(100% - 95px); } }
