/* The original artwork owns the silhouette, chrome, and proportions.
   Move the whole image without a mesh, recoloring, or morphing. */
html body img[src*="/brand/polarity-symbol-"] {
  object-fit: contain;
  filter: none !important;
  mix-blend-mode: normal;
  -webkit-mask: none !important;
  mask: none !important;
  border-radius: 0;
}
html body .site-shell[data-theme] .polarity-stage {
  filter: none !important;
  mask: none;
  -webkit-mask: none;
  overflow: visible;
}
html body .polarity-stage::before,
html body .polarity-stage::after { display: none; }
.brand-mark { display: grid; place-items: center; width: 100%; height: 100%; isolation: isolate; }
.brand-mark__entry, .brand-mark__metal { position: relative; width: 100%; aspect-ratio: 1; }
.brand-mark .brand-mark__art { display: block; position: static; width: 100%; height: auto; aspect-ratio: 1; opacity: 1; border-radius: 0; animation: none; }
.brand-mark__glint { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg,transparent 38%,rgba(255,255,255,.85) 49%,transparent 60%); background-size: 300% 100%;
  mask: url('/brand/polarity-symbol-768.webp?v=39575f06-clear3') center / contain no-repeat;
  -webkit-mask: url('/brand/polarity-symbol-768.webp?v=39575f06-clear3') center / contain no-repeat; }
.brand-mark[data-ready] .brand-mark__entry { animation: polarityBrandArrival 1800ms cubic-bezier(.4,0,.2,1) both; }
.brand-mark[data-ready] .brand-mark__metal { animation: polarityBrandFloat 7s ease-in-out 1800ms infinite; }
.brand-mark[data-ready] .brand-mark__glint { animation: polarityBrandGlint 2000ms ease-in-out 150ms both; }
@keyframes polarityBrandArrival {
  0% { opacity: .22; transform: translateY(28px) scale(.9); clip-path: inset(0 0 100% 0); }
  60% { opacity: 1; clip-path: inset(0 0 0 0); }
  100% { opacity: 1; transform: translateY(0) scale(1); clip-path: inset(0 0 0 0); }
}
@keyframes polarityBrandGlint { 0% { opacity: 0; background-position: 100% 50%; } 22% { opacity: .7; } 75% { opacity: .5; } 100% { opacity: 0; background-position: 0% 50%; } }
@keyframes polarityBrandFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.brand-mark[data-paused] *, [inert] .brand-mark * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .brand-mark[data-ready] :is(.brand-mark__entry,.brand-mark__metal,.brand-mark__glint) { animation: none; transform: none; clip-path: none; }
  .brand-mark__glint { display: none; }
}
.site-shell[data-pose="ref"] .brand-mark * { animation: none; transform: none; clip-path: none; }

/* One legible lockup, with the exact metal artwork on a transparent canvas. */
html body .brand-lockup { gap: 15px; }
html body .brand-lockup__type { font-family: "Polarity Brand", "Michroma", sans-serif; }
html body .brand-lockup__type :is(strong,span) { font-family: "Polarity Brand", "Michroma", sans-serif !important; font-weight: 400 !important; }
.workspace-brand { display: inline-flex; margin-bottom: 20px; }
html body .brand-lockup > img { width: 56px; height: 56px; flex: 0 0 56px; }
html body .brand-lockup__type strong { font-size: 19px; line-height: 1.3; letter-spacing: .1em; }
html body .brand-lockup__type > span { font-size: 10px; letter-spacing: .4em; line-height: 1.8; }
html body .market__brand img { width: 32px; height: 32px; border-radius: 6px; }
/* Keep adjacent film shadows inside their own slide. */
.site-shell .hero-pager__panel { overflow: hidden; }
.site-shell .mark-contact { display: none; }
.site-shell .mark-atmosphere { opacity: .25; }
.site-shell[data-theme="light"] .mark-atmosphere { display: none; }
html body .owner-gate__panel > img[src*="polarity-symbol"] { width: 96px; height: 96px; object-fit: contain; margin-bottom: 24px; }

