/* CipherOM, the person's page. Always dark: the void, one saffron vibration, warm paper for files.
   No outside fonts or images. Shared with the front page (index.html). */

:root {
  --void: #12100e;
  --void-3: #25211c;
  --page: #f3eee4;
  --ink: #1d1a16;
  --saffron: #d4a148;
  --ash: #8c8478;
  --ash-2: #b5ad9f;
  --paper-mute: #6b6358;
  --line: rgba(243, 238, 228, 0.12);
  --danger: #e59a8c;
  --green: #9fbf96;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: #070605; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #070605;
  color: var(--page);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

[hidden] { display: none !important; }

svg { width: 20px; height: 20px; flex: none; }
.defs { position: absolute; }

/* ---------- the light ----------
   The page is the void with a faint backlight. --fill (0 to 1) brings in saffron as a send is
   filled in; once it is delivered the saffron fades to a soft green. */
.lit { position: relative; isolation: isolate; --fill: 0.3; }
.lit::before, .lit::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  transition: opacity 1.4s ease, transform 1.8s ease;
}
.lit::before {
  background: radial-gradient(ellipse 55% 45% at 50% 30%, rgba(212, 161, 72, 0.30) 0%, rgba(212, 161, 72, 0.10) 45%, transparent 75%);
  opacity: calc(0.12 + var(--fill) * 0.88);
  transform: scale(calc(0.75 + var(--fill) * 0.35));
}
.lit::after {
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(124, 168, 118, 0.30) 0%, rgba(124, 168, 118, 0.10) 45%, transparent 78%);
  opacity: 0;
  transform: scale(0.9);
}
.lit.received::before { opacity: 0; }
.lit.received::after { opacity: 1; transform: scale(1.1); }
.lit .mark { transition: color 1.4s ease; }
.lit.received .mark { color: var(--green); }

/* ---------- the mark and the wordmark ---------- */
.mark { color: var(--saffron); width: 22px; height: 22px; }
.mark.big { width: 96px; height: 96px; display: block; margin: 0 auto 28px; }
.breathe { animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.06); opacity: 1; } }

.wordmark { display: flex; align-items: center; justify-content: center; gap: 10px; font: 400 19px/1 var(--serif); letter-spacing: 0.01em; color: var(--ash-2); margin: 0 0 2rem; }
.wordmark b { font-weight: 400; color: var(--saffron); letter-spacing: 0.12em; font-size: 0.86em; margin-left: 1px; }
.wordmark .mark { width: 20px; height: 20px; }
/* At the door the big mark stands below; once the vault is open the small one sits beside the name. */
body:not(.opened) .page:not(.bare) .wordmark .mark { display: none; }
body.opened .wordmark { justify-content: flex-start; color: var(--page); }

/* ---------- layout ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 35rem;
  margin: 0 auto;
  padding: calc(1.75rem + env(safe-area-inset-top)) 1.25rem 2rem;
}

.page.bare { display: flex; flex-direction: column; justify-content: center; text-align: center; }

.quiet { color: var(--ash); font-size: 0.9rem; margin: 0.5rem 0; }
.loading { text-align: center; padding-top: 4rem; }

.notice { margin: 3rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(37, 33, 28, 0.6); }
.notice p { margin: 0 0 0.75rem; }

/* ---------- the door ---------- */
.door-head { text-align: center; padding-top: 1rem; }
.eyebrow { font: 600 12px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--saffron); margin: 0 0 0.5rem; }
.title { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.25; margin: 0 0 1.5rem; overflow-wrap: anywhere; }
#vault:not(.open) .title { text-align: center; margin-bottom: 2.25rem; }

.field-title { margin: 0; font-size: 1rem; font-weight: 600; }
.subtitle { margin: 0.15rem 0 1rem; color: var(--ash-2); font-size: 0.9rem; }
.intro { margin: 0 0 1.25rem; color: var(--ash-2); font-size: 0.95rem; }
.until { text-align: center; margin-top: 1.25rem; }

