/* AU26 Word Cloud Hub — The User Manual for Planet Earth
   Palette, type and motion are fixed by the AU26 design; only the values
   below are authoritative, so change them here rather than inline. */

:root {
  --bg: #000;
  --ink: #fff;
  --yellow: #FFFF00;
  --cream: #d5d5cb;
  --grey-1: #c9c9c9;
  --grey-2: #a3a3a3;
  --grey-3: #666666;
  --line-1: #1c1c1c;
  --line-2: #262626;
  --line-3: #333;
  --warn: #f09d4f;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);

  /* Floor projection motion. Phrases drift rather than snap, so the easing is
     symmetric (gentle out of rest, gentle back into it) and the durations are
     long — read back by floor.js, so change them here only. */
  --floor-move: 2400ms;
  --floor-fade: 1800ms;
  --floor-ease: cubic-bezier(0.37, 0, 0.63, 1);
}

/* Autodesk's brand face. Not on any public CDN, so the licensed webfonts are
   self-hosted — drop the three .woff2 files into assets/fonts/ (see the README
   in there). Until they exist the stack falls back to Archivo, which is what
   the design was drawn in. */
@font-face {
  font-family: 'Artifakt Element';
  src: url('/assets/fonts/artifakt-element-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Artifakt Element';
  src: url('/assets/fonts/artifakt-element-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Artifakt Element';
  src: url('/assets/fonts/artifakt-element-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  font-family: 'Artifakt Element', 'Artifakt', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
}

a { color: var(--yellow); text-decoration: none; }
a:hover { color: var(--yellow); text-decoration: underline; }

textarea, button, input { font-family: inherit; }
textarea:focus { outline: none; }
::placeholder { color: var(--grey-3); }

[hidden] { display: none !important; }

.num { font-variant-numeric: tabular-nums; }

/* ── Lockup ────────────────────────────────────────────────────────────────── */

.lockup { display: flex; align-items: center; gap: 12px; }
.lockup__logo { height: 13px; width: auto; display: block; }
.lockup__label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--grey-2);
}
.vrule { width: 1px; height: 14px; background: var(--line-3); }

/* ── Attendee entry page ───────────────────────────────────────────────────── */

body.entry-page { min-height: 100vh; }

.entry {
  width: 100%; max-width: 460px; margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 32px);
}

.card--entry { padding: clamp(28px, 8vw, 40px) 0 48px; animation: aurise 480ms var(--ease) both; }
.card--entry .lockup { padding-bottom: 34px; }

.accent { width: 34px; height: 3px; background: var(--yellow); margin-bottom: 24px; }

.entry__title {
  margin: 0 0 22px; font-size: clamp(32px, 9vw, 40px); line-height: 0.97; font-weight: 500;
  font-stretch: 108%; letter-spacing: -0.038em; text-wrap: pretty;
}
.entry__lede {
  margin: 0 0 34px; font-size: 16px; line-height: 1.5;
  color: var(--cream); text-wrap: pretty;
}

.field { border-top: 1px solid var(--line-2); padding-top: 20px; }
.field__label {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--grey-1); margin-bottom: 12px;
}
#au-entry {
  width: 100%; background: #ffffff; border: 1px solid var(--line-2);
  border-radius: 8px; color: #000000; font-size: 19px; line-height: 1.35;
  font-weight: 400; letter-spacing: -0.015em; padding: 16px; resize: none;
  transition: border-color 240ms var(--ease);
}
#au-entry.is-filled { border-color: var(--grey-3); }
#au-entry.is-blocked { border-color: var(--warn); }
#au-entry::placeholder { color: var(--grey-3); opacity: 1; }

.field__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; }
.field__hint { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-1); }
.field__count { font-size: 13px; font-weight: 600; color: var(--grey-1); font-variant-numeric: tabular-nums; }

.field__error {
  margin: 12px 0 0; font-size: 12px; line-height: 1.45;
  font-weight: 600; color: var(--warn);
}
.field__error:empty { display: none; }

.meter { height: 2px; background: var(--line-1); margin-top: 10px; }
.meter__fill { height: 2px; width: 0; background: var(--yellow); transition: width 240ms var(--ease); }

.submit {
  margin-top: 30px; width: 100%; appearance: none; border: 0; border-radius: 4px;
  background: var(--yellow); color: #000000; padding: 21px 24px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; cursor: pointer;
  transition: background-color 240ms var(--ease), transform 120ms ease-out;
}
.submit:active { transform: scale(0.98); }
.submit:disabled { cursor: not-allowed; }

.entry__foot { margin: 20px 0 0; font-size: 11px; line-height: 1.55; color: var(--grey-3); }

/* Thanks */

