/* Art Nest's shared interface identity. Artwork and media retain their colour.
   Chapter 2 deliberately does not load this stylesheet. */
.artnest-work-credits { margin-top: 22px; }
body .artnest-work-credits h4 { font-size: .75rem; line-height: 1.6; color: #9a9a9a !important; }
body .artnest-work-credits ul { list-style: none; padding: 0; margin: 14px 0; }
body .artnest-work-credits li {
  display: block; border: 0; padding: 0; margin: 0;
  font: 300 .82rem/1.8 "Art Nest Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.artnest-work-credits ul > li:last-child { border: 0; }
@font-face {
  font-family: "Art Nest Montserrat";
  src: url("/artnest/brand/montserrat-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Art Nest Montserrat";
  src: url("/artnest/brand/montserrat-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Art Nest Body";
  src: url("/artnest-sentio/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Art Nest Body";
  src: url("/artnest-sentio/assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
}
:root, .dark, .tarcila-page, .portfolio-page, .refined-page {
  color-scheme: dark;
  --app-font-sans: "Art Nest Body", Arial, sans-serif !important;
  --app-font-display: "Art Nest Montserrat", Montserrat, Arial, sans-serif !important;
  --app-font-serif: "Art Nest Montserrat", Montserrat, Arial, sans-serif !important;
  --display: "Art Nest Montserrat", Montserrat, Arial, sans-serif !important;
  --body: "Art Nest Body", Arial, sans-serif !important;
  --font-display: "Art Nest Montserrat", Montserrat, Arial, sans-serif !important;
  --font-body: "Art Nest Body", Arial, sans-serif !important;
  --background: 0 0% 0% !important;
  --foreground: 0 0% 100% !important;
  --card: 0 0% 5% !important;
  --card-foreground: 0 0% 100% !important;
  --popover: 0 0% 5% !important;
  --popover-foreground: 0 0% 100% !important;
  --primary: 0 0% 100% !important;
  --primary-foreground: 0 0% 0% !important;
  --secondary: 0 0% 10% !important;
  --secondary-foreground: 0 0% 100% !important;
  --accent: 0 0% 15% !important;
  --accent-foreground: 0 0% 100% !important;
  --muted-foreground: 0 0% 60.4% !important;
  --border: 0 0% 18% !important;
  --input: 0 0% 18% !important;
  --ring: 0 0% 100% !important;
  --bg: #000 !important; --ink: #000 !important; --void: #000 !important;
  --night: #0b0b0b !important; --night-2: #111 !important;
  --surface: #0b0b0b !important; --panel: #0b0b0b !important;
  --line: #2a2a2a !important; --edge: #2a2a2a !important; --edge-2: #444 !important;
  --text: #fff !important; --soft: #d0d0d0 !important;
  --muted: #9a9a9a !important; --dim: #9a9a9a !important;
  --warm: #fff !important; --cold: #ccc !important;
  --red: #fff !important; --red2: #ccc !important;
  --pink: #fff !important; --orange: #fff !important; --cyan: #ccc !important; --lime: #fff !important;
  --paper: #fff !important; --paperInk: #000 !important;
  --amber: #fff !important; --amber-soft: #ccc !important; --amber-deep: #777 !important;
  --violet: #ccc !important; --violet-soft: #bbb !important;
  --ash: #fff !important; --ash-dim: #9a9a9a !important; --ash-faint: #9a9a9a !important;
  --alert: #fff !important;
  --p-bg: #000 !important; --p-panel: #0b0b0b !important; --p-paper: #fff !important;
  --p-muted: #9a9a9a !important; --p-line: #2a2a2a !important;
  --p-blue: #fff !important; --p-coral: #ccc !important;
  --tar-bg: #000 !important; --tar-panel: #0b0b0b !important; --tar-line: #2a2a2a !important;
  --tar-bone: #fff !important; --tar-muted: #9a9a9a !important;
  --tar-amber: #fff !important; --tar-pink: #ccc !important;
}
:root:has(#root) { --muted: 0 0% 10% !important; }
html { background: #000; scroll-padding-top: 110px; }
body {
  background: #000 !important;
  color: #fff !important;
  font-family: "Art Nest Body", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #fff !important; color: #000 !important; }
body :is(h1, h2, h3, h4, h5, h6),
body :is(.tar-brand-name, .brand, .mark, .space-name, .font-display) {
  font-family: "Art Nest Montserrat", Montserrat, Arial, sans-serif !important;
  font-weight: 300 !important;
  text-transform: uppercase;
  letter-spacing: .075em !important;
  color: #fff !important;
  overflow-wrap: anywhere;
}
body :is(h1, h2, h3, h4, h5, h6) :is(span, em, strong) {
  font-family: inherit !important;
  font-weight: inherit !important;
  font-style: normal !important;
  color: inherit !important;
}
body :is(nav a, .eyebrow, .kicker, .kick, .tar-kicker, .btn, button, .portfolio-cta) {
  font-family: "Art Nest Montserrat", Montserrat, Arial, sans-serif !important;
  letter-spacing: .12em;
}
body :is(nav a, .eyebrow, .kicker, .kick, .tar-kicker, .btn, .portfolio-cta) { text-transform: uppercase; }
body :is(p, figcaption, .note, .lede, .lead, .intro, .tar-mono, .portfolio-mono) {
  color: #9a9a9a;
}
body a { text-decoration-color: #777; }
body a:hover {
  text-decoration-color: #fff;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M19 4a10 10 0 1 0 0 16A9 9 0 0 1 19 4Z' fill='white' stroke='black' stroke-width='1'/%3E%3C/svg%3E") 12 12, pointer;
}
body :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 5px;
}
body :is(input, textarea, select) {
  background-color: #0b0b0b !important;
  border-color: #444 !important;
  color: #fff !important;
  accent-color: #fff;
}
body :is(.btn, .button, .chip, .tag, .badge, .key) {
  border-color: #555 !important;
  color: #fff !important;
  background-color: #0b0b0b;
}
body :is(.btn.solid, .tar-button, .portfolio-cta, .pwform button, .login-card button, #f button) {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}
body :is(.btn.solid, .tar-button, .portfolio-cta, .pwform button, .login-card button, #f button):hover {
  background: #d9d9d9 !important;
}
body :is(.top, .tar-header, .portfolio-nav) {
  background: #000 !important;
  border-bottom: 1px solid #555 !important;
}
.top .brand::before, .top .mark::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 38px;
  background: url("/artnest/brand/icon-white.png") center / contain no-repeat;
  vertical-align: middle;
  margin-right: 12px;
}
body .top :is(.brand, .mark) { font-size: .85rem; line-height: 1.6; }
body .tar-mark {
  width: 28px; height: 36px;
  background: url("/artnest/brand/icon-white.png") center / contain no-repeat;
}
.tar-mark > * { visibility: hidden; }
body .tar-nav { font-size: .65rem; }
body .tar-brand-name { font-size: .68rem; letter-spacing: .09em !important; }
body :is(.tar-hero-content h1, .tar-visuals-intro h1, .portfolio-hero h1) {
  font-size: clamp(2.1rem, 6.2vw, 6.5rem);
  line-height: 1.12;
}
body :is(.welcome h1, .private-intro h2) {
  font-size: clamp(2.3rem, 5.6vw, 5rem);
  line-height: 1.1;
}
body :is(.welcome, .private, .portfolio-hero)::before,
body .refined-page::before { display: none; }
body .circles { display: none; }
body .choose.big { background: #fff !important; color: #000 !important; }
body .choose.big:hover { background: #ccc !important; }
body .portfolio-nav__logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 300 .8rem/1.4 "Art Nest Montserrat", sans-serif; text-transform: uppercase; letter-spacing: .2em; text-decoration: none; }
body .portfolio-nav__logo img { width: 30px; height: 38px; object-fit: contain; }
body .portfolio-nav__logo small { display: block; margin-top: 2px; font-size: .55rem; letter-spacing: .35em; }
/* The legacy portfolio used pale paper and dark ink; turn its frames into a
   neutral gallery wall while retaining the photographs' natural proportions. */
body .refined-page :is(.portfolio-hero__art, .portfolio-about figure, .portfolio-project__gallery figure) {
  background: #101010 !important;
  border-color: #333 !important;
  box-shadow: none !important;
}
body .refined-page :is(.portfolio-ideas, .portfolio-projects, .portfolio-contact) {
  background: #080808 !important;
}
body .refined-page :is(.portfolio-nav__links a, .portfolio-hero__subtitle, .portfolio-hero__art figcaption, .portfolio-about__copy p, .portfolio-idea p, .portfolio-project__description p, .portfolio-project__credit, .portfolio-other__list li, .portfolio-contact__bottom) {
  color: #9a9a9a !important;
}
body .refined-page :is(.portfolio-about__copy p:first-child, .portfolio-idea h3, .portfolio-contact__links a) {
  color: #fff !important;
}
body .refined-page .portfolio-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.9rem) !important;
  line-height: 1.12 !important;
  overflow-wrap: normal;
  letter-spacing: .02em !important;
}
body .refined-page .portfolio-hero h1 span { color: #fff !important; }
body .refined-page .portfolio-hero__subtitle {
  font-family: "Art Nest Body", Arial, sans-serif !important;
  font-style: normal !important;
}
body .refined-page .portfolio-project__gallery button {
  background: transparent !important; color: #fff !important;
}
body .refined-page :is(.portfolio-hero__art figcaption, .portfolio-project__gallery figcaption) {
  color: #9a9a9a !important;
}
body :is(.private, .welcome-note, .work-item, .work-image, .who, .card, .panel, .gate, .login-card) {
  background-image: none !important;
  background-color: #080808 !important;
  border-color: #2a2a2a !important;
}
body :is(.work-image, .pic) { background: #080808; }
body :is(.tar-button, .portfolio-cta) * { color: #000 !important; }
body :is(.work-copy .arrow, .kind, .top nav .key, .zone-letter, .space-hint, .index) { color: #ccc !important; }
body :is(.tar-series, .tar-body, .portfolio-section, .study) {
  border-color: #2a2a2a !important;
}
/* Existing utility-based private screens adopt the same neutral surfaces. */
body [class*="bg-[#"] { background-color: #050505 !important; }
body [class*="text-[#"] { color: #fff !important; }
body [class*="border-[#"] { border-color: #333 !important; }
body button[class*="bg-[#"]:not(.an-filter):not(.an-menu-toggle) {
  background-color: #fff !important;
  color: #000 !important;
}
body button[class*="bg-[#"]:hover:not(.an-filter):not(.an-menu-toggle) { background-color: #d9d9d9 !important; }
/* Content-card buttons are dark reading surfaces, not white action buttons.
   Keep this scoped to Caudex so public portfolio controls are unchanged. */
body #root .caudex-private-surface button:has(:is(h2, h3, p)) {
  background-color: #0b0b0b !important;
  background-image: none !important;
  color: #fff !important;
}
body #root .caudex-private-surface button:has(:is(h2, h3, p)):hover {
  background-color: #171717 !important;
}
body #root .caudex-private-surface button:has(:is(h2, h3, p)) :is(p, span) {
  color: #d0d0d0 !important;
}
body :is(.text-gray-400, .text-gray-500, .text-gray-600) { color: #9a9a9a !important; }
.artnest-sky { filter: grayscale(1); }
.artnest-site-header {
  position: relative; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; min-height: 90px;
  padding: 18px clamp(20px, 4vw, 64px); border-bottom: 1px solid #555;
  background: #000; color: #fff;
}
body .artnest-site-logo {
  display: inline-flex; align-items: center; gap: 14px;
  font: 300 .9rem/1.4 "Art Nest Montserrat", sans-serif;
  text-transform: uppercase; letter-spacing: .24em; color: #fff; text-decoration: none;
}
.artnest-site-logo img { width: 30px; height: 38px; object-fit: contain; }
.artnest-site-logo small { display: block; font-size: .5rem; letter-spacing: .35em; margin-top: 3px; }
/* The partner marks share one height and retain their original proportions. */
.sentio-lockup {
  --sentio-mark-height: 38px;
  display: inline-flex; align-items: center; gap: 12px;
  flex: none; vertical-align: middle;
}
body .sentio-lockup img {
  display: block; width: auto; height: var(--sentio-mark-height);
  max-width: none; object-fit: contain; flex: none;
}
.sentio-lockup-times {
  color: #fff; font: 300 16px/1 "Art Nest Montserrat", sans-serif;
}
body .artnest-site-header--sentio .artnest-site-logo {
  font-size: .68rem; letter-spacing: .12em; flex-shrink: 0;
}
body .sentio-local-brand::before { display: none; }
body .sentio-local-brand > .sentio-lockup { margin: 0 14px 0 0; }
body .sentio-local-brand .sentio-lockup > span { margin: 0; color: #fff; }
.sentio-hero-lockup { --sentio-mark-height: 56px; margin-top: 24px; gap: 18px; }
body img.sentio-studio-icon {
  display: block; width: auto; height: 56px; max-width: 100%;
  object-fit: contain; justify-self: start; margin-bottom: 8px;
}
.sentio-footer-lockup { display: inline-block; margin-right: 18px; vertical-align: middle; }
.sentio-footer-lockup .sentio-lockup { --sentio-mark-height: 34px; }
@media (max-width: 640px) {
  .artnest-site-header--sentio { gap: 12px; }
  .artnest-site-header--sentio .sentio-lockup { --sentio-mark-height: 28px; gap: 7px; }
  body .artnest-site-header--sentio .artnest-site-logo { gap: 10px; font-size: .62rem; }
  .artnest-sentio-name { max-width: 100px; }
  .sentio-footer-lockup { display: block; margin: 0 0 14px; }
}
.artnest-site-desktop { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 36px); align-items: center; }
body .artnest-site-desktop a { font-size: .62rem; color: #fff; text-decoration: none; padding: 12px 0; }
.artnest-site-mobile { display: none; }
.artnest-site-mobile summary {
  font: 300 .72rem "Art Nest Montserrat", sans-serif;
  letter-spacing: .16em; text-transform: uppercase; cursor: pointer; padding: 12px;
}
.artnest-site-mobile nav { display: flex; flex-direction: column; gap: 4px; }
.artnest-site-mobile[open] nav {
  position: absolute; right: 0; left: 0; top: 100%; padding: 20px;
  background: #000; border-bottom: 1px solid #555;
}
.artnest-site-mobile nav a { display: block; padding: 14px; color: #fff; font-size: .75rem; }
.artnest-merged-source { display: none !important; }
.artnest-site-header:has(.artnest-page-menu) { min-height: 76px; padding-block: 10px; }
.artnest-page-menu { position: relative; }
.artnest-page-menu summary { font: 400 .62rem "Art Nest Montserrat", sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; padding-block: 12px; }
.artnest-page-menu > nav { position: absolute; right: 0; top: 100%; min-width: 230px; display: flex; flex-direction: column; gap: 0; padding: 15px 22px; background: #000; border: 1px solid #555; }
.artnest-page-menu:not([open]) > nav { display: none; }
body .artnest-page-menu > nav a { padding-block: 12px; white-space: normal; }
.artnest-site-mobile[open] > nav { max-height: calc(100dvh - 80px); overflow-y: auto; }
@media (max-width: 960px) {
  .artnest-site-desktop { display: none; }
  .artnest-site-mobile { display: block; }
}
.artnest-brand-loader {
  min-height: 100dvh; display: grid; place-content: center; gap: 24px;
  background: #000; color: #9a9a9a; text-align: center;
}
.artnest-brand-loader::before {
  content: ""; display: block; width: 28px; height: 28px; margin-inline: auto;
  border-radius: 50%; background: #fff;
  box-shadow: inset -10px 0 0 0 #000;
  animation: artnest-loading-eclipse 3s ease-in-out infinite;
}
.artnest-brand-loader span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
@keyframes artnest-loading-eclipse {
  50% { box-shadow: inset -23px 0 0 0 #000; transform: rotate(20deg); }
}
@media (max-width: 640px) {
  body .top .wrap { flex-wrap: wrap; gap: 10px; }
  body .top nav { max-width: 100%; font-size: .65rem; gap: 16px; }
  body :is(.top .brand, .top .mark) { font-size: .7rem; }
  body :is(.hero h1, .tar-extra-heading, .tar-series h2, .portfolio-section-head h2) {
    font-size: clamp(1.6rem, 6vw, 2.6rem);
    line-height: 1.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .artnest-brand-loader::before { animation: none; }
}