.pass-row { display: flex; gap: 0.5rem; }
.pass, .writing {
  min-width: 0;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--page);
  background: rgba(37, 33, 28, 0.6);
  border: 1px solid rgba(140, 132, 120, 0.4);
  border-radius: 12px;
  transition: border-color 0.6s;
}
.pass { flex: 1; min-height: 48px; }
.pass:focus, .writing:focus { outline: none; border-color: rgba(212, 161, 72, 0.8); }
.toggle { padding: 0.6rem 1rem; }
.pass-form .button.primary { margin-top: 1rem; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.4rem;
  font: inherit;
  font-size: 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.6s, color 0.6s, border-color 0.6s;
}
.button.primary { background: var(--saffron); color: var(--void); font-weight: 600; width: 100%; margin-top: 1.5rem; }
.button.secondary { background: transparent; color: var(--page); border-color: rgba(140, 132, 120, 0.55); }
.button.small { min-height: 44px; padding: 0.35rem 1.1rem; font-size: 0.95rem; }
.button:disabled { cursor: default; }
.button.primary:disabled { background: #2b2722; color: var(--ash); }
.button.secondary:disabled { opacity: 0.45; }
.button:focus-visible, .about summary:focus-visible, .file-remove:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }
.button svg { width: 20px; height: 20px; color: var(--saffron); }

/* ---------- the opened vault ---------- */
.note { margin: 0 0 0.5rem; font: italic 1.15rem/1.6 var(--serif); color: var(--ash-2); white-space: pre-wrap; overflow-wrap: anywhere; }

.step { margin-top: 2.25rem; }

/* Markus's files: warm paper cards on the dark */
.vfiles { list-style: none; margin: 1rem 0 0; padding: 0; }
.card-file {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  background: var(--page);
  color: var(--ink);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: opacity 0.6s;
}
.card-file > svg { color: #a87a2a; }
.card-file.gone { opacity: 0.45; }
.card-file.busy > svg { animation: breathe 1.2s ease-in-out infinite; }
.card-text { flex: 1 1 9rem; min-width: 0; }
.card-file .file-name { display: block; font-weight: 500; font-size: 0.95rem; overflow-wrap: anywhere; }
.card-file .file-size, .card-file .vfile-line { display: block; font-size: 0.8rem; line-height: 1.4; color: var(--paper-mute); margin: 2px 0 0; }
.vfile-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.card-file .button.secondary { color: var(--ink); border-color: rgba(29, 26, 22, 0.45); }
.card-file .button.secondary:not(:disabled):hover { background: rgba(29, 26, 22, 0.06); }
.card-file .button:not(.view) { background: var(--ink); color: var(--page); border-color: var(--ink); }
.card-file .button.primary { width: auto; margin-top: 0; }
.card-file .button:focus-visible { outline-color: #a87a2a; }

/* ---------- sending ---------- */
.form { margin-top: 1rem; }

.label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--ash-2); }

.writing { display: block; width: 100%; min-height: 6rem; line-height: 1.5; resize: none; overflow: hidden; }

.dropzone {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1rem;
  border: 1.5px dashed rgba(140, 132, 120, 0.45);
  border-radius: 16px;
  text-align: center;
  transition: border-color 0.4s, background 0.4s;
}
.dropzone.over { border-color: var(--saffron); background: rgba(212, 161, 72, 0.06); }
.dropnote { margin: 0.6rem 0 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#picker:focus-visible + label { outline: 2px solid var(--saffron); outline-offset: 2px; }

.files { list-style: none; margin: 0.75rem 0 0; padding: 0; text-align: left; }
.files:empty { display: none; }
.files li { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; border-top: 1px solid var(--line); animation: arrive 0.6s ease; }
.files li:first-child { border-top: 0; }
@keyframes arrive { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.dropzone .file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dropzone .file-size { color: var(--ash); font-size: 0.85rem; white-space: nowrap; }
.file-remove { min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--ash-2); font: inherit; font-size: 0.9rem; cursor: pointer; }
.file-remove:hover { color: var(--page); }

.total { text-align: left; }
.total.warn { color: var(--danger); }

.dissolve { margin: 1.75rem 0 0; padding: 0; border: 0; min-width: 0; }
.dissolve legend { padding: 0; margin-bottom: 0.4rem; color: var(--ash-2); font-size: 0.9rem; }
.choice { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; cursor: pointer; }
.choice input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--saffron); }

