/* Colors, fonts and radii come from tokens.css (the EMB Creating brand tokens). */
@font-face {
  font-family: "Luxurious Script";
  src: url("/brand/LuxuriousScript-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  --font-script: "Sloop Script", "Luxurious Script", "Caveat", cursive;
  --error: #B5432A; /* brand guide's error color */
  --ease: 200ms ease-out;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); min-height: 100vh; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.logo { display: block; height: auto; }

/* ---------- client tracker ---------- */
.tracker { max-width: 760px; margin: 0 auto; padding: 32px 24px 40px; }
.tracker.centered { padding-top: 18vh; }
.tracker.centered h1 { margin: 24px 0 8px; font: 700 28px/1.15 var(--font-display); letter-spacing: -.01em; }
.tracker.centered p { margin: 0; color: var(--text-soft); }
.tracker-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.tracker-head .logo { width: 104px; }
.project { margin: 0; color: var(--text-soft); font-size: 14px; text-align: right; }

.status { padding: 64px 0 48px; }
.hello { margin: 0 0 4px; font: 400 40px/1.15 var(--font-script); overflow-wrap: anywhere; }
.eyebrow { margin: 0; color: var(--text-soft); font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.status h1 { margin: 8px 0 0; font: 700 clamp(40px, 9vw, 56px)/1.08 var(--font-display); letter-spacing: -.02em; }
.status-detail { max-width: 32em; margin: 14px 0 0; color: var(--text-soft); font-size: 20px; line-height: 1.5; }
.check-email { margin: 24px 0 0; color: var(--accent); font: 700 28px/1.15 var(--font-display); letter-spacing: -.01em; }
/* Film strip, pared back: a row of frames with one line of perforations above and below. */
.filmstrip {
  list-style: none; margin: 0; padding: 22px 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  background-image: radial-gradient(circle, var(--line) 2.5px, transparent 3px), radial-gradient(circle, var(--line) 2.5px, transparent 3px);
  background-size: 18px 6px, 18px 6px;
  background-position: 0 0, 0 100%;
  background-repeat: repeat-x;
}
.frame { min-width: 0; }
.frame-window {
  display: grid; place-items: center; aspect-ratio: 3 / 2; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-raised); transition: background-color var(--ease), border-color var(--ease);
}
.frame.done .frame-window { background: var(--text); border-color: var(--text); }
.frame.active .frame-window { border: 2px solid var(--accent); }
.frame svg { width: 24px; height: 24px; fill: none; stroke: var(--bg); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.frame-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
.frame-text { padding-top: 10px; }
.frame-text strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.frame-text small { display: block; min-height: 1.5em; color: var(--text-soft); font-size: 14px; }
.frame.waiting .frame-text strong { color: var(--text-soft); font-weight: 500; }

.note { margin-top: 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); }
.note h2 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { display: flex; flex-wrap: wrap; gap: 16px 56px; margin: 32px 0 0; }
.facts dt { color: var(--text-soft); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; }
.tracker-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; color: var(--text-soft); font-size: 14px; }
.tracker-foot a { color: var(--secondary); }

@media (max-width: 680px) {
  .status { padding: 44px 0 36px; }
  .filmstrip {
    grid-template-columns: 1fr; gap: 10px; padding: 0 0 0 20px;
    background-image: radial-gradient(circle, var(--line) 2.5px, transparent 3px);
    background-size: 6px 18px; background-position: 0 0; background-repeat: repeat-y;
  }
  .frame { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
  .frame-text { padding-top: 0; }
  .frame-text small { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- studio side ---------- */
.studio-side button, .button {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-raised); color: inherit; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer;
  transition: border-color var(--ease);
}
.studio-side button:hover, .button:hover { border-color: var(--text-soft); }
.studio-side button.primary { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.studio-side button.danger { color: var(--error); }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: 1040px; margin: 0 auto; padding: 24px 24px 8px; }
.topbar .logo { width: 96px; }
.topbar-actions, .card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.board { max-width: 1040px; margin: 0 auto; padding: 8px 24px 60px; }
.filters { display: flex; gap: 4px; margin: 8px 0 16px; }
.studio-side .filters button { border-color: transparent; background: transparent; color: var(--text-soft); border-radius: var(--radius-pill); }
.studio-side .filters button[aria-pressed="true"] { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.project-card { padding: 18px 20px; margin-bottom: 12px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 20px; }
.card-head h2 { margin: 0; font: 700 20px/1.2 var(--font-display); }
.muted { margin: 2px 0 0; color: var(--text-soft); font-size: 14px; }
.stage-picker { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0 0; padding: 0; }
.studio-side .stage-picker button { width: 100%; height: 100%; padding: 10px 12px; text-align: left; line-height: 1.25; }
.studio-side .stage-picker button { color: var(--text-soft); background: transparent; }
.studio-side .stage-picker button.done { background: var(--bg); color: var(--text); }
.stage-picker button.done::before { content: "\2713"; margin-right: 6px; }
.studio-side .stage-picker button.current { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.private-note { margin: 12px 0 0; color: var(--text-soft); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { padding: 48px 0; text-align: center; color: var(--text-soft); }
dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-raised); color: var(--text); }
dialog::backdrop { background: rgba(38, 32, 26, .45); }
dialog h2 { margin: 0 0 14px; font: 700 28px/1.15 var(--font-display); letter-spacing: -.01em; }
dialog h3 { margin: 18px 0 8px; font-size: 16px; }
label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
label small { font-size: 14px; font-weight: 400; color: var(--text-soft); }
input, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; font-weight: 400; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { margin: 0 0 10px; padding: 10px 12px 0; border: 1px solid var(--line); border-radius: var(--radius); }
legend { padding: 0 4px; font-size: 14px; color: var(--text-soft); }
.dialog-actions { display: flex; gap: 8px; margin-top: 8px; }
.spacer { flex: 1; }
.form-error { margin: 4px 0; min-height: 1.2em; color: var(--error); font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); padding: 10px 18px; border-radius: var(--radius);
  background: var(--text); color: var(--bg); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity var(--ease), transform var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.login-page { display: grid; place-items: center; }
.login-card { width: min(360px, calc(100vw - 32px)); padding: 28px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.login-card .logo { width: 112px; margin: 0 auto 24px; }
.login-card button { width: 100%; }
@media (max-width: 720px) {
  .stage-picker { grid-template-columns: 1fr; }
}
