/* Virtual Accountant dashboards and public page.
   Deep indigo glass theme shared with the website widget. Fonts are served by
   this Worker (/fonts/*); no third-party stylesheet or font service is used. */
@font-face {
  font-family: "VA Sora";
  src: url("/fonts/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "VA Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #080822;
  --bg-2: #0e0e38;
  --ink: #eef0ff;
  --soft: #d5d9fb;
  --muted: #a7abd8;
  --faint: #8387bd;
  --violet: #7c6cff;
  --purple: #a78bfa;
  --cyan: #67e8f9;
  --teal: #5eead4;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --glass: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.085),
    rgba(255, 255, 255, 0.03)
  );
  --grad: linear-gradient(90deg, #a78bfa, #7da2ff 55%, #67e8f9);
  --grad-btn: linear-gradient(135deg, #8b7bff 0%, #5b4bf0 55%, #3f8fe0 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --head:
    "VA Sora", "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --body:
    "VA Inter", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
/* The page background sits on the root so the network canvas shows above it. */
html {
  background:
    radial-gradient(1100px 760px at 88% -12%, #1d1a66 0%, transparent 60%),
    radial-gradient(900px 700px at -12% 42%, #14124d 0%, transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  background-attachment: fixed;
}
body {
  margin: 0;
  min-height: 100vh;
  font-size: 15.5px;
  line-height: 1.6;
  overflow-x: hidden;
}
#network {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  pointer-events: none;
  animation: drift 28s ease-in-out infinite alternate;
}
body::before {
  top: -18vmax;
  right: -12vmax;
  background: radial-gradient(
    closest-side,
    rgba(79, 70, 229, 0.42),
    transparent
  );
}
body::after {
  bottom: -22vmax;
  left: -16vmax;
  background: radial-gradient(
    closest-side,
    rgba(14, 116, 144, 0.3),
    transparent
  );
  animation-duration: 36s;
  animation-direction: alternate-reverse;
}
@keyframes drift {
  to {
    transform: translate(-7vmax, 5vmax) scale(1.12);
  }
}
svg {
  flex: none;
}
a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 42, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font: 600 18px/1.2 var(--head);
  letter-spacing: -0.015em;
}
.brand small {
  display: block;
  margin-top: 3px;
  font: 500 11px/1 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 700 17px/1 var(--head);
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #4f6ff5 55%, #22b8e6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 26px -10px rgba(124, 108, 255, 0.9);
}
.mark span {
  color: #c9fbff;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--soft);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

/* ---------- Layout and navigation ---------- */
.layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  max-width: 1500px;
  min-height: 78vh;
  margin: auto;
  padding: 28px clamp(16px, 4vw, 40px) 40px;
}
nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
nav:empty {
  display: none;
}
nav:empty + main {
  grid-column: 1 / -1;
}
nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font: 500 14.5px/1.2 var(--body);
  justify-content: flex-start;
  text-align: left;
}
nav button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
nav button span {
  pointer-events: none;
}
nav button:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}
nav button.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(
    120deg,
    rgba(109, 92, 246, 0.55),
    rgba(59, 107, 234, 0.35)
  );
  border-color: rgba(160, 200, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
nav button.active svg {
  color: var(--cyan);
}
main {
  min-width: 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  font-family: var(--head);
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  margin: 14px 0 14px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 14px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 8px;
}
p {
  margin: 0 0 1em;
  color: var(--soft);
  max-width: 72ch;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cfd2ff;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}
.note {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Surfaces ---------- */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: 22px;
  margin-top: 26px;
  align-items: start;
}
.card,
.hero,
.preview,
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass), rgba(11, 11, 46, 0.62);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 60px -34px rgba(3, 3, 25, 0.9);
}
/* Cursor spotlight on glass surfaces. */
.card,
.feature,
.hero,
.preview {
  position: relative;
  isolation: isolate;
}
.card::before,
.feature::before,
.hero::before,
.preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  background: radial-gradient(
    440px circle at var(--mx, 50%) var(--my, 50%),
    rgba(124, 108, 255, 0.22),
    transparent 55%
  );
}
.card:hover::before,
.feature:hover::before,
.hero:hover::before,
.preview:hover::before {
  opacity: 1;
}
.card {
  padding: 24px;
  margin-bottom: 22px;
}
.card > :last-child,
.hero > :last-child {
  margin-bottom: 0;
}
fieldset {
  margin: 0 0 20px;
  padding: 18px 20px 4px;
  box-shadow: none;
  background: rgba(6, 6, 36, 0.35);
  min-width: 0;
}
legend {
  padding: 0 8px;
  font: 600 14px/1 var(--head);
  color: var(--purple);
}
fieldset > small {
  display: block;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  counter-reset: steps;
}
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  line-height: 1.5;
  font-weight: 500;
}
.steps li:first-child {
  border-top: 0;
}
.steps li::before {
  content: counter(steps);
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font: 600 14px/1 var(--head);
  color: #fff;
  background: linear-gradient(
    145deg,
    rgba(124, 108, 255, 0.6),
    rgba(103, 232, 249, 0.25)
  );
  border: 1px solid var(--line-strong);
}
.steps small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.metric {
  display: block;
  font: 600 38px/1.1 var(--head);
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric + p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.entry {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.entry:first-of-type {
  border-top: 0;
  padding-top: 4px;
}
.entry h2,
.entry h3 {
  margin: 0 0 6px;
}
.entry p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entry > button,
.entry > .button,
article > button {
  margin: 4px 8px 4px 0;
}
/* Row actions stay quiet so each card has one clear primary action. */
.entry > button:not(.danger),
article > button:not(.danger) {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
  box-shadow: none;
}
.entry > button:not(.danger):hover,
article > button:not(.danger):hover {
  background: rgba(255, 255, 255, 0.14);
}
.card > button + p,
.card > .button + p {
  margin-top: 14px;
}
.empty {
  padding: 26px 0;
  color: var(--muted);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow: auto;
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(4, 4, 28, 0.7);
  color: #d8faff;
  font:
    13px/1.7 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
details > summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 600;
  color: var(--soft);
  border-radius: 8px;
}
details[open] > summary {
  margin-bottom: 10px;
  color: var(--ink);
}
#notice:not(:empty) {
  margin-bottom: 20px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: linear-gradient(
    150deg,
    rgba(251, 191, 36, 0.16),
    rgba(124, 108, 255, 0.1)
  );
  color: #fde68a;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* ---------- Practice knowledge ---------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.ok {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.5);
}
.pill.info {
  color: #a5f3fc;
  border-color: rgba(103, 232, 249, 0.5);
}
.pill.warn {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.55);
  white-space: normal;
}
.excerpt {
  font-size: 13.5px;
  color: var(--muted);
}
.entry.editing {
  margin: 0 -12px;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(103, 232, 249, 0.6);
  background: rgba(103, 232, 249, 0.07);
}
.drop {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.drop.over {
  border-color: var(--cyan);
  background: rgba(103, 232, 249, 0.1);
}

/* ---------- Buttons ---------- */
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #fff;
  font: 600 14.5px/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 10px 28px -12px rgba(124, 108, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.25s,
    border-color 0.25s;
}
button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px -12px rgba(124, 108, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
button:active,
.button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}
.quiet {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: none;
}
.quiet:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
  box-shadow: none;
}
.danger:hover {
  background: rgba(239, 68, 68, 0.24);
  box-shadow: none;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
form > button {
  margin: 4px 8px 4px 0;
}

/* ---------- Forms ---------- */
label {
  display: block;
  margin-bottom: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--soft);
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(6, 6, 36, 0.6);
  color: var(--ink);
  font: 400 15.5px/1.4 var(--body);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
}
input:hover,
textarea:hover,
select:hover {
  border-color: rgba(167, 139, 250, 0.7);
}
select option {
  background: #14143f;
  color: var(--ink);
}
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}
textarea[rows="18"] {
  font:
    13px/1.6 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
input[type="checkbox"] {
  display: inline-block;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0 10px 0 0;
  padding: 0;
  vertical-align: -4px;
  accent-color: var(--violet);
}
input[type="color"] {
  height: 46px;
  width: 96px;
  padding: 5px;
  cursor: pointer;
}
input[type="file"] {
  padding: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: 600 13px var(--body);
  cursor: pointer;
}
label small {
  display: block;
  margin-top: 7px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
}
.row > .card {
  align-self: stretch;
}

/* ---------- Public page and sign-in ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 56px);
  background:
    radial-gradient(
      620px circle at 100% 0,
      rgba(124, 108, 255, 0.34),
      transparent 60%
    ),
    radial-gradient(
      520px circle at 0 100%,
      rgba(34, 184, 230, 0.2),
      transparent 60%
    ),
    var(--glass), rgba(11, 11, 46, 0.5);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  margin: 18px 0;
}
.hero p {
  max-width: 54ch;
  margin-bottom: 26px;
  font-size: 17.5px;
  color: #dfe2ff;
}
.hero .button {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 16px;
}
.launcher-demo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 6px;
  height: 58px;
  padding: 0 26px 0 20px;
  border-radius: 999px;
  color: #fff;
  font: 600 16px/1 var(--head);
  background: linear-gradient(
    100deg,
    #8b5cf6 0%,
    #5b4bf0 30%,
    #2f6fed 62%,
    #16a9d6 100%
  );
  background-size: 220% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 0 0 2px rgba(160, 225, 255, 0.55),
    0 0 44px -6px rgba(92, 122, 255, 0.95);
  animation:
    flow 9s ease-in-out infinite alternate,
    breathe 3.8s ease-in-out infinite;
}
.launcher-demo svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero .caption {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
@keyframes flow {
  to {
    background-position: 100% 0;
  }
}
@keyframes breathe {
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 0 0 2px rgba(160, 225, 255, 0.8),
      0 0 60px 0 rgba(92, 122, 255, 1);
  }
}
.section-title {
  margin: 44px 0 6px;
  font-size: clamp(22px, 2.6vw, 30px);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 22px 0 8px;
}
.feature {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(125, 170, 255, 0.4);
  background: linear-gradient(
    150deg,
    rgba(64, 104, 220, 0.3),
    rgba(32, 36, 120, 0.26)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 40px -18px rgba(92, 92, 255, 0.9);
}
.feature svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #e6f6ff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  margin: 14px 0 6px;
  font-size: 17px;
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--soft);
}
.feature.alt {
  border-color: rgba(232, 121, 249, 0.42);
  background: linear-gradient(
    150deg,
    rgba(134, 74, 214, 0.36),
    rgba(64, 32, 128, 0.3)
  );
}
.feature.plain {
  border-color: var(--line-strong);
  background: var(--glass);
}

/* ---------- Practice overview preview ---------- */
.preview {
  padding: 26px;
  background:
    radial-gradient(
      420px circle at 100% 0,
      rgba(124, 108, 255, 0.4),
      transparent 60%
    ),
    linear-gradient(165deg, #15145a, #0b0b30);
  border-color: rgba(125, 170, 255, 0.45);
}
.preview p {
  color: var(--soft);
}
.preview small {
  color: var(--muted);
}
.speech {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 16px 16px 16px 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  line-height: 1.6;
}

/* ---------- Utilities ---------- */
.skip {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #0b0b2a;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}
footer {
  padding: 22px clamp(16px, 4vw, 40px) 110px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-align: center;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.28);
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  header {
    padding: 12px 16px;
    gap: 10px;
  }
  .brand {
    font-size: 16px;
    gap: 10px;
  }
  .brand small {
    font-size: 10px;
    letter-spacing: 0.14em;
  }
  .mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 15px;
  }
  .badge {
    padding: 6px 10px;
    font-size: 11px;
  }
  .layout {
    display: block;
    padding: 0 0 30px;
  }
  nav {
    position: sticky;
    top: 63px;
    z-index: 10;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: rgba(10, 10, 42, 0.86);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    scrollbar-width: none;
  }
  nav button {
    width: auto;
    flex: none;
    white-space: nowrap;
    min-height: 42px;
    padding: 8px 14px;
  }
  main {
    padding: 24px 16px 0;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px 18px;
  }
  .row {
    display: block;
  }
  .row > .card {
    margin-bottom: 16px;
  }
}
@media (max-width: 480px) {
  .brand small {
    display: none;
  }
  #logout {
    padding: 8px 14px;
    min-height: 40px;
  }
  button,
  .button {
    width: 100%;
  }
  nav button,
  #logout,
  input[type="file"]::file-selector-button {
    width: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
.entry .note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
/* Text that sits directly on the moving background keeps a dark halo. */
#content > h1,
[data-page-content] > h1,
#content > p,
[data-page-content] > p,
.section-title,
main > .note,
aside > .note,
footer {
  text-shadow:
    0 0 6px var(--bg),
    0 0 16px var(--bg),
    0 0 28px var(--bg);
}

/* ---------- Photographs ---------- */
.hero.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  overflow: visible;
}
.scene {
  position: relative;
  padding: 9% 0 12%;
  perspective: 1100px;
}
.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(160, 200, 255, 0.5);
  background: #0b0b30;
  box-shadow:
    0 30px 70px -28px rgba(2, 2, 22, 0.95),
    0 0 50px -18px rgba(124, 108, 255, 0.8);
}
.shot img,
.person img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Lean towards the pointer; the image slides slightly inside its frame. */
.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.4s;
  will-change: transform;
}
.tilt:hover {
  transition-duration: 0.14s, 0.4s;
}
.tilt img {
  transform: scale(1.07) translate(var(--px, 0px), var(--py, 0px));
  transition:
    transform 0.6s var(--ease),
    opacity 0.9s;
}
.tilt:hover img {
  transform: scale(1.13) translate(var(--px, 0px), var(--py, 0px));
}
.shot.main {
  position: relative;
  width: 86%;
  margin-left: auto;
  aspect-ratio: 3 / 2;
}
.shot.main img {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.shot.main img.on {
  opacity: 1;
}
.shot.main::after,
.person::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    200deg,
    rgba(124, 108, 255, 0.16),
    transparent 45%,
    rgba(8, 8, 34, 0.55)
  );
}
.dots {
  position: absolute;
  left: 57%;
  translate: -50% 0;
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
}
.dots button,
.dots button:hover {
  width: 40px;
  min-height: 0;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
}
.dots button::before {
  content: "";
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.3s;
}
.dots button[aria-pressed="true"]::before {
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.float {
  position: absolute;
  z-index: 2;
  width: 40%;
  aspect-ratio: 3 / 2;
  translate: var(--dx, 0px) var(--dy, 0px);
  transition: translate 0.5s ease-out;
  animation: bob 7s ease-in-out infinite;
}
.float.a {
  left: 0;
  bottom: 0;
  rotate: -5deg;
}
.float.b {
  right: -3%;
  top: 0;
  width: 33%;
  rotate: 4deg;
  animation-delay: -3.5s;
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}
.talk {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 62%;
  padding: 11px 16px;
  border-radius: 16px 16px 16px 5px;
  border: 1px solid rgba(160, 200, 255, 0.5);
  background: rgba(14, 14, 60, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px -18px rgba(2, 2, 22, 0.9);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  translate: var(--dx, 0px) var(--dy, 0px);
  transition: translate 0.5s ease-out;
}
.talk.q {
  left: 6%;
  top: 2%;
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg, #6d5cf6, #3b6bea);
}
.talk.a {
  right: 0;
  bottom: 3%;
  font-size: 13px;
  color: var(--soft);
}
.typing {
  display: inline-flex;
  gap: 4px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: typing 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.section-lead {
  margin: 0;
  font-size: 16.5px;
  text-shadow:
    0 0 6px var(--bg),
    0 0 16px var(--bg);
}
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 24px 0 10px;
}
.person {
  position: relative;
  overflow: hidden;
  height: 330px;
  border-radius: 20px;
  border: 1px solid rgba(160, 200, 255, 0.4);
  background: #0b0b30;
  box-shadow: 0 24px 60px -30px rgba(2, 2, 22, 0.95);
  cursor: default;
}
.person:hover,
.person:focus-visible {
  box-shadow:
    0 28px 60px -24px rgba(2, 2, 22, 0.95),
    0 0 46px -14px rgba(103, 232, 249, 0.75);
}
.person-text {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 44px 18px 16px;
  background: linear-gradient(transparent, rgba(8, 8, 34, 0.94) 46%);
  transform: translateY(calc(100% - 104px));
  transition: transform 0.5s var(--ease);
}
.person:hover .person-text,
.person:focus-visible .person-text,
.person:focus-within .person-text {
  transform: none;
}
.person-text h3 {
  margin: 0 0 8px;
  min-height: 44px;
  font-size: 17px;
  line-height: 1.3;
}
.person-text p {
  margin: 0;
  font-size: 14px;
  color: var(--soft);
}
.photo-note {
  margin-bottom: 0;
}
.shot.banner {
  position: relative;
  margin: -6px -6px 18px;
  aspect-ratio: 16 / 7;
  border-radius: 14px;
}
@media (hover: none) {
  .person-text {
    transform: none;
  }
}
@media (max-width: 900px) {
  .hero.split {
    grid-template-columns: 1fr;
  }
  .scene {
    max-width: 560px;
  }
  .talk {
    font-size: 12.5px;
    padding: 9px 12px;
  }
}
@media (max-width: 480px) {
  .dots button {
    width: 40px;
  }
  .person {
    height: 300px;
  }
}
.float,
.talk {
  pointer-events: none;
}
.person img[src*="shop"] {
  object-position: 8% 50%;
}
.person img[src*="trader"] {
  object-position: 35% 50%;
}

/* Keep automatic photo changes optional for keyboard and pointer users. */
.dots .photo-pause,.dots .photo-pause:hover{width:auto;min-width:88px;padding:0 8px;border-radius:8px;background:#13133e;color:#fff;font-size:12px;white-space:nowrap}
.dots .photo-pause::before{display:none}
