/* Keep the darker cinema palette independent from the light gallery variant. */
html[data-theme="dark"]{
  --background:#0b0e12;--foreground:#f3f1ef;--card:#14171b;--card-foreground:#f3f1ef;
  --hero:#0b0e12;--secondary:#14171b;--muted:#14171b;--muted-foreground:#aeb0b5;
  --primary:#e76b67;--primary-foreground:#170d0d;--accent:#20272d;
  --border:#ffffff21;--border-strong:#ffffff33;--palette-rgb:231 107 103;--reflection-rgb:185 207 225;
  --cv-surface:#14171b;--cv-surface-hover:#20272d;--cv-line:#ffffff25;
  --cv-accent:#e76b67;--cv-ink:#f3f1ef;--cv-muted:#aeb0b5;--cv-deep:#0b0e12;
}
html[data-theme="light"]{
  --background:#f0ece5;--foreground:#2e2925;--card:#faf7f1;--card-foreground:#2e2925;
  --hero:#e5ded5;--secondary:#eae4dc;--muted:#e9e2da;--muted-foreground:#716a63;
  --primary:#a64e3f;--primary-foreground:#fff8f2;--accent:#e5d6ca;
  --border:#65595038;--border-strong:#6559505e;--palette-rgb:166 78 63;--reflection-rgb:172 145 120;
  --cv-surface:#faf7f1;--cv-surface-hover:#f4ece3;--cv-line:#6559504a;
  --cv-accent:#a64e3f;--cv-ink:#2e2925;--cv-muted:#716a63;--cv-deep:#f0ece5;
}
html[data-theme] body{background:var(--background)!important;color:var(--foreground)}
html[data-theme] .site-header nav a{color:var(--cv-muted)}
html[data-theme] .site-header nav a:hover{color:var(--cv-ink)}
html[data-theme="dark"] .site-header nav a:after{background:linear-gradient(90deg,#e76b67,#d7e3ec)}
html[data-theme="light"] .site-header nav a:after{background:linear-gradient(90deg,var(--cv-accent),transparent)}
html[data-theme] .theme-toggle{border:0;border-bottom:1px solid var(--cv-line);border-radius:0;background:transparent;color:var(--cv-muted);box-shadow:none}
html[data-theme] .theme-toggle:hover{border-color:var(--cv-accent);background:transparent;color:var(--cv-ink)}
html[data-theme] .theme-toggle-icon:before{color:var(--cv-accent)}

html[data-theme="dark"] .profile,html[data-theme="dark"] .profile-facts{background:#0b0e12}
html[data-theme="light"] .profile,html[data-theme="light"] .profile-facts{background:#e5ded5}
html[data-theme="dark"] .profile-main{background:radial-gradient(ellipse at 77% 38%,#394045 0%,#20272d 39%,#0b0e12 78%)}
html[data-theme="light"] .profile-main{background:radial-gradient(ellipse at 77% 38%,#f2ede6 0%,#e7e0d7 43%,#ddd5cb 100%)}
html[data-theme="dark"] .profile-main:before{background:radial-gradient(ellipse 46% 86% at var(--beam-idle-x) var(--beam-y),#dceaf222 0%,#c3d9eb0d 46%,transparent 80%)}
html[data-theme="light"] .profile-main:before{background:radial-gradient(ellipse 46% 86% at var(--beam-idle-x) var(--beam-y),#fff9ebb5 0%,#d8c8b962 45%,transparent 80%)}
html[data-theme="dark"].light-interactive .profile-main:before{background:radial-gradient(ellipse 46% 86% at var(--beam-x) var(--beam-y),#dceaf222 0%,#c3d9eb0d 46%,transparent 80%)}
html[data-theme="light"].light-interactive .profile-main:before{background:radial-gradient(ellipse 46% 86% at var(--beam-x) var(--beam-y),#fff9ebb5 0%,#d8c8b962 45%,transparent 80%)}
html[data-theme] .profile-main:after{background:linear-gradient(to bottom,transparent,var(--cv-accent) 30%,var(--cv-accent) 62%,transparent)}
html[data-theme] .profile-copy h1,html[data-theme] .profile-role{color:var(--cv-ink)}
html[data-theme] .profile .eyebrow,html[data-theme] .profile-detail{color:var(--cv-muted)}
html[data-theme] .profile-role .role-divider{color:var(--cv-accent)}
html[data-theme="dark"] .profile-value{color:#e3e6e9}
html[data-theme="light"] .profile-value{color:#494039}
html[data-theme="dark"] .portrait img{filter:contrast(1.04) saturate(.38) brightness(1.02)}
html[data-theme="light"] .portrait img{filter:contrast(1.02) saturate(.42) sepia(.1) brightness(1.16)}
html[data-theme="dark"] .portrait:after{background:linear-gradient(to bottom,transparent 79%,#0b0e12 100%)}
html[data-theme="light"] .portrait:after{background:linear-gradient(to bottom,transparent 79%,#e5ded5 100%)}
html[data-theme="dark"] .portrait figcaption{color:#aeb0b5}
html[data-theme="light"] .portrait figcaption{color:#6b625b}
html[data-theme] .profile-actions .contact-button[href^="https://t.me"],html[data-theme] .contact-section .contact-button[href^="https://t.me"]{color:var(--cv-ink);border-bottom-color:var(--cv-accent)}
html[data-theme] .profile-actions .contact-button[href^="tel:"],html[data-theme] .contact-section .contact-button[href^="tel:"]{color:var(--cv-muted)}

/* The count links become two editorial entries rather than boxed buttons. */
html[data-theme] .profile-facts{gap:20px;padding:10px 0 12px!important;border-top:1px solid var(--cv-line)}
html[data-theme] .profile-fact-link{background:transparent;border:0;border-bottom:1px solid var(--cv-line);box-shadow:none}
html[data-theme] .profile-fact-link:before{top:-1px;left:24px;right:auto;bottom:auto;width:32px;height:1px;background:var(--cv-accent);opacity:1;transform:none;animation:none;transition:width .28s ease}
html[data-theme] .profile-fact-link:after{content:'↗';position:absolute;top:14px;right:22px;color:var(--cv-accent);font:400 20px/1 Georgia,serif;transition:transform .28s ease,color .28s ease}
html[data-theme] .profile-fact-link dl>div{min-height:69px;gap:16px;padding:10px 42px 12px 24px}
html[data-theme] .profile-facts dt{font-size:35px;font-weight:700;letter-spacing:-.075em}
html[data-theme] .profile-facts dt:after{color:var(--cv-ink)}
html[data-theme] .profile-facts dd{color:var(--cv-muted);font-size:13px;line-height:1.35}
html[data-theme] .profile-fact-link:hover,html[data-theme] .profile-fact-link:focus-visible{background:transparent;border-bottom-color:var(--cv-accent);box-shadow:none;transform:translateY(-1px)}
html[data-theme] .profile-fact-link:hover:before,html[data-theme] .profile-fact-link:focus-visible:before{width:70px}
html[data-theme] .profile-fact-link:hover:after,html[data-theme] .profile-fact-link:focus-visible:after{transform:translate(3px,-3px)}
html[data-theme] .profile-fact-link:hover dt:after{color:var(--cv-ink);text-shadow:none}
html[data-theme] .profile-fact-link:active{background:transparent;box-shadow:none;transform:translateY(0)}
html[data-theme="dark"] .profile-fact-link{transition:background-color .28s ease,border-color .28s ease,transform .28s ease,box-shadow .28s ease}
html[data-theme="dark"] .profile-fact-link:hover,html[data-theme="dark"] .profile-fact-link:focus-visible{background:#172027;border-bottom-color:#b9d0df7a;box-shadow:inset 0 1px #d8e9f026,0 9px 20px #00000028;transform:translateY(-3px)}
html[data-theme="dark"] .profile-fact-link:hover dt:after,html[data-theme="dark"] .profile-fact-link:focus-visible dt:after{color:#fff;text-shadow:0 0 18px #d6e7f766}
html[data-theme="dark"] .profile-fact-link:hover dd,html[data-theme="dark"] .profile-fact-link:focus-visible dd{color:#f3f1ef}
html[data-theme="dark"] .profile-fact-link:active{background:#20272d;transform:translateY(0)}

/* One quiet disclosure line for the spreadsheet work. */
html[data-theme] .skills-trigger{display:grid;grid-template-columns:minmax(220px,26%) minmax(0,1fr) 18px;grid-template-areas:'title description arrow';align-items:center;gap:24px;padding:16px 24px;background:transparent;color:var(--cv-ink);border:0;border-top:1px solid var(--cv-line);border-bottom:1px solid var(--cv-line);border-radius:0;box-shadow:none;text-decoration:none;cursor:pointer;transition:background .28s ease,border-color .28s ease,box-shadow .28s ease,transform .28s ease}
html[data-theme] .skills-trigger:hover,html[data-theme] .skills-trigger:focus-visible,html[data-theme] .skills-trigger[aria-expanded="true"]{border-top-color:var(--cv-accent);text-decoration:none}
html[data-theme="dark"] .skills-trigger:hover,html[data-theme="dark"] .skills-trigger:focus-visible{background:linear-gradient(105deg,#d8e5ee12,#d8e5ee05 65%,transparent)!important;box-shadow:inset 0 1px #d8e5ee34,0 8px 20px #00000024;transform:translateY(-2px)}
html[data-theme="light"] .production-section .skills-trigger:hover,html[data-theme="light"] .production-section .skills-trigger:focus-visible{background:linear-gradient(105deg,#ffffff,#f0efec 70%,transparent)!important;box-shadow:inset 0 1px #fff,0 6px 16px #302e2a18;transform:translateY(-2px)}
html[data-theme] .skills-trigger .data-work-title strong,html[data-theme] .skills-trigger .skills-hint{transition:color .28s ease,text-shadow .28s ease}
html[data-theme] .skills-trigger:hover .data-work-title strong,html[data-theme] .skills-trigger:focus-visible .data-work-title strong{color:var(--cv-accent)}
html[data-theme] .skills-trigger:hover .skills-hint,html[data-theme] .skills-trigger:focus-visible .skills-hint{color:var(--cv-ink);text-decoration:underline;text-underline-offset:4px}
html[data-theme] .skills-trigger .data-work-title{grid-area:title;min-width:0;align-items:center}
html[data-theme] .skills-trigger .data-work-icon{color:var(--cv-accent)}
html[data-theme] .skills-trigger .level-badge{color:var(--cv-muted);font-size:11px;font-weight:400}
html[data-theme] .skills-trigger .skills-description{grid-area:description;padding:0;color:var(--cv-muted);font-size:13px;line-height:1.5}
html[data-theme] .skills-trigger .skills-hint{color:var(--cv-accent);font-size:11px;letter-spacing:.04em;text-transform:uppercase;margin-top:4px}
html[data-theme] .skills-trigger>[data-slot="accordion-trigger-icon"]{grid-area:arrow;color:var(--cv-accent);transition:transform .28s ease}
html[data-theme] .skills-trigger:hover>[data-slot="accordion-trigger-icon"]{transform:translateY(3px)}
html[data-theme] .additional-skills{background:transparent;color:var(--cv-muted);border-bottom:1px solid var(--cv-line)}
html[data-theme] .production-section .resource,html[data-theme] .production-section .resource:hover{background:transparent;border-color:var(--cv-line);box-shadow:none;transform:none;cursor:default}

/* Keep section titles compact and let the project links carry the interaction. */
html[data-theme] .featured-heading>span,html[data-theme] .credits-heading p{display:none!important}
html[data-theme] .about-section,html[data-theme] .production-section,html[data-theme] .works-section,html[data-theme] .contact-section,html[data-theme] .filmography,html[data-theme] .featured-grid{border-color:var(--cv-line)}
html[data-theme] .credits-tabs-list button[data-active]{border-bottom-color:var(--cv-accent)!important;color:var(--cv-ink)!important}
html[data-theme] .credits-tabs-list button:hover{color:var(--cv-ink)!important}
html[data-theme] .filmography-trigger{color:var(--cv-accent)}
html[data-theme="light"] .featured-grid .film-card:hover,html[data-theme="light"] .featured-grid .film-card:focus-visible,html[data-theme="light"] a.credit-card:hover,html[data-theme="light"] a.credit-card:focus-visible{background:linear-gradient(var(--beam-angle),#ede5dc,#faf7f1,#eee7df)!important;box-shadow:inset 0 1px #fff,0 5px 18px #5546381f}
html[data-theme="dark"] .credit-row{background:#14171b;border-color:#ffffff21}
html[data-theme="light"] .credit-row{background:#faf7f1;border-color:#65595035;box-shadow:0 1px 0 #ffffff8c}
html[data-theme="light"] .featured-grid .film-card{background:#faf7f1;border-color:#65595030}
html[data-theme="light"] .credit-poster{background:#e8e0d7;color:#7c7168}
html[data-theme="light"] .film-card:hover .film-source svg,html[data-theme="light"] a.credit-card:hover .credit-title svg{color:var(--cv-accent)}
html[data-theme="dark"] .film-info h3,html[data-theme="dark"] .credit-title{transition:color .3s ease,text-shadow .3s ease}
html[data-theme="dark"] .film-card:hover .film-info h3,html[data-theme="dark"] .film-card:focus-visible .film-info h3,html[data-theme="dark"] a.credit-card:hover .credit-title,html[data-theme="dark"] a.credit-card:focus-visible .credit-title{color:#fff;text-shadow:0 0 18px #d6e7f755}
html[data-theme] .production-section button:not(.skills-trigger):hover,html[data-theme] .filmography-expansion button:hover{background:var(--cv-surface-hover);box-shadow:inset 0 1px var(--cv-line)}
html[data-theme] .production-section .skills-trigger[aria-expanded="true"]:not(:hover):not(:focus-visible){background:transparent;box-shadow:none}

@media(max-width:900px){
  html[data-theme] .skills-trigger{grid-template-columns:minmax(0,1fr) 18px;grid-template-areas:'title arrow' 'description description';gap:8px 14px}
}
@media(max-width:600px){
  html[data-theme] .profile-facts{gap:9px;padding:8px 0 11px!important}
  html[data-theme] .profile-fact-link dl>div{min-height:72px;gap:7px;padding:15px 15px 8px}
  html[data-theme] .profile-fact-link:before{left:15px;width:24px}
  html[data-theme] .profile-fact-link:after{top:8px;right:12px;font-size:16px}
  html[data-theme] .profile-facts dt{font-size:29px}
  html[data-theme] .profile-facts dd{font-size:11.5px;line-height:1.3}
  html[data-theme] .skills-trigger{padding:15px 16px}
  html[data-theme="dark"] .portrait:after{background:linear-gradient(to bottom,transparent 69%,#0b0e12 100%)}
  html[data-theme="light"] .portrait:after{background:linear-gradient(to bottom,transparent 69%,#e5ded5 100%)}
}
@media(max-width:350px){html[data-theme] .profile-fact-link dl>div{gap:4px;padding-inline:8px}html[data-theme] .profile-fact-link:before{left:8px}html[data-theme] .profile-facts dt{font-size:27px}html[data-theme] .profile-facts dd{font-size:11px}}
@media(prefers-reduced-motion:reduce){html[data-theme] .profile-fact-link:before,html[data-theme] .profile-fact-link:after,html[data-theme] .skills-trigger,html[data-theme] .skills-trigger .data-work-title strong,html[data-theme] .skills-trigger .skills-hint,html[data-theme] .skills-trigger>[data-slot="accordion-trigger-icon"],html[data-theme="dark"] .film-info h3,html[data-theme="dark"] .credit-title{transition:none}html[data-theme] .profile-fact-link:hover,html[data-theme] .profile-fact-link:focus-visible,html[data-theme] .skills-trigger:hover,html[data-theme] .skills-trigger:focus-visible{transform:none}}