.progress { display: block; width: 100%; height: 6px; margin-top: 1rem; accent-color: var(--saffron); }

.status { min-height: 1.5rem; margin: 0.9rem 0 0; color: var(--ash-2); }
.status.error { color: var(--danger); }
#retry { margin-top: 0.5rem; }

/* ---------- delivered ---------- */
.receipt { margin-top: 1.5rem; text-align: center; padding-top: 1.5rem; }
.receipt-title { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.3; margin: 0 0 0.4rem; }
.state-line { margin: 0 0 1rem; color: var(--ash-2); transition: color 1.4s; }
.lit.received .state-line { color: #b4cdab; }
.receipt .print { font-variant-numeric: tabular-nums; }
.receipt .button { margin-top: 1.5rem; width: 100%; }

.honest { margin: 2.5rem 0 0; color: var(--ash); font-size: 0.85rem; }

/* ---------- the gentle opening ----------
   A deciphered PDF or picture arrives under a dark veil that lifts slowly, while the ground
   rises from the void to a dim warm grey, so a white page never hits the eyes at once. */
.viewer { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; background: #070605; transition: background 2.8s ease; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.viewer.open { background: #2b2722; }
.viewer-bar { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 56rem; padding: 14px 14px 10px; color: var(--ash-2); font-size: 0.9rem; }
.viewer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.doc { position: relative; flex: 1; min-height: 0; width: calc(100% - 28px); max-width: 56rem; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.doc::after { content: ""; position: absolute; inset: 0; background: #070605; opacity: 1; pointer-events: none; transition: opacity 2.6s cubic-bezier(0.55, 0, 0.35, 1) 0.25s; }
.viewer.open .doc::after { opacity: 0; }
.doc iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.doc img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-foot { max-width: 56rem; margin: 10px 14px 14px; color: var(--ash); font-size: 0.8rem; text-align: center; }
body.viewing { overflow: hidden; }

/* ---------- the footer ---------- */
.about { max-width: 34rem; margin: 0 auto 1rem; text-align: left; }
.about summary { cursor: pointer; text-align: center; list-style: none; padding: 0.5rem; min-height: 44px; }
.about summary::-webkit-details-marker { display: none; }
.about summary:hover { color: var(--page); }
.about p { margin: 0 0 0.8em; font-size: 0.85rem; letter-spacing: 0; line-height: 1.6; }
.made { margin: 0; }

.foot { padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); text-align: center; color: var(--ash); font-size: 0.8rem; letter-spacing: 0.04em; }

/* ---------- the front page ---------- */
.bare .wordmark { font-size: 1.4rem; margin-bottom: 1rem; }
.bare .wordmark .mark { width: 26px; height: 26px; }
.bare .what { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; color: var(--ash-2); margin: 1.5rem 0 1rem; }
.bare .story { max-width: 34rem; margin: 0 auto; text-align: left; font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; color: var(--page); }
.bare .story p { margin: 0 0 1em; }
.bare .story .how { margin-top: 1.4em; font-family: var(--sans); font-size: 0.9em; color: var(--ash-2); }
.bare .link-note { margin-top: 2rem; }

@media (min-width: 700px) {
  .page { padding-top: 3rem; }
  .title { font-size: 2.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .breathe, .card-file.busy > svg { animation: none; }
  .files li { animation: none; }
  .lit::before, .lit::after, .lit .mark, .state-line { transition-duration: 0.01s; }
  .doc::after, .viewer { transition-duration: 0.01s; transition-delay: 0s; }
}

/* The glow (23 Oct, Markus): the field that wants attention gets a soft halo, in the colour of the
   page's light: amber while filling in, green once something has arrived. Important notes glow too. */
:root { --glow: 212, 161, 72; }
.received { --glow: 124, 168, 118; }
@keyframes glow-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(var(--glow), 0.5), 0 0 18px 1px rgba(var(--glow), 0.24), 0 0 46px 4px rgba(var(--glow), 0.10); }
  50% { box-shadow: 0 0 0 1px rgba(var(--glow), 0.65), 0 0 26px 3px rgba(var(--glow), 0.34), 0 0 64px 8px rgba(var(--glow), 0.15); }
}
.glow-field:focus, .glow-field.wants, .wants {
  outline: none; border-color: rgba(var(--glow), 0.75);
  animation: glow-breathe 3.6s ease-in-out infinite;
}
.glow-note {
  position: relative; padding-left: 18px; color: #ecdcb8;
  text-shadow: 0 0 14px rgba(var(--glow), 0.45);
}
.glow-note::before {
  content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%;
  background: rgb(var(--glow)); box-shadow: 0 0 10px 2px rgba(var(--glow), 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .glow-field:focus, .glow-field.wants, .wants { animation: none; box-shadow: 0 0 0 1px rgba(var(--glow), 0.6), 0 0 22px 2px rgba(var(--glow), 0.28); }
}

.pass:focus, .writing:focus { border-color: rgba(var(--glow), 0.75); animation: glow-breathe 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pass:focus, .writing:focus { animation: none; } }
.dropzone.wants { border-style: solid; }

/* 23 Oct, second pass (Markus): a finer frame (about half), and more backlight in the black, so
   even an empty page glows faintly (roughly 8–10% at the centre). */
@keyframes glow-breathe {
  0%, 100% { box-shadow: 0 0 9px 0 rgba(var(--glow), 0.26), 0 0 24px 1px rgba(var(--glow), 0.10); }
  50% { box-shadow: 0 0 13px 0 rgba(var(--glow), 0.34), 0 0 32px 3px rgba(var(--glow), 0.14); }
}
@media (prefers-reduced-motion: reduce) {
  .glow-field:focus, .glow-field.wants, .wants { box-shadow: 0 0 11px 0 rgba(var(--glow), 0.3); }
}
.lit::before { opacity: calc(0.32 + var(--fill) * 0.68); }

/* Markus's files live in OM space: translucent, softly glowing glass until they are opened;
   once deciphered, a card clears and takes on a little of the page's warmth (back into form). */
@keyframes alive {
  0%, 100% { box-shadow: 0 0 22px rgba(212, 161, 72, 0.09), inset 0 0 18px rgba(243, 238, 228, 0.035); }
  50% { box-shadow: 0 0 30px rgba(212, 161, 72, 0.14), inset 0 0 22px rgba(243, 238, 228, 0.05); }
}
.card-file {
  background: linear-gradient(135deg, rgba(243, 238, 228, 0.07), rgba(212, 161, 72, 0.045));
  color: var(--page);
  border: 1px solid rgba(212, 161, 72, 0.26);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  backdrop-filter: blur(12px) saturate(1.15);
  animation: alive 6s ease-in-out infinite;
  transition: opacity 0.6s, background 1.2s, border-color 1.2s;
}
.card-file > svg { color: var(--saffron); }
.card-file .file-size, .card-file .vfile-line { color: var(--ash-2); }
.card-file .button:not(.view) { background: rgba(212, 161, 72, 0.16); color: #f1dcb0; border-color: rgba(212, 161, 72, 0.55); }
.card-file .button:not(.view):not(:disabled):hover { background: rgba(212, 161, 72, 0.26); }
.card-file .button.secondary { color: var(--page); border-color: rgba(243, 238, 228, 0.3); }
.card-file .button.secondary:not(:disabled):hover { background: rgba(243, 238, 228, 0.06); }
.card-file .button:focus-visible { outline-color: var(--saffron); }
.card-file.open { background: rgba(243, 238, 228, 0.13); border-color: rgba(243, 238, 228, 0.42); animation: none; box-shadow: 0 0 26px rgba(243, 238, 228, 0.08); }
.dropzone { border-width: 1px; }
@media (prefers-reduced-motion: reduce) { .card-file { animation: none; } }

.honest { color: #ecdcb8; }

/* The footer: a section of its own, not run-on text. */
.site-foot {
  margin-top: 4rem;
  border-top: 1px solid rgba(243, 238, 228, 0.08);
  background: linear-gradient(to bottom, rgba(18, 16, 14, 0), rgba(18, 16, 14, 0.7));
  padding: 2.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  color: var(--ash); font-size: 0.85rem;
}
.foot-inner { max-width: 35rem; margin: 0 auto; display: grid; gap: 1.5rem; }
.foot-brand { display: grid; grid-template-columns: auto 1fr; column-gap: 0.6rem; align-items: center; }
.foot-brand .mark { width: 22px; height: 22px; color: var(--saffron); }
.foot-word { font: 400 1.15rem/1 var(--serif); color: var(--page); }
.foot-word b { font-weight: 400; color: var(--saffron); letter-spacing: 0.12em; font-size: 0.86em; margin-left: 1px; }
.foot-brand p { grid-column: 1 / -1; margin: 0.7rem 0 0; color: var(--ash-2); line-height: 1.55; }
.foot-links { display: grid; border-top: 1px solid rgba(243, 238, 228, 0.08); }
.foot-links .about { max-width: none; margin: 0; border-bottom: 1px solid rgba(243, 238, 228, 0.08); }
.foot-links .about summary {
  display: flex; justify-content: space-between; align-items: center; text-align: left;
  padding: 0.85rem 0; min-height: 48px; color: var(--ash-2); font-size: 0.9rem; letter-spacing: 0.02em;
}
.foot-links .about summary::after { content: "+"; color: var(--saffron); font-size: 1.1rem; transition: transform 0.3s; }
.foot-links .about[open] summary::after { transform: rotate(45deg); }
.foot-links .about[open] summary { color: var(--page); }
.foot-links .about p { color: var(--ash-2); font-size: 0.88rem; line-height: 1.65; }
.foot-links .about p:last-child { margin-bottom: 1.1rem; }
.foot-base {
  max-width: 35rem; margin: 0 auto; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.75rem; letter-spacing: 0.05em; color: var(--ash);
}

/* The wordmark wakes when the page opens: a soft glow rises over two seconds, then settles,
   in the colour of the page's light (amber, or green once something has arrived). The small mark
   beside it is 15% larger (Markus, 23 Oct). */
@keyframes word-wake {
  0% { text-shadow: 0 0 0 rgba(var(--glow), 0); }
  55% { text-shadow: 0 0 22px rgba(var(--glow), 0.55), 0 0 6px rgba(var(--glow), 0.35); }
  100% { text-shadow: 0 0 18px rgba(var(--glow), 0.40), 0 0 5px rgba(var(--glow), 0.22); }
}
@keyframes mark-wake {
  0% { filter: drop-shadow(0 0 0 rgba(var(--glow), 0)); }
  55% { filter: drop-shadow(0 0 9px rgba(var(--glow), 0.75)); }
  100% { filter: drop-shadow(0 0 7px rgba(var(--glow), 0.55)); }
}
.wordmark { animation: word-wake 2.4s ease-out 0.2s both; }
.wordmark .mark { animation: mark-wake 2.4s ease-out 0.2s both; }
@media (prefers-reduced-motion: reduce) {
  .wordmark, .wordmark .mark { animation: none; }
  .wordmark { text-shadow: 0 0 16px rgba(var(--glow), 0.30); }
}
.wordmark .mark { width: 23px; height: 23px; }
.bare .wordmark .mark { width: 30px; height: 30px; }

/* ---------- the eclipse and the wordmark (23 Oct 2026, Markus) ----------
   CIPHER◉M in Avenir Next ultra light, spaced capitals; the O is the eclipse, as tall as the
   capitals. The corona breathes; the small point draws in as the glow swells (push and pull). */
@keyframes corona {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(var(--glow), 0.55)) drop-shadow(0 0 12px rgba(var(--glow), 0.22)); }
  50% { filter: drop-shadow(0 0 6px rgba(var(--glow), 0.85)) drop-shadow(0 0 22px rgba(var(--glow), 0.40)); }
}
@keyframes point-pull {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(0.3); opacity: 0.55; }
}
.mark, .wm .o { color: #ecc987; overflow: visible; animation: corona 5.5s ease-in-out infinite; }
.mark.breathe, .wm .o.breathe { animation: corona 5.5s ease-in-out infinite; }
.pull { transform-box: fill-box; transform-origin: center; animation: point-pull 5.5s ease-in-out infinite; }
.received .mark, .received .wm .o { color: #b4cdab; }

.wm {
  display: inline-flex; align-items: baseline; font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
  font-weight: 200; font-size: 22px; line-height: 1; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--page); text-shadow: 0 0 16px rgba(var(--glow), 0.22);
  animation: word-wake 2.4s ease-out 0.2s both;
}
.wm .o {
  --cap: 0.708em; flex: none; width: calc(var(--cap) / 0.876); height: calc(var(--cap) / 0.876);
  margin: 0 0.24em 0 0.02em; transform: translateY(calc((var(--cap) / 0.876 - var(--cap)) / 2));
}
.wm .wm-last { margin-right: -0.3em; }
@media (prefers-reduced-motion: reduce) {
  .mark, .wm .o, .mark.breathe, .wm .o.breathe { animation: none; filter: drop-shadow(0 0 5px rgba(var(--glow), 0.7)) drop-shadow(0 0 16px rgba(var(--glow), 0.3)); }
  .pull, .wm { animation: none; }
}
.wordmark .wm { font-size: 20px; }
.bare .wordmark .wm { font-size: 30px; }
.foot-brand .wm { font-size: 18px; grid-column: 1 / -1; }
.foot-brand { grid-template-columns: 1fr; }

/* The corona floats (Markus, 23 Oct): about 10% more glow, with a faint outer haze. */
@keyframes corona {
  0%, 100% { filter: drop-shadow(0 0 3.5px rgba(var(--glow), 0.6)) drop-shadow(0 0 14px rgba(var(--glow), 0.26)) drop-shadow(0 0 34px rgba(var(--glow), 0.08)); }
  50% { filter: drop-shadow(0 0 7px rgba(var(--glow), 0.92)) drop-shadow(0 0 26px rgba(var(--glow), 0.46)) drop-shadow(0 0 52px rgba(var(--glow), 0.14)); }
}
@media (prefers-reduced-motion: reduce) {
  .mark, .wm .o, .mark.breathe, .wm .o.breathe { filter: drop-shadow(0 0 5.5px rgba(var(--glow), 0.75)) drop-shadow(0 0 18px rgba(var(--glow), 0.34)) drop-shadow(0 0 40px rgba(var(--glow), 0.1)); }
}

/* ---------- the landing page, in the eclipse's voice (23 Oct) ----------
   No heading under the wordmark; Avenir throughout (the book serif stays only for a person's name). */
.page.bare { justify-content: flex-start; padding-top: 3.5rem; }
.bare .mark.big { width: 132px; height: 132px; margin: 0 auto 2rem; }
.bare .wordmark { margin-bottom: 1.6rem; }
.bare .wordmark .wm { font-size: 30px; }
.bare .lead { max-width: 30rem; margin: 0 auto 0.9rem; font: 300 1.3rem/1.55 "Avenir Next", Avenir, var(--sans); color: var(--page); }
.bare .tagline { margin: 0 auto 2.8rem; font: 400 0.8rem/1.4 "Avenir Next", Avenir, var(--sans); letter-spacing: 0.28em; text-transform: uppercase; color: #ecdcb8; text-shadow: 0 0 14px rgba(var(--glow), 0.45); }
.bare .steps { list-style: none; padding: 0; margin: 0 auto 3rem; max-width: 35rem; display: grid; gap: 12px; text-align: left; }
.bare .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; background: rgba(243, 238, 228, 0.035); border: 1px solid rgba(243, 238, 228, 0.08); border-radius: 14px; padding: 16px 18px; }
.bare .steps span { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(var(--glow), 0.6); color: #ecdcb8; font-size: 13px; box-shadow: 0 0 12px rgba(var(--glow), 0.25); }
.bare .steps b { font: 500 1rem/1.4 "Avenir Next", Avenir, var(--sans); color: var(--page); }
.bare .steps em { font-style: normal; color: var(--ash-2); font-size: 0.92rem; line-height: 1.55; }
.bare .story { max-width: 35rem; margin: 0 auto; text-align: left; font: 400 1rem/1.7 "Avenir Next", Avenir, var(--sans); color: var(--ash-2); }
.bare .story .eyebrow { margin: 1.8rem 0 0.5rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--saffron); }
.bare .story .eyebrow:first-child { margin-top: 0; }
.bare .story em { color: var(--page); }
.bare .link-note { max-width: 35rem; margin: 2.6rem auto 0; text-align: left; font-size: 0.95rem; }
.until.glow-note, #until-opened.glow-note { display: inline-block; text-align: left; }
.bare .steps em, .bare .link-note, .site-foot { font-family: "Avenir Next", Avenir, var(--sans); }

/* How safe it is: plain claims, each with a small lit point; the limits glow, said as plainly. */
.bare .safe { max-width: 35rem; margin: 0 auto 2.6rem; text-align: left; font: 400 0.98rem/1.65 "Avenir Next", Avenir, var(--sans); color: var(--ash-2); }
.bare .safe .eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--saffron); margin: 0 0 0.9rem; }
.bare .safe ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.bare .safe li { position: relative; padding-left: 20px; }
.bare .safe li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--glow), 0.9); box-shadow: 0 0 8px 1px rgba(var(--glow), 0.45); }
.bare .safe b { color: var(--page); font-weight: 500; }
.bare .safe .limits { margin: 1.4rem 0 0; font-size: 0.95rem; line-height: 1.6; }
.bare .safe .limits b { color: #f3e6c8; font-weight: 500; }
.bare .safe .limits { padding-left: 20px; }

/* "Open the vault": a thin glowing outline that fills with light, left to right, over about two
   seconds; pressable once full. */
#open.charge {
  position: relative; isolation: isolate; overflow: hidden;
  background: transparent; color: var(--page); border: 1px solid rgba(var(--glow), 0.6);
  box-shadow: 0 0 9px rgba(var(--glow), 0.26), 0 0 24px 1px rgba(var(--glow), 0.10);
  transition: color 0.5s ease 1.6s, border-color 0.6s; animation: appear 0.5s ease;
}
#open.charge::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(212, 161, 72, 0.55), #d4a148 55%, #e8c27a);
  transform: scaleX(0); transform-origin: left; transition: transform 2s cubic-bezier(0.45, 0, 0.25, 1);
}
#open.charge.charging::before { transform: scaleX(1); }
#open.charge.charged { color: var(--void); border-color: rgba(var(--glow), 0.9); cursor: pointer; }
#open.charge:disabled { opacity: 1; cursor: default; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #open.charge::before { transition-duration: 0.3s; } #open.charge { transition-delay: 0s; animation: none; } }
#lock-intro { margin-bottom: 1rem; }

