@font-face {
  font-family: "Space Grotesk";
  src: url("./brand/fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("./brand/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fafafa;
  --ink: #171717;
  --cyan: #00cfff;
  --magenta: #ff4ba6;
  --yellow: #f5f531;
  --quiet: #646464;
}
* { box-sizing: border-box; }
html { min-width: 280px; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 7px;
}
button { cursor: pointer; }
::selection { background: var(--yellow); color: var(--ink); }

#ink-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 540px;
  min-height: max(540px, 100svh);
  padding: 28px 44px 26px;
}
.masthead {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: .875rem;
  letter-spacing: -.015em;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 3px 1px 0 var(--cyan);
}
.entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vh, 48px);
  padding: 48px 0 54px;
}
.wordmark {
  width: min(100%, 1440px);
  margin: 0;
  font-size: 0;
  line-height: 0;
}
.wordmark-play {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 2px;
  user-select: none;
  touch-action: pan-y;
}
.wordmark-play img {
  display: block;
  width: 100%;
  height: auto;
}
.motion-loading .wordmark-play img,
.field-ready .wordmark-play img { opacity: 0; }
.motion-paused .wordmark-play img { opacity: 1; }
.motion-paused #ink-field { visibility: hidden; }
.is-assembling .wordmark-play { cursor: default; }
.is-assembling .play-hint { opacity: 0; }
.awaiting-entrance .play-hint { opacity: 1; }
.invitation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.tagline {
  margin: 0;
  text-align: center;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.24;
  letter-spacing: -.045em;
  font-weight: 400;
}
.access-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 180px;
  min-height: 56px;
  padding: 14px 23px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 100px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: white;
  background: var(--ink);
  isolation: isolate;
  transition: color 220ms, box-shadow 220ms;
  will-change: transform;
}
.access-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--yellow);
  border-radius: inherit;
  transform: translateY(103%);
  transition: transform 350ms cubic-bezier(.2,.8,.2,1);
}
.access-button:hover, .access-button:focus-visible { color: var(--ink); box-shadow: 4px 4px 0 var(--cyan), -3px -3px 0 var(--magenta); }
.access-button:hover::before, .access-button:focus-visible::before { transform: translateY(0); }
.button-arrow { display: inline-block; font-size: 1.4rem; line-height: 1; transition: transform 250ms; }
.access-button:hover .button-arrow { transform: rotate(45deg); }

.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.play-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--quiet);
  font-size: .8125rem;
  letter-spacing: -.01em;
  transition: opacity 400ms;
}
.hint-symbol { color: var(--ink); font-size: 1.25rem; }
.touch-hint { display: none; }
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 0 10px 12px;
  border: 0;
  background: none;
  color: var(--quiet);
  font-size: .8125rem;
  white-space: nowrap;
}
body:not(.field-ready) .motion-toggle,
body:not(.field-ready) .play-hint { visibility: hidden; }
.motion-toggle:hover { color: var(--ink); }
.motion-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.play-shape { display: none; }
.motion-paused .pause-shape { display: none; }
.motion-paused .play-shape { display: block; }
.motion-paused .play-hint { visibility: hidden; }

/* The only second surface is the direct client inquiry. */
dialog {
  width: min(520px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: clamp(28px, 5vw, 48px);
  overflow-y: auto;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 32px 120px #17171716;
}
dialog::backdrop { background: #fafafaad; backdrop-filter: blur(14px); }
dialog[open] { animation: door-open 400ms cubic-bezier(.16,1,.3,1) both; }
dialog[open]::backdrop { animation: curtain-open 250ms ease-out both; }
.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
}
.close-button:hover { background: #eee; }
.close-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dialog-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; font: .75rem "Space Mono", monospace; letter-spacing: .05em; }
.cmy-dots { display: flex; padding-right: 4px; }
.cmy-dots i { width: 9px; height: 9px; border-radius: 50%; margin-right: -2px; background: var(--cyan); }
.cmy-dots i:nth-child(2) { background: var(--magenta); }
.cmy-dots i:nth-child(3) { background: var(--yellow); }
dialog h2 { margin: 0 0 16px; font-size: clamp(2.5rem, 6vw, 3.5rem); line-height: .96; font-weight: 500; letter-spacing: -.065em; }
#inquiry-description { margin: 0 0 32px; font-size: 1rem; color: var(--quiet); }
#inquiry-form label { display: block; margin-bottom: 10px; font-size: .875rem; font-weight: 500; }
textarea {
  display: block;
  resize: vertical;
  width: 100%;
  min-height: 108px;
  max-height: 220px;
  padding: 15px;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
textarea::placeholder { color: #777; }
textarea:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.send-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; margin-top: 18px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: white; font-size: 1rem; transition: background 180ms, color 180ms; }
.send-button:hover { background: var(--yellow); color: var(--ink); }
.email-note { margin: 10px 0 28px; color: var(--quiet); font-size: .8125rem; }
.direct-email { font-size: .875rem; text-underline-offset: 4px; }
.direct-email span { display: inline-block; padding-left: 3px; }

@keyframes door-open { from { opacity: 0; transform: translateY(22px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes curtain-open { from { opacity: 0; } to { opacity: 1; } }
@media (hover: none) {
  .pointer-hint { display: none; }
  .touch-hint { display: inline; }
}
@media (max-width: 600px) {
  .page { min-height: max(480px, 100svh); padding: 18px 22px 16px; }
  .masthead { min-height: 42px; }
  .availability { font-size: .8125rem; }
  .entry { padding: 54px 0 64px; gap: 28px; }
  .wordmark { width: calc(100% + 14px); }
  .tagline { font-size: 1.25rem; }
  .invitation { gap: 26px; }
  .access-button { min-width: 170px; min-height: 54px; }
  .colophon { gap: 12px; }
  .play-hint { max-width: 200px; font-size: .75rem; }
  .hint-symbol { display: none; }
  .motion-toggle { font-size: .75rem; }
}
@media (max-height: 580px) and (min-width: 601px) {
  .page { min-height: max(350px, 100svh); padding-block: 12px; }
  .entry { padding: 4px 0 12px; gap: 8px; }
  .wordmark { width: min(68%, 820px); }
  .invitation { flex-direction: row; gap: 32px; }
  .tagline { text-align: left; font-size: 1.125rem; }
}
@media (max-height: 650px) and (max-width: 600px) {
  dialog { padding: 24px; }
  .dialog-kicker { margin-bottom: 24px; }
  #inquiry-description { margin-bottom: 24px; }
  textarea { min-height: 96px; padding: 12px; }
  .email-note { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
