/* JARVIA — receção pública. White, clean — but not empty: a hint of the
   house ice-blue for depth. */
:root {
  --paper: #ffffff;
  --ink: #1d1d1f;
  --muted: #55555a;        /* darkened from #86868b — was ~3.5:1, now ~8.4:1 on white */
  --line: #d2d2d7;
  --line-strong: #b8b8bd;
  --fill: #f7f7f8;         /* Apple-control-style field fill, not pure white */
  --accent: #004c6c;
  --error: #b00020;
  --display-size: clamp(3rem, 12vw, 7rem);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { color-scheme: light; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* barely-there — felt more than seen, still reads as a white page */
  background: radial-gradient(ellipse 900px 520px at 50% 6%, rgba(211, 236, 248, .55), transparent 70%),
    var(--paper);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

/* --- landing: the wordmark is the page --- */
.hero { text-align: center; animation: rise .7s ease-out both; }
.wordmark {
  font-size: var(--display-size);
  font-weight: 700;
  letter-spacing: .07em;
  text-indent: .07em;      /* optically re-centers tracked caps */
  line-height: 1.05;
}
.wordmark .accent-letters {
  color: var(--accent);
  transition: color .3s ease;
}
.acronym {
  margin-top: 1.5rem;
  font-size: clamp(.62rem, 1.6vw, .82rem);
  letter-spacing: .18em;
  text-indent: .18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.9;
}
.acronym .virtual {
  display: inline-block;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.5em;      /* matches .cyc — static word, same scale as the live one */
  letter-spacing: .01em;
}
.acronym .cyc {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.5em;      /* the one live element on the page — let it read as one */
  letter-spacing: .01em;
  white-space: nowrap;   /* keep the two words from wrapping onto separate lines */
  perspective: 500px;
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: opacity .18s ease, transform .18s ease, filter .18s ease, color .3s ease;
}
.acronym .cyc.leave {
  opacity: 0;
  transform: scale(.85);
  filter: blur(5px);
}
.acronym .cyc .word {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 100%;
  transform: rotateX(-85deg);
  animation: cycWordFlip .55s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes cycWordFlip {
  0%   { opacity: 0; transform: rotateX(-85deg); }
  100% { opacity: 1; transform: rotateX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .acronym .cyc { transition: none; filter: none; }
  .acronym .cyc .word { animation: none; opacity: 1; transform: none; }
}
.actions {
  margin-top: clamp(3rem, 8vh, 5rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.75rem;
  border-radius: 980px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease,
    transform .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--fill); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
}

/* --- form pages: same canvas, one narrow card --- */
.stage { width: 100%; max-width: 440px; animation: rise .7s ease-out both; }
.stage.center { text-align: center; }

.brand {
  position: absolute;
  top: 1.75rem;
  left: 2rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-decoration: none;
  color: var(--ink);
}
.brand.inline {
  position: static;
  display: inline-block;
  margin-top: 2.5rem;
  font-size: .72rem;
  color: var(--muted);
}
.brand:hover, .brand.inline:hover { color: var(--accent); }
.stage h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.015em;
}
.stage .lead {
  margin-top: .5rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}
.erro {
  color: var(--error);
  font-size: .88rem;
  font-weight: 600;
  margin: 1.1rem 0 0;
}

/* the form itself sits in a hairline card — Apple grouped-list style,
   still plain white, gives fields somewhere to visually belong */
form {
  margin-top: 2rem;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
}
.field { margin-bottom: 1.35rem; }
.field:last-of-type { margin-bottom: 0; }
label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: .4rem;
}
label .opt { font-weight: 400; color: var(--muted); }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fill);
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  padding: .8rem .9rem;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
input::placeholder, textarea::placeholder { color: #9a9a9f; }
input:focus, textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 76, 108, .12);
}
textarea { resize: vertical; min-height: 3.2em; }
.key { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
button {
  width: 100%;
  min-height: 46px;
  margin-top: 1.6rem;
  padding: 0 .9rem;
  border: 1px solid var(--ink);
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
button:hover { background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
button:active { transform: scale(.98); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 480px) {
  .brand { left: 1.25rem; top: 1.25rem; }
  main { align-items: flex-start; padding-top: 20vh; padding-bottom: 3rem; }
  form { padding: 1.4rem; border-radius: 16px; }
}
@media (max-height: 640px) {
  main { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .actions { margin-top: clamp(1.5rem, 5vh, 3rem); }
}