.card--thanks {
  min-height: 100vh; display: flex; flex-direction: column;
  padding: clamp(28px, 8vw, 40px) 0 48px;
  animation: aurise 620ms var(--ease) both;
}
.thanks__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.tick {
  width: 44px; height: 44px; border: 3px solid var(--yellow); margin-bottom: 30px;
  display: flex; align-items: center; justify-content: center;
}
.thanks__title {
  margin: 0 0 26px; font-size: clamp(28px, 7.6vw, 34px); line-height: 1.02; font-weight: 500;
  font-stretch: 108%; letter-spacing: -0.035em; text-wrap: pretty;
}
.onfloor { border-left: 2px solid var(--yellow); padding: 4px 0 4px 16px; }
.onfloor__label {
  margin: 0 0 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--grey-3);
}
.onfloor__text {
  margin: 0; font-size: 16px; line-height: 1.35; font-weight: 500;
  letter-spacing: -0.015em; color: var(--ink);
}


/* ── Mobile capture notes page ─────────────────────────────────────────────── */

.notes {
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: clamp(40px, 9vw, 72px) clamp(20px, 6vw, 32px);
}
.notes__eyebrow {
  margin: 0 0 10px; font-size: 10px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--grey-3);
}
.notes__title {
  margin: 0 0 20px; font-size: clamp(24px, 6.5vw, 28px); line-height: 1.05; font-weight: 500;
  font-stretch: 106%; letter-spacing: -0.03em;
}
.notes__body { margin: 0 0 28px; font-size: 15px; line-height: 1.55; color: var(--grey-2); text-wrap: pretty; }
.notes__foot { margin: 28px 0 0; font-size: 12px; line-height: 1.6; color: var(--grey-3); }

.specs { margin: 0; border-top: 1px solid var(--line-2); }
.specs__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-1);
}
.specs__row dt { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-3); }
.specs__row dd { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.specs__row dd.is-warn { color: var(--warn); }

.notes__links {
  display: flex; flex-wrap: wrap; gap: 24px;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-2);
}
.notes__links a {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── Floor projection page ────────────────────────────────────────────────── */

/* Thrown onto the Expo Hall floor: no chrome, no controls, no pointer.
   The 1280x800 artboard is letterboxed into whatever the projector gives us. */
body.projection {
  position: relative; height: 100vh; overflow: hidden; cursor: none;
}
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1280px; height: 800px;
  transform: translate(-50%, -50%); transform-origin: center center;
  background: var(--bg); overflow: hidden;
}

.glow {
  position: absolute; left: 50%; top: 50%; width: 1500px; height: 1500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.018) 34%, rgba(0,0,0,0) 66%);
}

/* Circular */

.cloud { position: absolute; inset: 0; }
.cloud__hub { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }

/* One persistent element per phrase. It fades in on arrival, travels to its
   next position as newer phrases push it outward, and holds still in between. */
.phrase {
  position: absolute; left: 0; top: 0; margin: 0;
  text-align: center; text-wrap: pretty;
  transition:
    transform var(--floor-move) var(--floor-ease),
    width var(--floor-move) var(--floor-ease),
    margin-left var(--floor-move) var(--floor-ease),
    font-size var(--floor-move) var(--floor-ease),
    letter-spacing var(--floor-move) var(--floor-ease),
    font-stretch var(--floor-move) var(--floor-ease),
    line-height var(--floor-move) var(--floor-ease),
    color var(--floor-move) var(--floor-ease),
    opacity var(--floor-fade) var(--floor-ease);
}

/* Linear */

.linear {
  position: absolute; inset: 0; padding: 64px 96px;
  display: flex; flex-direction: column; justify-content: center;
}
.linear__slot {
  transform-origin: left center;
  transition: transform var(--floor-move) var(--floor-ease),
              opacity var(--floor-fade) var(--floor-ease);
}
.linear__row {
  display: flex; align-items: baseline; gap: 22px;
  transition: margin-left var(--floor-move) var(--floor-ease);
}
.linear__num {
  flex: 0 0 auto; width: 34px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; font-variant-numeric: tabular-nums;
  transition: color var(--floor-move) var(--floor-ease);
}
.linear__rule {
  flex: 0 0 auto; height: 1px;
  transition: width var(--floor-move) var(--floor-ease),
              background-color var(--floor-move) var(--floor-ease);
}
.linear__text {
  margin: 0; max-width: 780px; line-height: 1.04; font-weight: 500; font-stretch: 106%;
  letter-spacing: -0.03em; text-wrap: pretty;
  transition: font-size var(--floor-move) var(--floor-ease),
              color var(--floor-move) var(--floor-ease);
}


/* ── Motion ────────────────────────────────────────────────────────────────── */

@keyframes aurise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
