@font-face {
  font-family: Inter;
  src: url('/shared/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #08090b;
  --foreground: #f5f6f8;
  --muted-foreground: #969aa6;
  --dot: #ffffff19;
  --surface: #111318;
  --surface-strong: #171a22;
  --surface-hover: #1b1e27;
  --line: #ffffff17;
  --line-strong: #9da3ff66;
  --accent: #aeb3ff;
  --accent-soft: #6871f42e;
  --glass: #ffffff11;
  --glass-strong: #ffffff1a;
  --glass-highlight: #ffffff3d;
  --button: #ffffff16;
  --button-foreground: #f7f8fb;
  --ring: #9299ff;
  --danger: #ff9892;
  --visual-fade: #08090b;
  --shadow-deep: 0 58px 140px #000000e6, 0 18px 48px #000000b8, 0 0 0 1px #6871f424;
  --shell-width: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --background: #f7f7f4;
    --foreground: #17181b;
    --muted-foreground: #626671;
    --dot: #17181b24;
    --surface: #ffffff;
    --surface-strong: #f3f3f8;
    --surface-hover: #f0f1f7;
    --line: #1519241c;
    --line-strong: #5962d75c;
    --accent: #4d56c9;
    --accent-soft: #6871f41f;
    --glass: #ffffff8a;
    --glass-strong: #ffffffb8;
    --glass-highlight: #ffffffed;
    --button: #ffffffad;
    --button-foreground: #17181b;
    --ring: #4d56c9;
    --danger: #a82626;
    --visual-fade: #f7f7f4;
    --shadow-deep: 0 48px 120px #15182a40, 0 12px 34px #15182a26, 0 0 0 1px #5962d71f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; overflow-x: clip; background: var(--background); }
body {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background:
    radial-gradient(circle at 68% 34%, var(--accent-soft), transparent 32rem),
    radial-gradient(circle, var(--dot) 1px, transparent 1.25px),
    var(--background);
  background-size: auto, 28px 28px, auto;
  background-position: center, center, center;
  color: var(--foreground);
  font: 400 15px/1.5 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: none;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }

.site-header {
  width: min(var(--shell-width), calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}
.brand { position: relative; display: inline-flex; min-height: 50px; padding: 6px 17px 6px 7px; align-items: center; gap: 11px; border-radius: 17px; background: linear-gradient(135deg, var(--glass-highlight), transparent 42%), var(--glass); box-shadow: inset 0 1px 0 #ffffff42, inset 0 -1px 0 #00000038, 0 18px 50px #00000032; backdrop-filter: blur(20px) saturate(145%); text-decoration: none; transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease); }
.brand:hover { transform: translateY(-1px); background-color: var(--glass-strong); box-shadow: inset 0 1px 0 #ffffff59, inset 0 -1px 0 #00000038, 0 22px 58px #0000003f; }
.brand-mark { position: relative; width: 37px; height: 37px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: linear-gradient(145deg, #ffffff2b, #00000033); box-shadow: inset 0 1px 0 #ffffff5c, inset 0 -1px 0 #0000004d, 0 7px 18px #00000052; }
.brand-mark::after { content: ''; position: absolute; inset: 1px 5px auto; height: 42%; border-radius: 999px; background: linear-gradient(#ffffff42, transparent); pointer-events: none; }
.brand img { width: 31px; height: 31px; filter: contrast(1.08); }
.brand-word { font-size: 15px; font-weight: 700; letter-spacing: -.035em; }

.hero { flex: 1; display: grid; place-items: center; padding: 38px 24px 76px; }
.hero-inner { position: relative; isolation: isolate; width: min(var(--shell-width), 100%); min-height: min(640px, calc(100dvh - 230px)); display: grid; grid-template-columns: minmax(360px, .78fr) minmax(520px, 1.22fr); align-items: center; gap: clamp(28px, 4vw, 62px); }
.hero-copy { position: relative; z-index: 2; padding-left: clamp(0px, 2vw, 28px); }
.hero h1 { margin: 0; color: var(--foreground); font-size: clamp(66px, 7.3vw, 104px); line-height: .88; font-weight: 760; letter-spacing: -.075em; text-shadow: 0 18px 60px #0000007d; }
.hero p { max-width: 455px; margin: 28px 0 0; color: var(--muted-foreground); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; text-wrap: balance; }
.hero .button { margin-top: 34px; }
.hero-visual { position: relative; min-width: 0; margin: 0; aspect-ratio: 1.18; align-self: stretch; overflow: hidden; -webkit-mask-image: radial-gradient(ellipse 76% 72% at 54% 50%, #000 44%, #000c 68%, transparent 100%); mask-image: radial-gradient(ellipse 76% 72% at 54% 50%, #000 44%, #000c 68%, transparent 100%); filter: drop-shadow(0 46px 80px #00000080); }
.hero-visual::before { content: ''; position: absolute; z-index: 2; inset: 0; background: radial-gradient(circle at 48% 40%, transparent 28%, color-mix(in srgb, var(--visual-fade) 22%, transparent) 68%, color-mix(in srgb, var(--visual-fade) 84%, transparent) 100%), linear-gradient(90deg, color-mix(in srgb, var(--visual-fade) 80%, transparent) 0%, transparent 30%, transparent 78%, color-mix(in srgb, var(--visual-fade) 38%, transparent) 100%); pointer-events: none; }
.hero-visual::after { content: ''; position: absolute; z-index: 3; inset: 8% 8%; border-radius: 50%; background: radial-gradient(circle at 39% 25%, #ffffff15, transparent 29%); mix-blend-mode: screen; filter: blur(12px); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 55% 50%; transform: scale(1.08); filter: contrast(1.08) saturate(.82); }

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 29px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--glass-highlight), transparent 46%), var(--button);
  color: var(--button-foreground);
  box-shadow: inset 0 1px 0 #ffffff66, inset 0 -1px 0 #00000042, 0 18px 55px #00000052, 0 0 0 1px #ffffff12;
  backdrop-filter: blur(22px) saturate(150%);
  font: 600 14px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease), box-shadow 180ms var(--ease);
}
.button:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #ffffff80, inset 0 -1px 0 #00000042, 0 24px 66px #00000066, 0 0 0 1px #ffffff21; }
.button:active { transform: scale(.98); }
.button.full { width: 100%; }

.site-footer {
  width: min(var(--shell-width), calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 23px;
  color: var(--muted-foreground);
  font-size: 12px;
}
.footer-links { display: flex; gap: 23px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--foreground); }

dialog.chooser {
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 36px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff1f, transparent 38%), #111318d9;
  color: var(--foreground);
  box-shadow: inset 0 1px 0 #ffffff42, 0 58px 150px #000000e6, 0 0 0 1px #ffffff16;
  backdrop-filter: blur(28px) saturate(140%);
}
dialog.chooser::backdrop { background: #020307c9; backdrop-filter: blur(5px); }
dialog.chooser[open] { animation: appear 180ms var(--ease); }
@keyframes appear { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: none; } }
.kicker { margin: 0 0 15px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chooser h2 { margin: 0; font-size: 25px; font-weight: 650; letter-spacing: -.04em; }
.chooser .hint { margin: 7px 0 25px; color: var(--muted-foreground); font-size: 14px; }
.choice {
  display: flex;
  min-height: 82px;
  margin-top: 10px;
  padding: 15px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 11px;
  background: #ffffff09;
  box-shadow: inset 0 1px 0 #ffffff12, 0 0 0 1px #ffffff10;
  text-decoration: none;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.choice-primary { background: linear-gradient(140deg, var(--accent-soft), transparent 65%), #ffffff0d; box-shadow: inset 0 1px 0 #ffffff26, 0 0 0 1px #8990ff42; }
.choice:hover { background-color: #ffffff12; transform: translateY(-2px); }
.choice strong { display: block; font-size: 15px; font-weight: 650; }
.choice small { display: block; margin-top: 4px; color: var(--muted-foreground); font-size: 12px; }
.choice span[aria-hidden] { color: var(--accent); font-size: 18px; }
.close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--muted-foreground); font-size: 20px; cursor: pointer; }
.close:hover { color: var(--foreground); background: var(--surface-hover); }

.auth { flex: 1; display: grid; place-items: center; padding: 70px 20px 112px; }
.auth-card {
  width: min(420px, 100%);
  padding: 36px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--glass-highlight), transparent 42%), color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: inset 0 1px 0 #ffffff45, 0 38px 110px #00000073, 0 0 0 1px #ffffff13;
  backdrop-filter: blur(28px) saturate(140%);
}
.auth-card h1 { margin: 0; font-size: clamp(32px, 4vw, 39px); line-height: 1.1; font-weight: 650; letter-spacing: -.055em; }
.auth-card .lead { margin: 11px 0 30px; color: var(--muted-foreground); font-size: 15px; }
.auth-card .alt { display: block; margin-top: 20px; color: var(--muted-foreground); font-size: 13px; text-align: center; }
.auth-card .alt a:hover { color: var(--foreground); }
.notice { margin: 0 0 18px; padding: 11px 13px; border-left: 2px solid var(--ring); background: var(--surface-strong); font-size: 13px; }
.notice.error { border-left-color: var(--danger); color: var(--danger); }
.switch { margin: 28px 0 0; padding-top: 21px; border-top: 1px solid var(--line); color: var(--muted-foreground); font-size: 13px; text-align: center; }
.switch a { color: var(--foreground); text-decoration: none; }
.switch a:hover { text-decoration: underline; }

.legal { flex: 1; width: min(720px, 100%); margin: 0 auto; padding: 8px 16px 80px; }
.legal h1 { margin: 8px 0 4px; font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.legal h2 { margin: 36px 0 8px; font-size: 18px; font-weight: 600; }
.legal p, .legal li { color: var(--muted-foreground); }
.legal ul { padding-left: 20px; }
.legal .meta { color: var(--muted-foreground); font-size: 13px; }
.legal mark { padding: 0 3px; border-radius: 3px; background: #f4d83f; color: #111; }

@media (max-width: 480px) {
  .site-header { width: calc(100% - 32px); min-height: 72px; }
  .brand { min-height: 46px; padding: 5px 15px 5px 6px; border-radius: 15px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
  .hero { padding: 22px 20px 70px; }
  .hero-inner { min-height: calc(100dvh - 190px); display: block; }
  .hero-copy { position: relative; z-index: 3; padding: 78px 0 0; }
  .hero h1 { font-size: clamp(66px, 19vw, 80px); line-height: .88; }
  .hero p { max-width: 320px; margin-top: 22px; font-size: 17px; }
  .hero .button { margin-top: 28px; }
  .hero-visual { position: absolute; z-index: 1; width: 118%; height: 62%; right: -30%; bottom: -1%; opacity: .72; filter: drop-shadow(0 30px 60px #00000085); }
  .hero-visual::before { background: linear-gradient(180deg, var(--visual-fade) 0%, transparent 30%, color-mix(in srgb, var(--visual-fade) 24%, transparent) 65%, color-mix(in srgb, var(--visual-fade) 88%, transparent) 100%), linear-gradient(90deg, color-mix(in srgb, var(--visual-fade) 84%, transparent) 0%, transparent 45%); }
  .hero-visual img { object-position: 54% 50%; transform: scale(1.16); }
  .hero p { margin-top: 24px; }
  .auth { padding: 50px 16px 80px; }
  .auth-card { width: min(100%, 370px); padding: 31px 24px; border-radius: 15px; }
  .site-footer { width: calc(100% - 32px); min-height: 68px; }
  dialog.chooser { padding: 33px 22px 24px; border-radius: 15px; }
}

/* Restrained public entry composition. */
body {
  background: radial-gradient(ellipse 48% 44% at 50% 43%, #34498618, transparent 100%), var(--background);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) .7px, transparent .9px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 65% 65% at 50% 47%, #0009, transparent 100%);
}
.site-header { min-height: 100px; }
.brand, .brand:hover {
  min-height: 40px; padding: 0; gap: 10px; background: none;
  box-shadow: none; backdrop-filter: none; transform: none;
}
.brand-mark { width: 32px; height: 32px; border-radius: 10px; box-shadow: inset 0 1px 0 #ffffff24, 0 4px 12px #00000024; }
.brand-mark::after { content: none; }
.brand img { width: 27px; height: 27px; }
.brand-word { font-weight: 550; font-size: 15px; letter-spacing: -.025em; }
.hero { padding: 24px 24px 68px; text-align: center; }
.hero-inner { width: 100%; min-height: 0; display: block; }
.hero-copy { padding: 0; }
.hero h1 { font-size: clamp(48px, 4.3vw, 62px); font-weight: 500; line-height: 1.1; letter-spacing: -.055em; text-shadow: none; }
.hero-emblem { position: relative; isolation: isolate; display: grid; place-items: center; width: 104px; height: 104px; margin: 0 auto 30px; border-radius: 29px; background: linear-gradient(145deg, #dbe8ff16, #759aff06 55%, #ffffff09); box-shadow: inset 0 1px 0 #ffffff4a, inset 0 -1px 0 #ffffff0a, 0 0 0 1px #c1d6ff12, 0 20px 50px #00000045; backdrop-filter: blur(18px); }
.hero-emblem::before { content: ''; position: absolute; z-index: -1; inset: -75px; border-radius: 50%; background: radial-gradient(circle, #5b83ec24, #4967bc09 48%, transparent 70%); pointer-events: none; }
.hero-emblem::after { content: ''; position: absolute; inset: 1px; border-radius: 28px; background: linear-gradient(150deg, #ffffff10, transparent 38%, #ffffff02 65%, transparent); pointer-events: none; }
.hero-emblem img { width: 64px; height: 64px; opacity: .9; filter: drop-shadow(0 2px 1px #00000080); }
.hero p { max-width: none; margin: 20px auto 0; font-size: 16px; font-weight: 400; line-height: 1.6; letter-spacing: -.015em; text-wrap: balance; }
.hero .hero-button {
  margin-top: 34px; min-height: 46px; padding: 0 28px; border-radius: 12px;
  font-size: 12px; font-weight: 550; letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(160deg, #ffffff14, #ffffff03), color-mix(in srgb, var(--surface) 50%, transparent);
  box-shadow: inset 0 1px 0 #ffffff33, inset 0 0 0 1px #ffffff0d, 0 8px 24px #00000026;
  backdrop-filter: blur(18px);
}
.hero .hero-button:hover { background-color: var(--glass); transform: translateY(-1px); }
.site-footer { min-height: 72px; font-size: 12px; opacity: .8; }
@media (prefers-color-scheme: light) {
  .hero-emblem { background: linear-gradient(145deg, #ffffffd9, #e4ebf7a0); box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px #8a9bbc26, 0 18px 42px #314f7d14; }
  .hero-emblem img { filter: brightness(.65) drop-shadow(0 1px 0 #ffffff); }
  dialog.chooser { background: linear-gradient(145deg, #ffffffcc, #ffffff80), var(--surface); }
  .hero .hero-button { box-shadow: inset 0 1px 0 #ffffff, inset 0 0 0 1px #17181b12, 0 8px 24px #17181b0d; }
}
@media (max-width: 600px) {
  .site-header { min-height: 84px; width: calc(100% - 48px); }
  .hero { padding: 24px 24px 64px; }
  .hero-inner { min-height: 0; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: 48px; }
  .hero-emblem { width: 92px; height: 92px; border-radius: 26px; margin-bottom: 27px; }
  .hero-emblem img { width: 58px; height: 58px; }
  .hero p { max-width: 300px; font-size: 15px; margin-top: 18px; }
  .hero .hero-button { margin-top: 30px; }
  .site-footer { width: calc(100% - 48px); }
}

/* Alternate: original artwork suspended in circular glass. */
.hero-emblem {
  width: 106px; height: 106px; border-radius: 50%; margin-bottom: 30px;
  background: radial-gradient(circle at 30% 16%, #d8e6ff1c, transparent 58%), linear-gradient(160deg, #14223970, #080d1690);
  box-shadow: inset 0 1px 0 #e1edff66, inset 0 -1px 0 #5c82ca26, 0 0 0 1px #b6cbff18, 0 14px 36px #00000045, 0 0 48px #487adc0a;
}
.hero-emblem::before { inset: -100px; background: radial-gradient(ellipse, #547dd929, #365da90a 42%, transparent 69%); }
.hero-emblem::after { inset: 8px; border-radius: 50%; background: linear-gradient(145deg, #ffffff05, transparent 55%); box-shadow: inset 0 0 0 1px #d2e2ff0c; }
.emblem-art {
  display: block; width: 65px; height: 65px; border-radius: 50%;
  background: url('/site/logo-original.jpeg') center / 230% auto no-repeat;
  filter: invert(1); mix-blend-mode: screen; opacity: .82;
}
.hero .hero-button { border-radius: 999px; padding-inline: 31px; background: linear-gradient(170deg, #c6dbff1c, #bdceee05), color-mix(in srgb, var(--surface) 50%, transparent); }
@media (prefers-color-scheme: light) {
  .hero-emblem { background: radial-gradient(circle at 30% 16%, #fff, #e3ebf780); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 #5c82ca26, 0 0 0 1px #6782ab22, 0 14px 36px #314f7d10; }
  .emblem-art { filter: none; mix-blend-mode: multiply; opacity: .65; }
}
@media (max-width: 600px) {
  .hero-emblem { width: 94px; height: 94px; }
  .emblem-art { width: 58px; height: 58px; }
}

/* Typography polish; emblem geometry and finish remain unchanged. */
.hero h1 {
  letter-spacing: -.035em;
  font-weight: 480;
  color: #e9edf5;
  background: linear-gradient(180deg, #ffffff 15%, #dbe1ee 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { margin-top: 18px; font-size: 15px; letter-spacing: .01em; color: #a0a7b5; }
.hero .hero-button { font-size: 11px; font-weight: 500; letter-spacing: .17em; }
@media (prefers-color-scheme: light) {
  .hero h1 { background-image: linear-gradient(180deg, #171b24, #424c60); }
  .hero p { color: #626b7b; }
}

/* Expanded product composition, preserving the approved emblem. */
.public-home {
  background: radial-gradient(ellipse 55% 40% at 50% 34%, #314c8720, transparent 90%), radial-gradient(ellipse 55% 18% at 50% 78%, #344f8520, transparent), var(--background);
}
.public-home .hero { padding: 32px 24px 36px; }
.public-home .hero-inner { max-width: 1060px; }
.public-home .hero h1 { font-size: clamp(48px, 4.3vw, 62px); font-weight: 460; letter-spacing: -.045em; }
.public-home .hero .hero-button {
  position: relative; min-height: 48px; min-width: 172px; margin-top: 28px;
  background: linear-gradient(160deg, #cfdefd26, #a6c5ff08 60%), color-mix(in srgb, var(--surface) 60%, transparent);
  box-shadow: inset 0 1px 0 #e2edff66, inset 0 -1px 0 #ffffff0a, 0 0 0 1px #c4d5ff14, 0 8px 24px #00000038, 0 0 36px #557fc710;
  font-size: 12px; letter-spacing: .14em;
}
.workspace-preview { margin: 64px auto 0; text-align: left; }
.workspace-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 4px 17px; color: var(--muted-foreground); font-size: 12px; }
.workspace-caption > :first-child { letter-spacing: .17em; font-size: 11px; color: var(--accent); }
.workspace-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.workspace-item { position: relative; overflow: hidden; padding: 25px 24px 26px; border-radius: 18px; background: linear-gradient(145deg, #c9d9ff09, #ffffff02 70%), color-mix(in srgb,var(--surface) 45%,transparent); box-shadow: inset 0 1px 0 #c3d7ff1c, 0 12px 40px #0000000a; }
.workspace-number { color: var(--accent); font-size: 11px; letter-spacing: .1em; opacity: .85; }
.workspace-item h2 { margin: 20px 0 10px; font-size: 17px; font-weight: 500; letter-spacing: -.025em; color: var(--foreground); }
.hero .workspace-item p { margin: 0; font-size: 14px; line-height: 1.7; letter-spacing: 0; text-wrap: initial; color: var(--muted-foreground); }
@media (prefers-color-scheme: light) {
  .workspace-item { background: linear-gradient(145deg,#ffffffb3,#ffffff52); box-shadow: inset 0 1px 0 #fff, 0 10px 30px #25477708; }
}
@media (max-width: 760px) {
  .public-home .hero { padding-top: 32px; }
  .workspace-preview { margin-top: 48px; max-width: 480px; }
  .workspace-caption { align-items: flex-start; flex-direction: column; gap: 7px; padding-bottom: 18px; }
  .workspace-grid { grid-template-columns: 1fr; gap: 10px; }
  .workspace-item { padding: 20px 22px; }
  .workspace-item h2 { margin-top: 12px; }
  .hero .workspace-item p { max-width: none; }
}

/* Minimal light study: no secondary content or changes to the emblem. */
.public-home {
  background:
    radial-gradient(ellipse 32% 35% at 50% 43%, #4267a81b, transparent 100%),
    radial-gradient(ellipse 55% 8% at 50% 69%, #526ca518, transparent 100%),
    var(--background);
}
.public-home .hero { padding: 24px 24px 68px; }
.public-home .hero .hero-button {
  overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, #d6e5ff1a, #a8c4ff03 48%, #ffffff08), color-mix(in srgb, var(--surface) 50%, transparent);
  box-shadow: inset 0 1px 0 #e2edff50, inset 0 -1px 0 #ffffff08, 0 0 0 1px #c4d5ff10, 0 8px 24px #00000025;
}
.public-home .hero-button::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 15%, #e0eaff15 36%, transparent 54%);
  transform: translateX(-12%); transition: transform 350ms ease;
}
.public-home .hero-button:hover::before { transform: translateX(24%); }
@media (max-width: 760px) {
  .public-home .hero { padding: 24px 24px 64px; }
}

/* Founder experiment: oversized approved emblem behind the wordmark. */
.oversized-emblem .brand-stage { position: relative; isolation: isolate; display: grid; place-items: center; width: min(440px, 76vw); aspect-ratio: 1; margin: 0 auto; }
.oversized-emblem .hero-emblem { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; margin: 0; }
.oversized-emblem .emblem-art { width: 66%; height: 66%; opacity: .45; }
.oversized-emblem .hero-emblem::before { inset: -75px; }
.oversized-emblem .hero-emblem::after { inset: 8%; }
.oversized-emblem .hero h1 { position: relative; font-size: clamp(64px, 7.5vw, 108px); font-weight: 500; letter-spacing: -.055em; background: none; -webkit-text-fill-color: currentColor; color: #f5f7fc; text-shadow: 0 3px 5px #030711b3, 0 12px 32px #000000e6, 0 0 60px #00000099; }
.oversized-emblem .hero p { position: relative; margin-top: 27px; font-size: 16px; letter-spacing: .01em; }
.oversized-emblem .hero .hero-button { margin-top: 24px; }
.oversized-emblem .hero { padding-top: 16px; padding-bottom: 30px; }
@media (prefers-color-scheme: light) {
  .oversized-emblem .hero h1 { color: #202b40; text-shadow: 0 3px 5px #ffffffb3, 0 12px 32px #4d648c33, 0 0 40px #ffffff; }
  .oversized-emblem .emblem-art { opacity: .25; }
}
@media (max-width: 600px) {
  .oversized-emblem .brand-stage { width: min(320px, 82vw); }
  .oversized-emblem .hero h1 { font-size: clamp(62px, 20vw, 82px); }
  .oversized-emblem .hero p { font-size: 15px; margin-top: 25px; }
}

/* Reflective wordmark sits beneath, never across the emblem. */
.oversized-emblem .brand-stage { width: min(360px, 70vw); margin-bottom: 24px; }
.oversized-emblem .emblem-art { width: 74%; height: 74%; opacity: .68; }
.oversized-emblem .hero-emblem {
  background: radial-gradient(ellipse at 26% 12%, #ccddff19, transparent 60%), linear-gradient(155deg, #17294355, #080e180a 58%, #24447822);
  box-shadow: inset 0 1px 0 #e1edff60, inset 1px 0 0 #accfff14, inset 0 -1px 0 #729ef933, 0 20px 65px #00000030;
  backdrop-filter: none;
}
.oversized-emblem .hero-emblem::after {
  content: ''; inset: 6%; padding: 1px; border-radius: 50%; box-shadow: none;
  background: conic-gradient(from 215deg, #9abbff08, #bed8ff30 65deg, #eaf4ff88 103deg, #a8cfff12 155deg, #8aaaff08 240deg, #8fbbff40 290deg, #9abbff08);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.oversized-emblem .hero-emblem::before { inset: -100px; background: radial-gradient(ellipse at 50% 52%, #648fe42b, #416cb410 38%, transparent 67%); }
.oversized-emblem .hero h1 {
  margin: 0; font-size: clamp(54px, 5.2vw, 74px); font-weight: 470; letter-spacing: -.04em;
  background: linear-gradient(168deg, #fcfdff 8%, #dce6f6 32%, #9daec8 49%, #eef4ff 56%, #b7c8e2 76%, #8399bb 100%);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 1px #00000040) drop-shadow(0 5px 20px #7799dd12);
}
.oversized-emblem .hero p { margin-top: 12px; font-size: 15px; color: #aab7ce; letter-spacing: .02em; }
@media (prefers-color-scheme: light) {
  .oversized-emblem .hero h1 { background-image: linear-gradient(168deg, #152438 8%, #435772 40%, #203451 56%, #526988 100%); filter: none; }
  .oversized-emblem .hero p { color: #53647b; }
  .oversized-emblem .emblem-art { opacity: .5; }
}
@media (max-width: 600px) {
  .oversized-emblem .brand-stage { width: min(280px, 72vw); margin-bottom: 24px; }
  .oversized-emblem .hero h1 { font-size: 58px; }
  .oversized-emblem .hero p { font-size: 14px; margin-top: 10px; letter-spacing: .01em; }
}

/* The approved silver-blue identity continues through the entry flow. */
.entry-emblem { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 0 29px; border-radius: 50%; background: radial-gradient(circle at 40% 32%, #dceaff10, #1829420a 72%); box-shadow: inset 0 1px 0 #d5e5ff3a, 0 0 44px #729dff12; }
.entry-emblem .emblem-art { width: 43px; height: 43px; }
.chooser .entry-emblem { margin: 0 auto 24px; }
.chooser .kicker, .chooser h2 { text-align: center; }
.chooser h2 { margin-bottom: 29px; }
dialog.chooser, .auth-card { background: linear-gradient(145deg, #b9d4ff0f, transparent 52%), #10141ded; box-shadow: inset 0 1px 0 #d9e6ff35, 0 38px 100px #00000085, 0 0 0 1px #b8d0ff12; }
dialog.chooser { width: min(450px, calc(100vw - 32px)); padding: 36px; }
.chooser h2, .auth-card h1 { font-weight: 480; letter-spacing: -.035em; color: #e5edf9; }
.chooser h2 { font-size: 27px; line-height: 1.2; margin-bottom: 27px; }
.auth-card h1 { font-size: 32px; line-height: 1.18; }
.auth-card { width: min(440px, 100%); padding: 38px; }
.auth-card .kicker, .chooser .kicker { color: #aabbd6; font-size: 10px; font-weight: 500; letter-spacing: .16em; margin-bottom: 11px; }
.choice, .choice-primary { background: linear-gradient(145deg, #cee0ff08, #ffffff02); box-shadow: inset 0 1px 0 #d9e6ff1d, 0 0 0 1px #d0dfff08; border-radius: 14px; }
.choice:hover { background-color: #a9c8ff12; }
.choice strong { font-weight: 520; letter-spacing: -.01em; }
.choice span[aria-hidden] { color: #aec3e5; }
.close { width: 40px; height: 40px; top: 12px; right: 12px; border-radius: 50%; }
.auth-card .button { border-radius: 999px; min-height: 48px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(155deg, #d6e5ff1a, #a8c4ff03 48%, #ffffff08), #151b26; box-shadow: inset 0 1px 0 #e2edff50, inset 0 -1px 0 #ffffff08, 0 8px 24px #00000025; }
.auth-card .button:hover { transform: translateY(-1px); }
.auth-card .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.auth-card:has([data-continue][hidden]) .notice:not(.error) { display: none; }
.auth-card .alt .button { letter-spacing: .1em; }
.auth-card .switch { border: 0; padding-top: 0; margin-top: 28px; line-height: 1.7; }
.notice { border-radius: 8px; line-height: 1.6; }
@media (prefers-color-scheme: light) {
  dialog.chooser, .auth-card { background: linear-gradient(145deg, #fff, #f1f5fbeF); box-shadow: inset 0 1px 0 #fff, 0 30px 90px #23375520, 0 0 0 1px #42628f15; }
  .chooser h2, .auth-card h1 { color: #25354c; }
  .auth-card .kicker, .chooser .kicker, .choice span[aria-hidden] { color: #536984; }
  .choice, .choice-primary { background: #ffffff80; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #526c9020; }
  .choice:hover { background-color: #e1ebfa; }
  .auth-card .button { background: linear-gradient(155deg, #fff, #e0e9f5); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #42628f20, 0 8px 24px #2337550d; }
}
@media (max-width: 600px) {
  dialog.chooser, .auth-card { padding: 28px 24px; }
  .auth { padding: 36px 20px 64px; }
  .auth-card h1 { font-size: 29px; }
  .chooser h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Type (founder, 2026-10-01): Inter, as on the landing pages; headings heavy and tight like the
   landing-page headlines. */
.legal h1 { font-weight: 800; letter-spacing: -.045em; }

/* Homepage matches the sign-in and the dashboard (founder, 2026-10-01), turned up a notch the
   same day ("amplify it a little, add some faint changes"): graphite page, a stronger coral,
   violet and slate glow that drifts slowly, visible grain, a soft vignette, a faint orbit around
   the emblem, a charcoal card with one coral corner, silver pill button. Always dark, like
   signin.css, so the light-scheme rules above do not apply to the homepage. */
html:has(.public-home) { background: #0b0c0d; color-scheme: dark; }
body.public-home {
  color-scheme: dark;
  --background: #0b0c0d; --foreground: #f1f1ee; --muted-foreground: #a3a5aa;
  --surface: #141518; --surface-strong: #1b1c20; --surface-hover: #1b1c20;
  --line: rgb(255 255 255 / .08); --accent: #a3a5aa; --ring: #a3a5aa; --visual-fade: #0b0c0d;
  --glass: rgb(255 255 255 / .05); --glass-strong: rgb(255 255 255 / .09);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background: #0b0c0d; color: #f1f1ee;
}
body.public-home::before { content: none; }

.public-home .si-atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; box-shadow: inset 0 0 220px 40px rgb(0 0 0 / .55); }
.public-home .si-atmos::before {
  content: ""; position: absolute; left: 50%; top: -16%; width: min(1320px, 160vw); height: 92vh; transform: translateX(-50%); filter: blur(38px);
  background:
    radial-gradient(ellipse 40% 52% at 34% 46%, rgb(150 80 64 / .62), transparent 70%),
    radial-gradient(ellipse 38% 50% at 68% 38%, rgb(86 68 120 / .66), transparent 70%),
    radial-gradient(ellipse 62% 58% at 50% 64%, rgb(47 58 74 / .66), transparent 74%);
  animation: home-drift 26s ease-in-out infinite alternate;
}
.public-home .si-atmos::after {
  content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .12; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(#000 0%, #000 60%, transparent 95%); mask-image: linear-gradient(#000 0%, #000 60%, transparent 95%);
}
.public-home .si-atmos i { position: absolute; left: 50%; bottom: -20%; width: min(1000px, 130vw); height: 44vh; transform: translateX(-50%); filter: blur(40px); background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(86 68 120 / .3), rgb(47 58 74 / .2) 45%, transparent 72%); }
@keyframes home-drift {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-48%) translateY(1.5%) scale(1.04); }
  100% { transform: translateX(-52%) translateY(-1%) scale(1.02); }
}
.public-home .site-header, .public-home .hero, .public-home .site-footer { position: relative; z-index: 1; }

/* Emblem: artwork unchanged, its halo and rim lose the blue, and a faint orbit turns round it. */
body.public-home .hero-emblem {
  background: radial-gradient(ellipse at 26% 12%, rgb(255 255 255 / .1), transparent 60%), linear-gradient(155deg, rgb(255 255 255 / .05), rgb(255 255 255 / .01) 58%, rgb(255 255 255 / .03));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .24), inset 0 -1px 0 rgb(255 255 255 / .06), 0 0 0 1px rgb(255 255 255 / .07), 0 24px 70px rgb(0 0 0 / .4);
}
body.public-home .hero-emblem::before { background: radial-gradient(ellipse at 50% 52%, rgb(150 80 64 / .22), rgb(86 68 120 / .14) 40%, transparent 67%); }
body.public-home .hero-emblem::after { background: conic-gradient(from 215deg, rgb(255 255 255 / .02), rgb(255 255 255 / .14) 65deg, rgb(255 255 255 / .42) 103deg, rgb(255 255 255 / .05) 155deg, rgb(255 255 255 / .02) 240deg, rgb(255 255 255 / .18) 290deg, rgb(255 255 255 / .02)); }
body.public-home .emblem-art { filter: invert(1); mix-blend-mode: screen; opacity: .7; }
.public-home .brand-stage::before,
.public-home .brand-stage::after { content: ""; position: absolute; z-index: -2; border-radius: 50%; pointer-events: none; }
.public-home .brand-stage::before { inset: -9%; border: 1px solid rgb(255 255 255 / .05); -webkit-mask-image: linear-gradient(#000 30%, transparent 92%); mask-image: linear-gradient(#000 30%, transparent 92%); }
.public-home .brand-stage::after {
  inset: -9%; padding: 1px;
  background: conic-gradient(from 0deg, transparent 0deg, rgb(232 190 170 / .35) 40deg, transparent 90deg, transparent 200deg, rgb(190 175 230 / .28) 240deg, transparent 290deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: home-orbit 48s linear infinite;
}
@keyframes home-orbit { to { transform: rotate(1turn); } }

/* Wordmark set like the landing-page headlines (heavy Inter, tight), tagline small and spaced,
   both in warm silver. */
body.public-home.oversized-emblem .hero h1 {
  font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: clamp(68px, 7.4vw, 108px); line-height: .95; letter-spacing: -.058em;
  background-image: linear-gradient(172deg, #fbfaf7 10%, #e6e3dc 38%, #a9a7a3 54%, #f2efe9 62%, #c9c6c0 82%, #8f8d8a 100%);
  filter: drop-shadow(0 2px 1px rgb(0 0 0 / .35)) drop-shadow(0 8px 28px rgb(150 80 64 / .2));
}
body.public-home.oversized-emblem .hero p {
  margin-top: 18px; color: #b3b1ac; font-size: 12.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
}
body.public-home .hero p::before,
body.public-home .hero p::after { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 14px; vertical-align: middle; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .28)); }
body.public-home .hero p::after { background: linear-gradient(90deg, rgb(255 255 255 / .28), transparent); }

/* Get started: the silver pill, as on sign-in, with an arrow that steps forward on hover */
body.public-home .hero .hero-button {
  min-height: 48px; min-width: 0; margin-top: 34px; padding: 0 26px 0 30px; gap: 10px; border-radius: 999px; overflow: visible;
  background: linear-gradient(180deg, #fbfaf6, #e6e4de); color: #0c0d0e; backdrop-filter: none;
  font: 600 15px/1 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.005em; text-transform: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 0 0 1px rgb(255 255 255 / .1), 0 14px 34px -14px rgb(0 0 0 / .95), 0 0 46px -6px rgb(150 80 64 / .35);
}
body.public-home .hero .hero-button::after { content: "→" / ""; font-size: 16px; transition: transform 220ms var(--ease); }
body.public-home .hero .hero-button:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 0 0 1px rgb(255 255 255 / .14), 0 18px 40px -14px rgb(0 0 0 / .95), 0 0 60px -4px rgb(150 80 64 / .45); }
body.public-home .hero .hero-button:hover::after { transform: translateX(3px); }
body.public-home .hero-button::before { content: none; }

/* A soft rise on load, one piece after another */
@keyframes home-rise { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.public-home .brand-stage { animation: home-rise 900ms var(--ease) 60ms backwards; }
.public-home .hero h1 { animation: home-rise 900ms var(--ease) 180ms backwards; }
.public-home .hero p { animation: home-rise 900ms var(--ease) 280ms backwards; }
.public-home .hero .hero-button { animation: home-rise 900ms var(--ease) 380ms backwards; }

.public-home .brand-word { font-weight: 700; letter-spacing: -.03em; }
.public-home .site-footer { letter-spacing: .01em; }

/* The Continue-as pop-up is the sign-in card */
body.public-home dialog.chooser {
  background: radial-gradient(circle at 100% 0%, rgb(150 80 64 / .24), transparent 44%), radial-gradient(circle at 0% 100%, rgb(86 68 120 / .16), transparent 46%), #141518;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), 0 1px 0 rgb(255 255 255 / .06) inset, 0 40px 90px -36px rgb(0 0 0 / .9);
  backdrop-filter: none; border-radius: 26px;
}
body.public-home dialog.chooser::backdrop { background: rgb(8 9 11 / .72); backdrop-filter: blur(6px); }
body.public-home .chooser h2 { font-size: 30px; font-weight: 800; letter-spacing: -.045em; line-height: 1.1; color: #f1f1ee; }
body.public-home .chooser .kicker { color: #8d8f95; font-weight: 500; letter-spacing: .24em; }
body.public-home .chooser .entry-emblem { background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
/* The split (founder, 2026-10-01: "change the way the sign in splits are"): two doors side by
   side. Client is the warm side (coral), Team the cool side (violet), the same as on sign-in. */
body.public-home dialog.chooser { width: min(580px, calc(100vw - 32px)); }
body.public-home .chooser h2 { margin-bottom: 26px; }
.public-home .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.public-home .choice {
  --tint: 150 80 64;
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
  min-height: 212px; margin: 0; padding: 20px 20px 18px; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 0% 0%, rgb(var(--tint) / .2), transparent 60%), #1a1b1f;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), inset 0 1px 0 rgb(255 255 255 / .05);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background-color 220ms var(--ease);
}
body.public-home .choice-team { --tint: 86 68 120; }
body.public-home .choice::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(120% 100% at 0% 0%, rgb(var(--tint) / .32), transparent 65%);
  transition: opacity 260ms var(--ease);
}
body.public-home .choice:hover, body.public-home .choice:focus-visible {
  transform: translateY(-3px); background-color: #1d1e23;
  box-shadow: inset 0 0 0 1px rgb(var(--tint) / .55), inset 0 1px 0 rgb(255 255 255 / .08), 0 22px 44px -22px rgb(0 0 0 / .9), 0 0 40px -14px rgb(var(--tint) / .7);
}
body.public-home .choice:hover::before, body.public-home .choice:focus-visible::before { opacity: 1; }
body.public-home .choice .choice-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #f1f1ee;
  background: linear-gradient(160deg, rgb(var(--tint) / .55), rgb(var(--tint) / .2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), inset 0 0 0 1px rgb(255 255 255 / .06), 0 8px 20px -8px rgb(var(--tint) / .8);
}
.public-home .choice-text { display: block; margin-top: 22px; }
body.public-home .choice strong { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
body.public-home .choice small { margin-top: 6px; font-size: 13px; line-height: 1.45; color: #a3a5aa; }
body.public-home .choice .choice-go {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  color: #d9d7d2; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.public-home .choice-go i { font-style: normal; letter-spacing: 0; transition: transform 220ms var(--ease); }
body.public-home .choice:hover .choice-go i { transform: translateX(3px); }
body.public-home .close:hover { background: rgb(255 255 255 / .08); }

@media (max-width: 600px) {
  body.public-home.oversized-emblem .hero h1 { font-size: 66px; }
  body.public-home.oversized-emblem .hero p { font-size: 11px; letter-spacing: .2em; }
  body.public-home.oversized-emblem .hero p { max-width: none; white-space: nowrap; }
  body.public-home .hero p::before, body.public-home .hero p::after { content: none; }
  .public-home .si-atmos { box-shadow: inset 0 0 120px 20px rgb(0 0 0 / .5); }
  .public-home .choices { grid-template-columns: 1fr; gap: 10px; }
  body.public-home .choice { min-height: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 14px; padding: 16px; }
  .public-home .choice-text { margin-top: 0; }
  body.public-home .choice .choice-go { margin-top: 0; padding-top: 0; font-size: 0; }
  .public-home .choice-go i { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .public-home .si-atmos::before, .public-home .brand-stage::after, .public-home .brand-stage, .public-home .hero h1, .public-home .hero p, .public-home .hero .hero-button { animation: none !important; }
}

/* Returning visitor (option 2): the quiet link to the other side under the button */
.public-home .hero-switch { margin-top: 18px; color: #8d8f95; font-size: 13.5px; animation: home-rise 900ms var(--ease) 460ms backwards; }
.public-home .hero-switch a { color: #d9d7d2; text-underline-offset: 3px; text-decoration-color: rgb(217 215 210 / .45); }
.public-home .hero-switch a:hover { color: #fff; text-decoration-color: currentColor; }
@media (prefers-reduced-motion: reduce) { .public-home .hero-switch { animation: none !important; } }