/* The six panes: one word each, lighting amber as each holds a real word; progress toward "Open". */
.panes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 10px; }
.pane {
  min-width: 0; height: 50px; padding: 0 12px; text-align: center; font: 400 16px/1 "Avenir Next", Avenir, var(--sans);
  letter-spacing: 0.04em; color: var(--page); background: rgba(37, 33, 28, 0.6);
  border: 1px solid rgba(140, 132, 120, 0.35); border-radius: 12px; transition: border-color 0.5s, box-shadow 0.5s, background 0.5s;
}
.pane::placeholder { color: rgba(140, 132, 120, 0.6); }
.pane:focus { outline: none; border-color: rgba(var(--glow), 0.6); }
.pane.lit { border-color: rgba(var(--glow), 0.75); background: rgba(var(--glow), 0.07); box-shadow: 0 0 10px rgba(var(--glow), 0.28), 0 0 26px 1px rgba(var(--glow), 0.10); }
.pane.wants { animation: glow-breathe 3.6s ease-in-out infinite; }
.pass-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.pass-tools .toggle { min-height: 36px; padding: 0 14px; }
.linkish { background: none; border: 0; padding: 6px 0; color: var(--ash-2); font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(140, 132, 120, 0.5); cursor: pointer; }
.linkish:hover { color: var(--page); }
@media (prefers-reduced-motion: reduce) { .pane.wants { animation: none; } }

