/* LETÍCIA SILVA — IDENTIDADE OFICIAL ROSÉ SMOKE NEUTRA
 * Escopo: componentes e páginas PÚBLICAS; não alterar Atelier, admin, iframes ou cores dos cases.
 * Fonte oficial de oito tons aprovada em 22/10/2026.
 * Important nos aliases é intencional: css/design-system-v2.css define tokens antigos com !important.
 */
:root {
  --brand-background: #F6F5F4;
  --brand-surface: #DAD8D8;
  --brand-border: #C8C2C3;
  --brand-text: #2D2A30;
  --brand-dark: #2D2A30;
  --brand-primary: #865E72;
  --brand-primary-hover: #654B5A;
  --brand-soft: #E8E2E1;
  --brand-color-1: #F6F5F4; /* Off-White Mineral */
  --brand-color-2: #DAD8D8; /* Cinza Rosado Neutro */
  --brand-color-3: #C8C2C3; /* Névoa Rosé */
  --brand-color-4: #2D2A30; /* Grafite Mineral */
  --brand-color-5: #584B55; /* Uva Acinzentada */
  --brand-color-6: #865E72; /* Rosé Assinatura */
  --brand-color-7: #A28A94; /* Taupe Rosado */
  --brand-color-8: #E8E2E1; /* Seda Fosca */
}
html:not([data-theme="dark"]) {
  color-scheme: light;
  --rose-canvas: var(--brand-background);
  --rose-smoke: var(--brand-surface);
  --rose-powder: var(--brand-soft);
  --rose-graphite: var(--brand-text);
  --rose-plum: var(--brand-color-5);
  --rose-accent: var(--brand-primary);
  --rose-accent-hover: var(--brand-primary-hover);

  --ls-navy: var(--brand-dark) !important;
  --ls-offwhite: var(--brand-background) !important;
  --ls-lilac: var(--brand-primary) !important;
  --ls-lilac-soft: var(--brand-color-7) !important;
  --ls-muted: var(--brand-text) !important;
  --ls-ice: var(--brand-soft) !important;
  --ls-surface: var(--brand-background) !important;
  --ls-border: var(--brand-border) !important;
  --ls-page: var(--brand-background) !important;
  --ls-ink: var(--brand-text) !important;
  --ls-text: var(--brand-text) !important;
  --ls-shadow: 0 18px 50px rgba(45,42,48,.075) !important;
  --ls-section-divider: var(--brand-border);
  --silver-soft-highlight: var(--brand-background);
  --silver-soft-base: var(--brand-soft);
  --silver-soft-shade: var(--brand-surface);
  --slate-strong: var(--brand-dark);
  --slate-medium: var(--brand-color-5);
  --slate-detail: var(--brand-color-7);

  --theme-bg-start: var(--brand-background) !important;
  --theme-bg-mid: var(--brand-soft) !important;
  --theme-bg-end: var(--brand-surface) !important;
  --theme-surface: rgba(246,245,244,.93) !important;
  --theme-surface-strong: var(--brand-background) !important;
  --theme-surface-muted: var(--brand-soft) !important;
  --theme-text: var(--brand-text) !important;
  --theme-text-soft: var(--brand-text) !important;
  --theme-muted: var(--brand-text) !important;
  --theme-border: var(--brand-border) !important;
  --theme-border-strong: var(--brand-color-7) !important;
  --theme-accent: var(--brand-primary) !important;
  --theme-accent-2: var(--brand-primary) !important;
  --theme-contrast: #FFFFFF !important;
  --theme-shadow: 0 24px 64px rgba(45,42,48,.11) !important;
  --theme-shadow-soft: 0 14px 36px rgba(45,42,48,.065) !important;
  --bg: var(--brand-background) !important;
  --bg-soft: var(--brand-soft) !important;
  --surface: var(--brand-background) !important;
  --surface-solid: var(--brand-background) !important;
  --surface-muted: var(--brand-soft) !important;
  --text: var(--brand-text) !important;
  --text-soft: var(--brand-text) !important;
  --muted: var(--brand-text) !important;
  --border: var(--brand-border) !important;
  --border-strong: var(--brand-color-7) !important;
  --primary: var(--brand-primary) !important;
  --primary-dark: var(--brand-primary-hover) !important;
  --primary-soft: var(--brand-soft) !important;
  --accent: var(--brand-primary) !important;
  --accent-soft: var(--brand-soft) !important;
  --warm: var(--brand-background) !important;
  --shadow: var(--theme-shadow) !important;
  --shadow-soft: var(--theme-shadow-soft) !important;
  --ls-soft-shadow: 0 18px 50px rgba(45,42,48,.07);
}
html:not([data-theme="dark"]) { background: var(--brand-background) !important; }
html:not([data-theme="dark"]) body:not(.admin-body) {
  color: var(--brand-text) !important;
  background:
    radial-gradient(ellipse 64% 60% at 4% 0%,rgba(162,138,148,.11),transparent 79%),
    radial-gradient(ellipse 58% 48% at 100% 82%,rgba(218,216,216,.26),transparent 80%),
    linear-gradient(160deg,var(--brand-background) 0%,var(--brand-soft) 56%,var(--brand-background) 100%) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) .header {
  background: rgba(246,245,244,.95) !important;
  border-bottom-color: var(--brand-border) !important;
  box-shadow: 0 8px 30px rgba(45,42,48,.035);
}
html:not([data-theme="dark"]) body:not(.admin-body) .brand {
  color: var(--brand-dark) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) .brand-mark {
  color:#FFFFFF !important;
  background: linear-gradient(140deg,var(--brand-dark),var(--brand-primary)) !important;
  border-color: var(--brand-border) !important;
  box-shadow:0 12px 30px rgba(45,42,48,.17) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) .nav-links a:is(:hover,.active,[aria-current="page"]) {
  color: var(--brand-primary) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.btn-primary,.filter-btn.is-active,.gallery-btn.is-active,.tab.active,.showcase-filter.is-active,.portfolio-tabs .active),
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero__button--primary,
html:not([data-theme="dark"]) body.home-page-v2 .home-projects-section .portfolio-actions .btn {
  color: #FFFFFF !important;
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 12px 28px rgba(45,42,48,.14) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.btn-primary,.filter-btn.is-active,.gallery-btn.is-active,.tab.active,.showcase-filter.is-active):hover,
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero__button--primary:hover,
html:not([data-theme="dark"]) body.home-page-v2 .home-projects-section .portfolio-actions .btn:hover {
  color: #FFFFFF !important;
  background: var(--brand-primary-hover) !important;
  border-color: var(--brand-primary-hover) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.btn-secondary,.btn-ghost,.filter-btn:not(.is-active),.gallery-btn:not(.is-active),.showcase-filter:not(.is-active)) {
  color:var(--brand-text) !important;
  background: var(--brand-background) !important;
  border-color: var(--brand-border) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.btn-secondary,.btn-ghost,.filter-btn:not(.is-active),.gallery-btn:not(.is-active)):hover {
  color: var(--brand-primary-hover) !important;
  border-color: var(--brand-color-7) !important;
  background: var(--brand-soft) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.section-kicker,.hero-eyebrow,.pill,.about-label,.cpx-group) {
  color:var(--brand-text) !important;
  background: var(--brand-soft) !important;
  border-color: var(--brand-border) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.section-kicker::before,.pill::before,.clean-list li::before,.goals-list li::before,.timeline-card::before) {
  background: var(--brand-primary) !important;
  box-shadow: none !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.portfolio-centered-heading__line,.about-kicker-row::before,.about-kicker-row::after,.timeline::before,.area-card .line) {
  border-color: var(--brand-border);
  background: var(--brand-border) !important;
}
html:not([data-theme="dark"]) .theme-switch {
  --container-light-bg: var(--brand-color-7);
  --back-clouds-color: var(--brand-soft);
}
/* Superfícies em TODAS as seções públicas, sem alterar estrutura nem imagens. */
html:not([data-theme="dark"]) body:not(.admin-body) :is(
  .page-hero,.about-showcase,.competencies-showcase,.contact-showcase,
  .portfolio-section,.home-projects-section,.home-method,.home-contact-cta,
  .projects-page-hero,.projects-contact-strip,.footer-contact-section,
  .portfolio,.featured-portfolio,.tools-section
) {
  --projects-stain-lilac: rgba(134,94,114,.10);
  --projects-stain-blue: rgba(162,138,148,.08);
  border-color: var(--brand-border);
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(
  .home-projects-section,.projects-contact-strip,.home-contact-cta,
  .footer-contact-section,.portfolio,.featured-portfolio,.tools-section,
  .portfolio-projects-section
) {
  background: linear-gradient(145deg,rgba(246,245,244,.95),rgba(232,226,225,.7) 55%,rgba(246,245,244,.95)) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero {
  color: var(--brand-text) !important;
  background:linear-gradient(148deg,var(--brand-background),var(--brand-soft) 58%,var(--brand-surface)) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero__atmosphere {
  background:
    radial-gradient(ellipse 60% 66% at 0% 0%,rgba(134,94,114,.125),transparent 78%),
    radial-gradient(ellipse 60% 64% at 100% 100%,rgba(88,75,85,.105),transparent 78%),
    linear-gradient(148deg,var(--brand-background),var(--brand-soft) 58%,var(--brand-surface)) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero__portrait-frame {
  background:linear-gradient(150deg,var(--brand-background),var(--brand-soft)) !important;
  border-color:var(--brand-border) !important;
  box-shadow:0 22px 65px rgba(45,42,48,.12) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero__photo-shell {
  background:var(--brand-dark);
}
html:not([data-theme="dark"]) body.single-page-portfolio :is(
  #home-hero-title,.portfolio-cinematic-hero__statement,.portfolio-cinematic-hero__period
) {
  color:var(--brand-text) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio :is(
 .portfolio-cinematic-hero__description,.portfolio-cinematic-hero__eyebrow,
 .portfolio-cinematic-hero__footnote,.portfolio-cinematic-hero__domain,
 .portfolio-cinematic-hero__capability,.portfolio-cinematic-hero__capability-icon
) {
  color:var(--brand-text) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero__button--secondary {
  color:var(--brand-dark) !important;
  background:var(--brand-background) !important;
  border-color:var(--brand-border) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero__button--secondary:hover {
  background:var(--brand-soft) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero__capability {
  background:var(--brand-background) !important;
  border-color:var(--brand-border) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero__capability-icon {
  background:var(--brand-soft) !important;
  color:var(--brand-primary) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio .portfolio-cinematic-hero__atmosphere::after {
  background-image:
    linear-gradient(rgba(88,75,85,.037) 1px,transparent 1px),
    linear-gradient(90deg,rgba(88,75,85,.037) 1px,transparent 1px) !important;
}
html:not([data-theme="dark"]) body.single-page-portfolio :is(.portfolio-section,#portfolio)::before {
  background:
    radial-gradient(ellipse clamp(360px,62vw,900px) clamp(340px,44vw,650px) at var(--body-stain-x,0%) 30%,rgba(162,138,148,.095),transparent 76%),
    radial-gradient(ellipse clamp(330px,54vw,780px) clamp(310px,39vw,580px) at var(--body-stain-other-x,100%) 78%,rgba(134,94,114,.07),transparent 76%) !important;
}
/* Cards e módulos que antes recebiam branco, azul ou lilás estáticos. */
html:not([data-theme="dark"]) body:not(.admin-body) :is(
  .card,.content-card,.project-card,.skill-card,.timeline-card,.cert-card,
  .profile-card,.metric-card,.mini-card,.contact-card,.contact-item,
  .portfolio-about-card,.portfolio-about-editorial,.portfolio-tool-group,
  .portfolio-stack-card,.portfolio-stack-tools,.about-goal-card,.about-how__card,
  .about-side:not(.about-side--dark),.about-edu,.about-objective,
  .cpx-card:not(.cpx-card--big),.cpx-level-card,
  .contact-form-card,.contact-direct-card,.contact-message-card,.contact-availability-card,
  .projects-page-hero__pillar,.project-gallery-item,
  .experience-metric-card,.home-method__item,.home-project-reference-card,
  .resume-main,.resume-sidebar,.timeline-entry,.career-entry,
  .case-narrative__item
) {
  background:var(--brand-background) !important;
  color:var(--brand-text) !important;
  border-color:var(--brand-border) !important;
  box-shadow:var(--theme-shadow-soft) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(
  .portfolio-availability,.home-project-reference-card__placeholder,
  .home-project-reference-card__media,.project-visual--placeholder,
  .home-project-reference-card__tags li,.home-project-reference-card__category,
  .home-project-reference-card__nature-badge,.portfolio-stack-card__tags li,
  .about-chips span,.cpx-chips span,.tech-list span,.chip,.pill,
  .timeline-meta span,.timeline-status,.hero-sector-tags span,
  .portfolio-cat,.projects-filter-control select,.field input,.field textarea
) {
  background:var(--brand-soft) !important;
  color:var(--brand-text) !important;
  border-color:var(--brand-border) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) .home-project-reference-card__media img,
html:not([data-theme="dark"]) body:not(.admin-body) .project-gallery-item img {
  background:var(--brand-soft);
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.home-project-reference-card__badge,.portfolio-projects-title__tag) {
  color:var(--brand-dark) !important;
  background:var(--brand-surface) !important;
  border:1px solid var(--brand-border) !important;
  box-shadow:0 6px 17px rgba(45,42,48,.07) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.home-project-reference-card__action,.home-project-reference-card__repository,.home-project-reference-card__share,.socials a,.contact-direct-list a) {
  color:var(--brand-primary) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.home-project-reference-card__action:hover,.home-project-reference-card__repository:hover,.home-project-reference-card__share:hover,.socials a:hover,.contact-direct-list a:hover) {
  color:var(--brand-primary-hover) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(
 .section-title,.page-title,.hero-title,.portfolio-section__head h2,
 .portfolio-projects-title,.about-title,.cpx-title,.timeline-role,
 .timeline-company,.project-title,.contact-title,.resume-section__head h2
) {
  color:var(--brand-text) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(
  .page-description,.section-description,.portfolio-centered-copy,
  .about-lead,.cpx-desc,.timeline-card p,.home-project-reference-card__body>p,
  .about-side p,.home-method__item p,.footer-contact-description
) {
  color:var(--brand-text) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(
  .about-side--dark,.cpx-card--big,.project-visual,.quote-panel,.cta,.site-footer-cta,.cta-full-section
) {
  color:var(--brand-background) !important;
  background:linear-gradient(145deg,var(--brand-dark),var(--brand-color-5)) !important;
  border-color:var(--brand-border) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.about-side--dark,.cpx-card--big,.quote-panel,.cta,.site-footer-cta,.cta-full-section) :is(h2,h3,h4,p,.about-label,.cpx-group,.cpx-skill-title,.cpx-skill-desc) {
  color:var(--brand-background) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.about-side--dark,.cpx-card--big) :is(.about-chips span,.cpx-group) {
  background:rgba(246,245,244,.13) !important;
  color:var(--brand-background) !important;
  border-color:rgba(246,245,244,.24) !important;
}
/* Compartilhamento, modal e formulários das páginas: não invadir experiências de case com sua própria paleta. */
html:not([data-theme="dark"]) body:not(.admin-body) :is(.modal-panel,.modal-head,.portfolio-share-feedback,.contact-form-card) {
  border-color:var(--brand-border) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(.field input,.field textarea,.projects-filter-control select):focus {
  background:var(--brand-background) !important;
  border-color:var(--brand-primary) !important;
  box-shadow:0 0 0 3px rgba(134,94,114,.16) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) :is(a,button,input,select,textarea):focus-visible {
  outline-color:var(--brand-primary) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) .footer {
  color:var(--brand-text) !important;
  background:var(--brand-soft) !important;
  border-top:1px solid var(--brand-border) !important;
}
html:not([data-theme="dark"]) ::selection { color:#FFFFFF;background:var(--brand-primary); }


/* Tipografia pública do tema claro: grafite mineral #2D2A30.
   Links de ação, botões rosé e textos sobre superfícies escuras continuam com contraste próprio. */
html:not([data-theme="dark"]) body:not(.admin-body) :is(main,.footer,.header)
:is(p,li,small,label,blockquote,figcaption,dt,dd,
   .page-description,.section-description,.about-lead,.cpx-desc,
   .portfolio-centered-copy,.home-project-reference-card__body,
   .home-project-reference-card__body>p,.timeline-card p,.contact-direct-card p,
   .home-method__item p,.footer-grid>p,.nav-links a) {
  color:var(--brand-text) !important;
}
/* Contraste intencional de módulos grafite e de textos de elementos interativos. */
html:not([data-theme="dark"]) body:not(.admin-body)
:is(.about-side--dark,.cpx-card--big,.project-visual,.quote-panel,
    .cta,.site-footer-cta,.cta-full-section)
:is(h1,h2,h3,h4,h5,h6,p,li,small,label,blockquote,figcaption,dt,dd,
    .about-label,.cpx-group,.cpx-skill-title,.cpx-skill-desc) {
  color:var(--brand-background) !important;
}
html:not([data-theme="dark"]) body:not(.admin-body)
:is(.btn-primary,.filter-btn.is-active,.gallery-btn.is-active,.tab.active,.showcase-filter.is-active,.portfolio-cinematic-hero__button--primary)
:is(span,small) { color:#FFFFFF !important; }

/* Tema escuro oficial em estudo: Rosé Smoke Nocturne
   Grafite ameixa + rosé frio luminoso; propositalmente NÃO é um preto puro.
   O claro acima e as cores internas de cada case permanecem independentes. */
html[data-theme="dark"] {
  color-scheme: dark;
  --rose-night: #211E25;
  --rose-night-raised: #352F39;
  --rose-night-soft: #403741;
  --rose-powder-dark: #E9DFD8;
  --rose-night-accent: #D6A8BF;
  --rose-night-hover: #E7C5D5;
  --pipeline-base: #211E25;
  --pipeline-raised: #352F39;
  --theme-bg-start: #211E25;
  --theme-bg-mid: #2A252D;
  --theme-bg-end: #352F39;
  --theme-surface: rgba(53, 47, 57, .90);
  --theme-surface-strong: #352F39;
  --theme-surface-muted: #403741;
  --theme-text: #F7F2F4;
  --theme-text-soft: #D9CED4;
  --theme-muted: #D1BEC8;
  --theme-border: rgba(233, 223, 216, .16);
  --theme-border-strong: rgba(233, 223, 216, .30);
  --theme-accent: #D6A8BF;
  --theme-accent-2: #D6A8BF;
  --theme-contrast: #211E25;
  --theme-shadow: 0 24px 70px rgba(15, 11, 17, .34);
  --theme-shadow-soft: 0 16px 42px rgba(15, 11, 17, .24);
  --bg: var(--theme-bg-start);
  --bg-soft: var(--theme-bg-mid);
  --surface: var(--theme-surface);
  --surface-solid: var(--theme-surface-strong);
  --surface-muted: var(--theme-surface-muted);
  --text: var(--theme-text);
  --text-soft: var(--theme-text-soft);
  --muted: var(--theme-muted);
  --border: var(--theme-border);
  --border-strong: var(--theme-border-strong);
  --primary: #D6A8BF;
  --primary-dark: #E7C5D5;
  --primary-soft: #403741;
  --accent: #D6A8BF;
  --accent-soft: #403741;
  --warm: #211E25;
  --shadow: var(--theme-shadow);
  --shadow-soft: var(--theme-shadow-soft);
  --ls-soft-shadow: 0 18px 50px rgba(15, 11, 17, .26);
}
html[data-theme="dark"] body:not(.admin-body) {
  background:
    radial-gradient(ellipse 68% 56% at 0% 0%, rgba(134, 94, 114, .23), transparent 77%),
    radial-gradient(ellipse 65% 60% at 100% 70%, rgba(72, 54, 68, .23), transparent 78%),
    linear-gradient(145deg, #211E25, #2A252D 58%, #352F39);
  color: #F7F2F4;
}
html[data-theme="dark"] body:not(.admin-body) .header {
  background: rgba(33, 30, 37, .94);
  border-bottom-color: var(--theme-border);
}
html[data-theme="dark"] body:not(.admin-body) .nav-links a:is(:hover,.active,[aria-current="page"]) {
  color: #E7C5D5;
}
html[data-theme="dark"] body:not(.admin-body) .brand-mark {
  background: linear-gradient(135deg, #D6A8BF, #A77993);
  border-color: rgba(233, 223, 216, .18);
  color: #211E25;
  box-shadow: 0 14px 30px rgba(15, 11, 17, .28);
}
html[data-theme="dark"] body:not(.admin-body) :is(.btn-primary,.filter-btn.is-active,.gallery-btn.is-active,.tab.active),
html[data-theme="dark"] body.single-page-portfolio .portfolio-cinematic-hero__button--primary {
  background: #D6A8BF;
  border-color: #D6A8BF;
  color: #211E25;
  box-shadow: 0 14px 32px rgba(15, 11, 17, .17);
}
html[data-theme="dark"] body:not(.admin-body) :is(.btn-primary,.filter-btn.is-active,.gallery-btn.is-active,.tab.active):hover,
html[data-theme="dark"] body.single-page-portfolio .portfolio-cinematic-hero__button--primary:hover {
  background: #E7C5D5;
  border-color: #E7C5D5;
  color: #211E25;
}
html[data-theme="dark"] body:not(.admin-body) :is(.btn-secondary,.btn-ghost,.filter-btn:not(.is-active),.gallery-btn:not(.is-active)) {
  color: #F7F2F4;
  border-color: var(--theme-border-strong);
}
html[data-theme="dark"] body:not(.admin-body) :is(.section-kicker,.hero-eyebrow,.portfolio-centered-heading__line) {
  color: #E7C5D5;
  border-color: var(--theme-border);
}
html[data-theme="dark"] body:not(.admin-body) :is(.section-kicker::before,.pill::before,.clean-list li::before) {
  background: #D6A8BF;
  box-shadow: none;
}
html[data-theme="dark"] .theme-switch {
  --container-night-bg: #352F39;
  --moon-bg: #E9DFD8;
  --spot-color: #A77993;
}
html[data-theme="dark"] body.single-page-portfolio .portfolio-cinematic-hero {
  background: #211E25;
  color: #F7F2F4;
}
html[data-theme="dark"] body.single-page-portfolio .portfolio-cinematic-hero__atmosphere {
  background:
    radial-gradient(ellipse at 78% 33%, rgba(214,168,191,.115),transparent 43%),
    radial-gradient(ellipse at 0% 70%, rgba(134,94,114,.26), transparent 64%),
    linear-gradient(145deg,#352F39 0%,#211E25 56%,#302934 100%);
}
html[data-theme="dark"] body.single-page-portfolio .portfolio-cinematic-hero__atmosphere::before {
  background-image:
    radial-gradient(circle at 10% 30%, rgba(214,168,191,.74) 0 1px, transparent 1.6px),
    radial-gradient(circle at 70% 20%, rgba(214,168,191,.72) 0 1px, transparent 1.5px);
}
html[data-theme="dark"] body.single-page-portfolio .portfolio-cinematic-hero__portrait-frame {
  background: linear-gradient(150deg, rgba(134,94,114,.24), rgba(33,30,37,.78));
  border-color: var(--theme-border-strong);
  box-shadow: 0 0 0 8px rgba(214,168,191,.03), 0 30px 84px rgba(15,11,17,.42);
}
html[data-theme="dark"] body.single-page-portfolio .portfolio-cinematic-hero__photo-shell {
  background: linear-gradient(145deg, #403741, #211E25);
}
html[data-theme="dark"] body.single-page-portfolio :is(#home-hero-title,.portfolio-cinematic-hero__statement) {
  color: #F7F2F4;
}
html[data-theme="dark"] body.single-page-portfolio :is(.portfolio-cinematic-hero__eyebrow,.portfolio-cinematic-hero__domain,.portfolio-cinematic-hero__description,.portfolio-cinematic-hero__footnote,.portfolio-cinematic-hero__capability) {
  color: #D9CED4;
}
html[data-theme="dark"] body.single-page-portfolio :is(.portfolio-cinematic-hero__period,.portfolio-cinematic-hero__capability-icon) {
  color: #D6A8BF;
}
html[data-theme="dark"] body.single-page-portfolio .portfolio-cinematic-hero__button--secondary {
  color: #F7F2F4;
  border-color: rgba(233,223,216,.34);
  background: rgba(233,223,216,.045);
}
html[data-theme="dark"] body.single-page-portfolio .portfolio-cinematic-hero__button--secondary:hover {
  background: rgba(233,223,216,.10);
}
html[data-theme="dark"] body:not(.admin-body) :is(.profile-frame,.project-visual,.quote-panel,.cta,.site-footer-cta,.cta-full-section,.home-contact-cta) {
  background:
    radial-gradient(circle at 95% 7%, rgba(214,168,191,.09), transparent 35%),
    linear-gradient(140deg, #211E25 0%, #352F39 100%);
  color: #F7F2F4;
}
html[data-theme="dark"] body:not(.admin-body) :is(.portfolio,.featured-portfolio,.tools-section) {
  background: linear-gradient(145deg, rgba(33,30,37,.96), rgba(48,41,52,.9));
}
html[data-theme="dark"] body.single-page-portfolio :is(.portfolio-section,#portfolio)::before {
  background:
    radial-gradient(ellipse clamp(360px,62vw,900px) clamp(340px,44vw,650px) at var(--body-stain-x,0%) 30%, rgba(134,94,114,.13),transparent 76%),
    radial-gradient(ellipse clamp(330px,54vw,780px) clamp(310px,39vw,580px) at var(--body-stain-other-x,100%) 78%, rgba(214,168,191,.075), transparent 76%);
}
html[data-theme="dark"] body:is(.single-page-portfolio,.projects-catalog) :is(#portfolio,.projects-page-hero) {
  --projects-stain-lilac: rgba(214,168,191,.15);
  --projects-stain-blue: rgba(134,94,114,.15);
}
html[data-theme="dark"] body:is(.single-page-portfolio,.projects-catalog) :is(#portfolio,.projects-page-hero) .home-projects-filters .filter-btn.is-active {
  color: #211E25;
  background: #D6A8BF;
  border-color: #D6A8BF;
}
html[data-theme="dark"] body:is(.single-page-portfolio,.projects-catalog) :is(#portfolio,.projects-page-hero) .home-project-reference-card__badge,
html[data-theme="dark"] body.home-page-v2 .home-project-reference-card__badge {
  background: #D6A8BF;
  color: #211E25;
  border-color: rgba(233,223,216,.15);
}
html[data-theme="dark"] body:is(.single-page-portfolio,.projects-catalog) :is(#portfolio,.projects-page-hero) .home-project-reference-card__tags li {
  background: #403741;
  color: #F7F2F4;
  border-color: var(--theme-border);
}
html[data-theme="dark"] body:not(.admin-body) :is(.card,.content-card,.timeline-card,.contact-card,.cert-card,.profile-card,.metric-card,.mini-card,.portfolio-stack-card,.case-narrative__item,.home-project-reference-card) {
  background: var(--theme-surface-strong);
  border-color: var(--theme-border);
  box-shadow: var(--theme-shadow-soft);
}
html[data-theme="dark"] body:not(.admin-body) :is(.field input,.field textarea,.projects-filter-control select):focus {
  border-color: #D6A8BF;
  box-shadow: 0 0 0 3px rgba(214,168,191,.16);
}
html[data-theme="dark"] ::selection {
  color: #211E25;
  background: #D6A8BF;
}


/* O tema Nocturne permanece intacto visualmente, porém seus aliases também
   precisam de !important para prevalecer sobre o Design System antigo. */
html[data-theme="dark"] {
  --ls-navy: #211E25 !important;
  --ls-offwhite: #F7F2F4 !important;
  --ls-lilac: #D6A8BF !important;
  --ls-lilac-soft: #E7C5D5 !important;
  --ls-muted: #D9CED4 !important;
  --ls-ice: #403741 !important;
  --ls-page: #211E25 !important;
  --ls-surface: #352F39 !important;
  --ls-border: #5A4D5B !important;
  --ls-ink: #F7F2F4 !important;
  --ls-text: #D9CED4 !important;
  --ls-shadow: 0 18px 50px rgba(15,11,17,.28) !important;
  --theme-bg-start: #211E25 !important;
  --theme-bg-mid: #2A252D !important;
  --theme-bg-end: #352F39 !important;
  --theme-surface: rgba(53,47,57,.9) !important;
  --theme-surface-strong: #352F39 !important;
  --theme-surface-muted: #403741 !important;
  --theme-text: #F7F2F4 !important;
  --theme-text-soft: #D9CED4 !important;
  --theme-muted: #D1BEC8 !important;
  --theme-border: rgba(233,223,216,.16) !important;
  --theme-border-strong: rgba(233,223,216,.3) !important;
  --theme-accent: #D6A8BF !important;
  --theme-accent-2: #D6A8BF !important;
  --theme-contrast: #211E25 !important;
  --theme-shadow: 0 24px 70px rgba(15,11,17,.34) !important;
  --theme-shadow-soft: 0 16px 42px rgba(15,11,17,.24) !important;
  --bg: #211E25 !important;
  --bg-soft: #2A252D !important;
  --surface: #352F39 !important;
  --surface-solid: #352F39 !important;
  --surface-muted: #403741 !important;
  --text: #F7F2F4 !important;
  --text-soft: #D9CED4 !important;
  --muted: #D1BEC8 !important;
  --border: rgba(233,223,216,.16) !important;
  --border-strong: rgba(233,223,216,.3) !important;
  --primary: #D6A8BF !important;
  --primary-dark: #E7C5D5 !important;
  --primary-soft: #403741 !important;
  --accent: #D6A8BF !important;
  --accent-soft: #403741 !important;
  --shadow: var(--theme-shadow) !important;
  --shadow-soft: var(--theme-shadow-soft) !important;
}
html[data-theme="dark"] { background:#211E25 !important; }
html[data-theme="dark"] body:not(.admin-body) {
  background:
    radial-gradient(ellipse 68% 56% at 0% 0%,rgba(134,94,114,.23),transparent 77%),
    radial-gradient(ellipse 65% 60% at 100% 70%,rgba(72,54,68,.23),transparent 78%),
    linear-gradient(145deg,#211E25,#2A252D 58%,#352F39) !important;
  color:#F7F2F4 !important;
}
html[data-theme="dark"] body:not(.admin-body) .about-side--dark,
html[data-theme="dark"] body:not(.admin-body) .cpx-card--big {
  background:linear-gradient(145deg,#211E25,#403741) !important;
  color:#F7F2F4 !important;
}
html[data-theme="dark"] body:not(.admin-body) :is(.about-side--dark,.cpx-card--big) :is(h2,h3,p,.cpx-skill-title,.cpx-skill-desc) {
  color:#F7F2F4 !important;
}
html[data-theme="dark"] body:not(.admin-body) :is(.home-project-reference-card,.home-project-reference-card--featured,.portfolio-stack-card,.cpx-card:not(.cpx-card--big),.about-side:not(.about-side--dark),.about-edu,.about-goal-card,.contact-form-card,.case-narrative__item) {
  background:#352F39 !important;
  color:#F7F2F4 !important;
  border-color:rgba(233,223,216,.16) !important;
}
html[data-theme="dark"] body:not(.admin-body) :is(.home-project-reference-card__badge,.filter-btn.is-active,.home-projects-filters .filter-btn.is-active) {
  background:#D6A8BF !important;
  color:#211E25 !important;
  border-color:#D6A8BF !important;
}
html[data-theme="dark"] body:not(.admin-body) .home-project-reference-card__tags li {
  background:#403741 !important;
  color:#F7F2F4 !important;
}
html[data-theme="dark"] body:not(.admin-body) :is(.btn-primary,.gallery-btn.is-active,.tab.active,.portfolio-cinematic-hero__button--primary) {
  background:#D6A8BF !important;
  color:#211E25 !important;
  border-color:#D6A8BF !important;
}
html[data-theme="dark"] body:not(.admin-body) :is(.btn-primary,.gallery-btn.is-active,.tab.active,.portfolio-cinematic-hero__button--primary):hover {
  background:#E7C5D5 !important;
  border-color:#E7C5D5 !important;
}
html[data-theme="dark"] body:not(.admin-body) .footer {
  background:#2A252D !important;
  color:#D9CED4 !important;
  border-top:1px solid rgba(233,223,216,.16) !important;
}
html[data-theme="dark"] body:not(.admin-body) .header {
  background:rgba(33,30,37,.95) !important;
}

/* Rosé Smoke Neutra | navegação pública: elimina o lilás legado do menu ativo.
   Override da regra com rgba(176,169,241,.16) no bundle antigo.
   Afeta todas as páginas públicas; não interfere no painel administrativo. */
html:not([data-theme="dark"]) body:not(.admin-body) .nav-links {
  background: rgba(246,245,244,.93) !important;
  border-color: #C8C2C3 !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) .nav-links a {
  color: #2D2A30 !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) .nav-links a:is(.active,.is-active,[aria-current="page"]) {
  background: #E8E2E1 !important;
  color: #2D2A30 !important;
}
html:not([data-theme="dark"]) body:not(.admin-body) .nav-links a:hover:not(.active):not(.is-active):not([aria-current="page"]) {
  background: #DAD8D8 !important;
  color: #2D2A30 !important;
}
html[data-theme="dark"] body:not(.admin-body) .nav-links {
  background: rgba(53,47,57,.9) !important;
  border-color: rgba(233,223,216,.23) !important;
}
html[data-theme="dark"] body:not(.admin-body) .nav-links a {
  color: #F7F2F4 !important;
}
html[data-theme="dark"] body:not(.admin-body) .nav-links a:is(.active,.is-active,[aria-current="page"]) {
  background: #403741 !important;
  color: #F7F2F4 !important;
}
html[data-theme="dark"] body:not(.admin-body) .nav-links a:hover:not(.active):not(.is-active):not([aria-current="page"]) {
  background: #352F39 !important;
  color: #F7F2F4 !important;
}
html body:not(.admin-body) .nav-links a:focus-visible {
  outline: 2px solid var(--theme-accent, #865E72) !important;
  outline-offset: 2px;
}


/* 2026-10-23 | Contraste acessível de Experiências no Nocturne.
   .clean-list li no bundle ainda possui #334155, pensado para fundo claro.
   O ajuste é isolado no accordion da trajetória da Home. */
html[data-theme="dark"] body.single-page-portfolio #carreira .career-entry__details .clean-list li {
  color: var(--theme-text-soft, #D9CED4) !important;
}
html[data-theme="dark"] body.single-page-portfolio #carreira .career-entry__details .clean-list li :is(strong, b) {
  color: var(--theme-text, #F7F2F4);
}

/* Catálogo: filtros integrados ao degradê da página, sem moldura opaca.
   Somente os contêineres ficam transparentes; botões e selects mantêm seu tratamento. */
html body.projects-catalog:not(.admin-body) .container.projects-catalog--integrated .projects-filter-bar,
html body.projects-catalog:not(.admin-body) .container.projects-catalog--integrated .projects-filter-bar > .projects-filters,
html body.projects-catalog:not(.admin-body) .container.projects-catalog--integrated .projects-filter-bar > .projects-filter-tools {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}