@font-face { font-family: "Polarity Brand"; src: url("/brand/michroma-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
html[data-polarity-theme="dark"] {
  color-scheme: dark;
  --bg: #080b10; --paper: #080b10; --ground: #080b10;
  --bg-raised: #111720; --panel: #111720; --bg-sunk: #0b1017;
  --ink: #edf1f6; --text: #edf1f6; --ink2: #c7ced8;
  --muted: #a3afbf; --dim: #a3afbf; --line: #303b49; --rule: #303b49; --rule2: #25303d;
  --line-strong: #6b798c; --chrome: #e4eaf2; --accent: #d1deed; --link: #d1deed;
}
html[data-polarity-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f7; --paper: #f3f5f7; --ground: #f3f5f7;
  --bg-raised: #ffffff; --panel: #ffffff; --bg-sunk: #e9edf2;
  --ink: #19232f; --text: #19232f; --ink2: #354354;
  --muted: #536377; --dim: #536377; --line: #cbd3dd; --rule: #cbd3dd; --rule2: #dde3ea;
  --line-strong: #8a99aa; --chrome: #273b53; --accent: #273b53; --link: #273b53;
}
body[data-polarity-document] { position: relative; padding-top: 104px; background: var(--bg); color: var(--ink); }
body[data-polarity-document] .polarity-page-bar {
  position: absolute; inset: 0 0 auto; width: min(1120px, calc(100% - 48px)); height: 96px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line); font: 500 14px/1.4 "Segoe UI", sans-serif;
}
.polarity-page-brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; min-height: 56px; }
.polarity-page-brand img { display: block; width: 52px; height: 52px; border-radius: 10px; }
.polarity-page-brand > span { font: 400 16px/1.5 "Polarity Brand",sans-serif; letter-spacing: .09em; }
.polarity-page-brand small { display: block; font-size: 8px; letter-spacing: .36em; }
.polarity-page-bar nav { display: flex; align-items: center; gap: 24px; }
.polarity-page-bar nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
html body .polarity-theme-toggle { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; margin: 0; padding: 0; border: 1px solid var(--line,#536377); border-radius: 50%; background: transparent; color: var(--ink,#edf1f6); cursor: pointer; font-size: 20px; }
.polarity-page-bar :is(a,button):focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
body[data-polarity-document] p { color: var(--ink2); }
body[data-polarity-document] :is(.sub,.note,.label,.sign,.eyebrow,.crumb,.muted) { color: var(--muted); }
body[data-polarity-document] .lede { color: var(--ink2); }
body[data-polarity-document] :is(input,textarea,select) { background: var(--bg-raised); color: var(--ink); border-color: var(--line); }
body[data-polarity-document] .back {
  display: inline-flex; align-items: center; justify-content: center; width: fit-content;
  min-height: 44px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 10px;
  background: var(--ink); color: var(--bg);
}
body[data-polarity-document] .back:hover { color: var(--bg); opacity: .85; }
body[data-polarity-document] #f > button { background: var(--ink); color: var(--bg); }
body[data-polarity-document] form button[type="submit"] {
  min-height: 44px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 10px;
  background: var(--ink); color: var(--bg);
}
html body .polarity-app-theme { display: none; position: fixed; right: 24px; top: 24px; z-index: 150; }
body[data-polarity-app]:has(.owner-gate,.install-guide) .polarity-app-theme { display: inline-grid; }
html[data-polarity-theme="light"] .owner-gate { --color-ink: #19232f; --color-muted: #536377; --color-muted-bright: #536377; --color-line: #cbd3dd; background: #f3f5f7; color: #19232f; }
html[data-polarity-theme="light"] .owner-gate__panel { background: #ffffff; border: 1px solid #d4dce5; box-shadow: 0 20px 70px #19232f0d; }
html[data-polarity-theme="light"] .owner-gate input { background: #f7f9fb; color: #19232f; border-color: #bdc9d7; }
html[data-polarity-theme="light"] .owner-gate :is(p,label,h1,h2) { color: inherit; }
/* Quiet form surfaces keep labels and actions legible in both app themes. */
html body[data-polarity-app] .owner-gate { background: var(--bg); }
html body[data-polarity-app] .owner-gate__panel { border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 16px 50px #00000018; }
html body[data-polarity-app] .owner-gate__panel::before,
html body[data-polarity-app] .owner-gate__panel::after { display: none; }
html body[data-polarity-app] .owner-gate input,
html body[data-polarity-app] .owner-gate textarea,
html body[data-polarity-app] .owner-gate select {
  box-shadow: none; border: 1px solid var(--line); background: var(--bg-raised); color: var(--ink);
}
html body[data-polarity-app] .owner-gate .depth-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg-raised); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 3px 9px #00000014; border-radius: 12px; min-height: 48px;
}
html body[data-polarity-app] .owner-gate .depth-button::before,
html body[data-polarity-app] .owner-gate .depth-button::after { display: none; }
html body[data-polarity-app] .owner-gate .depth-button--primary {
  background: var(--ink); color: var(--bg); border-color: var(--ink); text-shadow: none;
}
html body[data-polarity-app] .owner-gate input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
html body[data-polarity-app] .owner-gate__field input { padding-left: 44px; min-height: 48px; }
html body[data-polarity-app] .owner-gate .workspace-tasks { margin: 16px 0 24px; }
html body[data-polarity-app] .owner-gate .workspace-tasks li {
  background: var(--bg); color: var(--ink); border-color: var(--line); border-radius: 10px; overflow-wrap: anywhere;
}
html body[data-polarity-app] .owner-gate .workspace-tasks__empty { color: var(--muted); font-style: normal; }
html body[data-polarity-app] .owner-gate .dimensional-panel {
  margin: 28px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--ink); box-shadow: none;
}
html body[data-polarity-app] .owner-gate .dimensional-panel::before,
html body[data-polarity-app] .owner-gate .dimensional-panel::after { display: none; }
html body[data-polarity-app] .owner-gate .alerts-panel__note { color: var(--muted); }
html body[data-polarity-app] .owner-gate .alerts-panel__note svg { color: var(--muted); }
html body .owner-hub .workspace-save-status {
  padding: 16px 20px; border: 1px solid var(--color-line); border-radius: 14px;
  background: var(--color-panel); color: var(--color-muted-bright); font-size: 13px; line-height: 1.6;
}
html body .owner-hub .workspace-save-status button {
  margin: 10px 8px 0 0; padding: 9px 13px; min-height: 40px; border: 1px solid var(--color-line);
  border-radius: 8px; color: var(--color-ink); background: transparent; font: inherit; cursor: pointer;
}
html body .owner-hub .connected-clients { padding: 28px; }
html body .owner-hub .connected-clients h2 { margin: 0 0 12px; font-size: 26px; }
html body .owner-hub .connected-clients h3 { margin: 28px 0 12px; font-size: 18px; }
html body .owner-hub .connected-clients p { line-height: 1.65; }
html body .owner-hub .connected-clients label { color: var(--color-muted-bright); font-size: 13px; }
html body .owner-hub .connected-clients :is(input,select,textarea) {
  border: 1px solid var(--color-line-strong); border-radius: 10px;
  background: var(--color-panel); color: var(--color-ink); box-shadow: none; font-size: 14px;
}
html body .owner-hub .connected-clients textarea { min-height: 110px; resize: vertical; }
html body .owner-hub .connected-clients button {
  width: fit-content; min-height: 44px; padding: 10px 16px; margin: 8px 0 12px;
  border: 1px solid var(--color-line-strong); border-radius: 10px; color: var(--color-ink);
  background: var(--color-panel); font: 600 14px/1.4 var(--font-body,sans-serif); cursor: pointer;
}
html body .owner-hub .connected-clients button[type="submit"] { color: var(--color-paper); background: var(--color-ink); border-color: var(--color-ink); }
html body .owner-hub .connected-clients :is(input,select,textarea,button):focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
html body .owner-hub .founder-invites {
  padding: 28px; margin: 24px 0; border: 1px solid var(--color-line); border-radius: 18px;
  background: var(--color-panel); box-shadow: none;
}
html body .owner-hub .founder-invites::before,
html body .owner-hub .founder-invites::after { display: none; }
html body .owner-hub .founder-invites .module-label { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
html body .owner-hub .founder-invites__form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
html body .owner-hub :is(.founder-invites,.connected-clients) label {
  display: grid; gap: 9px; min-width: 0; color: var(--color-muted-bright); font-size: 13px;
}
html body .owner-hub :is(.founder-invites,.connected-clients) :is(input,select,textarea) {
  width: 100%; min-width: 0; min-height: 46px; padding: 12px 14px;
  border: 1px solid var(--color-line-strong); border-radius: 10px;
  background: var(--color-panel); color: var(--color-ink); font: inherit; font-size: 14px;
}
html body .owner-hub .founder-invites__form > button { grid-column: 1 / -1; width: fit-content; margin: 0; }
html body .owner-hub .connected-clients textarea { min-height: 110px; }
html body .owner-hub .founder-invites :is(input,select):focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; }
html body .owner-hub .connected-clients form { display: grid; gap: 18px; }
html body .owner-hub .connected-clients fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
@media(max-width:600px) {
  html body .owner-hub .founder-invites { padding: 20px; }
  html body .owner-hub .founder-invites__form { grid-template-columns: 1fr; }
  html body .owner-hub .founder-invites__form > button { width: 100%; }
}
@media(max-width:600px) { html body .owner-hub .connected-clients { padding: 20px; } }
@media(max-width:600px) {
  html body[data-polarity-app] .owner-gate { padding: 84px 20px 36px; }
}
html body[data-polarity-document] .sample-notice { background: var(--bg-raised) !important; color: var(--ink) !important; border-color: var(--line) !important; }
html body[data-polarity-document] .sample-notice a { background: var(--ink) !important; color: var(--bg) !important; border-radius: 6px !important; }
@media (max-width: 768px) {
  html body .brand-lockup > img { width: 48px; height: 48px; flex-basis: 48px; }
  html body .brand-lockup__type strong { font-size: 16px; }
  html body .brand-lockup__type > span { font-size: 8px; }
  .brand-mark .brand-mark__art { border-radius: 13px; }
  body[data-polarity-document] { padding-top: 92px; }
  body[data-polarity-document] .polarity-page-bar { width: calc(100% - 32px); height: 84px; gap: 12px; }
  .polarity-page-brand img { width: 44px; height: 44px; }
  .polarity-page-brand { gap: 10px; }
  .polarity-page-brand > span { font-size: 12px; }
  .polarity-page-brand small { font-size: 7px; }
  .polarity-page-bar nav { gap: 12px; }
  .polarity-page-bar nav a { display: none; }
}
@media print { .polarity-page-bar,.polarity-app-theme { display: none !important; } body[data-polarity-document] { padding-top: 0; } }

/* Shared page and theme transitions; navigation itself is never intercepted. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  .site-shell > main, body[data-polarity-document] > main { view-transition-name: page-content; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
  ::view-transition-old(page-content) { animation: polarity-page-out 140ms ease-in both; }
  ::view-transition-new(page-content) { animation: polarity-page-in 260ms cubic-bezier(.2,.7,.2,1) both; }
  html[data-theme-transition]::view-transition-old(page-content),
  html[data-theme-transition]::view-transition-new(page-content) { animation-name: polarity-theme-fade; animation-duration: 220ms; }
  html[data-theme-transition]::view-transition-old(page-content) { animation-direction: reverse; }
  html[data-theme-transition]::view-transition-group(*) { animation-duration: 220ms; }
  :is(.theme-toggle,.polarity-theme-toggle,.polarity-app-theme,[data-polarity-theme-toggle]) svg { animation: polarity-theme-icon 260ms ease-out; }
  :is(.masthead__nav,.polarity-page-bar nav) a {
    text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px;
    transition: text-decoration-color 180ms ease, color 180ms ease;
  }
  :is(.masthead__nav,.polarity-page-bar nav) a:is(:hover,:focus-visible) { text-decoration-color: currentColor; }
  :is(.theme-toggle,.polarity-app-theme,[data-polarity-theme-toggle],.primary-button,.secondary-button,body[data-polarity-document] .cta,body[data-polarity-document] .service-cta) { transition: scale 160ms ease, background-color 180ms ease, color 180ms ease; }
  :is(.theme-toggle,.polarity-app-theme,[data-polarity-theme-toggle],.primary-button,.secondary-button,body[data-polarity-document] .cta,body[data-polarity-document] .service-cta):active { scale: .975; }
}
@keyframes polarity-page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes polarity-page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes polarity-theme-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes polarity-theme-icon { from { opacity: .3; rotate: -25deg; scale: .85; } to { opacity: 1; rotate: 0deg; scale: 1; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Device budgets keep the approved artwork and all controls intact. */
html:not([data-performance="full"]) :is(.dimensional-panel,.masthead,.market__bar,.market__flyout,.market__stageCard,.hero-console,.fixed-dock) {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html:not([data-performance="full"]) dialog::backdrop { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html:not([data-performance="full"]) .brand-mark__metal { animation: none !important; transform: none !important; }
html[data-performance="lite"] :is(.market__mediaBack,.mark-atmosphere,.brand-mark__glint) { display: none !important; }
html[data-performance="lite"] .brand-mark__entry, html[data-performance="lite"] .market__pod::before, html[data-performance="lite"] .market__stage2::before { animation: none !important; transform: none !important; clip-path: none !important; }
html[data-performance="lite"] [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
html[data-performance="lite"] :is(.market__popup,.market__dialog,.market__lightbox)[open],
html[data-performance="lite"] .market__flyout { animation: performance-fade-in 120ms ease-out both !important; }
html[data-performance="lite"] :is(.market__popupInfo > *, .market__cartBtn em, .market__cartQty b > span) { animation: none !important; }
html[data-performance="lite"] :is(.market__popup,.market__dialog,.market__lightbox,.market__flyout)[data-closing] { animation: performance-fade-out 120ms ease-in both !important; }
html[data-performance="lite"] :is(.hero-console,.dimensional-panel,.market__pod,.market__bar,.market__flyout) { filter: none !important; }
html[data-page-visibility="hidden"] *, html[data-page-visibility="hidden"] *::before, html[data-page-visibility="hidden"] *::after { animation-play-state: paused !important; }
@keyframes performance-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes performance-fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html[data-performance="lite"] :is(.market__popup,.market__dialog,.market__lightbox,.market__flyout)[open],
  html[data-performance="lite"] .market__flyout { animation: none !important; }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-performance="balanced"] { scroll-behavior: smooth; }
}
html[data-performance="lite"] :is(a,button,summary,[role="button"]):active { filter: none !important; }