/* Word by word: checking (a soft pulse), right (green, then fading to grey so the eye moves on),
   wrong or not a word (red, until it is changed), locked (red, dimmed). */
.pane { transition: border-color 0.6s, box-shadow 0.8s, background 0.8s, color 0.8s; }
@keyframes checking { 0%, 100% { border-color: rgba(var(--glow), 0.35); } 50% { border-color: rgba(var(--glow), 0.85); } }
.pane.checking { animation: checking 0.9s ease-in-out infinite; }
.pane.ok { border-color: rgba(124, 168, 118, 0.95); background: rgba(124, 168, 118, 0.12); box-shadow: 0 0 12px rgba(124, 168, 118, 0.45), 0 0 28px 2px rgba(124, 168, 118, 0.16); color: #d8ead2; }
.pane.done { border-color: rgba(140, 132, 120, 0.25); background: rgba(37, 33, 28, 0.35); box-shadow: none; color: var(--ash); transition-duration: 1.4s; }
.pane.bad, .pane.notword, .pane.locked { border-color: rgba(229, 154, 140, 0.95); background: rgba(229, 154, 140, 0.08); box-shadow: 0 0 12px rgba(229, 154, 140, 0.35); color: #f3d9d3; }
.pane.locked { opacity: 0.6; }
.lock .status.error { color: #f0b6aa; text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .pane.checking { animation: none; } }

.pane::-webkit-calendar-picker-indicator, .pane::-webkit-list-button { display: none !important; opacity: 0; }

/* The button's birth is drawn on a canvas (ether.js); the old left-to-right sweep is retired. Once
   formed, it rests as softly shimmering gold. */
#open.charge::before { display: none; }
#open.charge { transition: color 0.9s ease, border-color 0.9s ease, box-shadow 0.9s ease; }
#open.charge canvas.ether { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; border-radius: inherit; pointer-events: none; }
#open.charge.near { color: var(--void); }
@keyframes formed { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
#open.charge.charged {
  background: linear-gradient(100deg, #d4a148, #e8c27a 40%, #f0d49a 50%, #e8c27a 60%, #d4a148) 0% 50% / 220% 100%;
  animation: formed 7s ease-in-out infinite; border-color: rgba(240, 212, 154, 0.9);
  box-shadow: 0 0 14px rgba(var(--glow), 0.40), 0 0 34px 2px rgba(var(--glow), 0.16);
}
#open.charge.charged canvas.ether { opacity: 0; transition: opacity 0.8s ease; }
@media (prefers-reduced-motion: reduce) {
  #open.charge { transition: background 0.6s ease, color 0.6s ease; }
  #open.charge.near { background: #d4a148; }
  #open.charge.charged { animation: none; }
}

/* ---------- the landing page's two parts: files, and gatherings (3 Dec 2026) ---------- */
.bare .eyebrow.part { max-width: 35rem; margin: 0 auto 0.9rem; text-align: left; font-size: 0.72rem; letter-spacing: 0.2em; }
.bare .steps + .eyebrow.part { margin-top: 0.4rem; }
.bare .part-lead, .bare .water { max-width: 35rem; margin: 0 auto 1.2rem; text-align: left; font: 400 1rem/1.65 "Avenir Next", Avenir, var(--sans); color: var(--ash-2); }
.bare .part-lead { color: var(--page); }
.bare .steps:has(+ .water) { margin-bottom: 1.4rem; }
.bare .invited { max-width: 35rem; margin: 0 auto 3rem; text-align: left; font: 400 0.95rem/1.6 "Avenir Next", Avenir, var(--sans); color: var(--ash); }
