/* System preference is the default; an explicit choice overrides it. */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
.logo picture, .studio-signature picture { display: block; flex-shrink: 0; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); transition: background .2s, border-color .2s; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--pale); border-color: var(--muted); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
.legal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
@media (min-width: 761px) and (max-width: 1000px) {
  .header { gap: 16px; }
  .header nav { gap: 14px; }
  .header-cta { display: none; }
  .header-actions { gap: 14px; }
}
@media (max-width: 760px) {
  .header { gap: 12px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 420px) {
  .header { gap: 8px; }
  .header .logo img { width: 104px; }
  .header-actions { gap: 6px; }
  .languages { gap: 2px; }
  .languages button { min-width: 26px; }
}

:root[data-theme="dark"] {
    --paper: #141714;
    --ink: #f3f4ef;
    --muted: #b5bcb4;
    --line: #394139;
    --blue: #93aaff;
    --pale: #202720;
  }
:root[data-theme="dark"] ::selection { background: #93aaff; color: #141714; }
:root[data-theme="dark"] .hero-description, :root[data-theme="dark"] .languages, :root[data-theme="dark"] .work-note, :root[data-theme="dark"] .shared-inclusions li { color: var(--muted); }
:root[data-theme="dark"] .hero-art, :root[data-theme="dark"] .work-section, :root[data-theme="dark"] .pricing-section { background: #1c211d; }
:root[data-theme="dark"] .floating-label { background: #202720; }
:root[data-theme="dark"] .local-symbol, :root[data-theme="dark"] .tag { color: var(--muted); border-color: var(--line); }
:root[data-theme="dark"] .process-grid article > span { color: #a1ab9f; }
:root[data-theme="dark"] .price-card, :root[data-theme="dark"] .maintenance-package { border-color: var(--line); }
:root[data-theme="dark"] .price-card.featured { background: #1b2440; border-color: var(--blue); }
:root[data-theme="dark"] .primary, :root[data-theme="dark"] .popular { background: #284cdb; color: #fff; }
:root[data-theme="dark"] .primary:hover { background: #365ce8; }
:root[data-theme="dark"] .outline { border-color: #697567; }
:root[data-theme="dark"] .outline:hover { background: #2b342b; }
:root[data-theme="dark"] .custom-package { background: #252d26; color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .custom-package p:not(.eyebrow) { color: var(--muted); }
:root[data-theme="dark"] .custom-action .button { background: var(--ink); color: #141714; }
:root[data-theme="dark"] .custom-action .button:hover { background: #dce3ff; }
:root[data-theme="dark"] .project-window, :root[data-theme="dark"] .ceramics-project { color: #20211f; color-scheme: light; }
:root[data-theme="dark"] .project:hover .view-project { background: var(--blue); color: #141714; }
:root[data-theme="dark"] .contact-section { --contact-surface: #192a69; background: var(--contact-surface); }
:root[data-theme="dark"] .contact-description, :root[data-theme="dark"] .form-disclosure { color: #dce3ff; }
:root[data-theme="dark"] form input, :root[data-theme="dark"] form textarea, :root[data-theme="dark"] form select { border-color: #97a8df; }
:root[data-theme="dark"] form input::placeholder, :root[data-theme="dark"] form textarea::placeholder { color: #bcc9f2; opacity: 1; }
:root[data-theme="dark"] form input:focus, :root[data-theme="dark"] form textarea:focus, :root[data-theme="dark"] form select:focus { border-color: #fff; }
:root[data-theme="dark"] form .button { background: #f3f4ef; color: #192a69; }
:root[data-theme="dark"] form .button:hover { background: #dce3ff; }
:root[data-theme="dark"] #form-result { border-color: #97a8df; }
:root[data-theme="dark"] .skip { background: var(--ink); color: #141714; }
:root[data-theme="dark"] dialog::backdrop { background: #080b08d9; }

@media (prefers-color-scheme: dark) {
:root:not([data-theme]) { color-scheme: dark; }
:root:not([data-theme]) {
    --paper: #141714;
    --ink: #f3f4ef;
    --muted: #b5bcb4;
    --line: #394139;
    --blue: #93aaff;
    --pale: #202720;
  }
:root:not([data-theme]) ::selection { background: #93aaff; color: #141714; }
:root:not([data-theme]) .hero-description, :root:not([data-theme]) .languages, :root:not([data-theme]) .work-note, :root:not([data-theme]) .shared-inclusions li { color: var(--muted); }
:root:not([data-theme]) .hero-art, :root:not([data-theme]) .work-section, :root:not([data-theme]) .pricing-section { background: #1c211d; }
:root:not([data-theme]) .floating-label { background: #202720; }
:root:not([data-theme]) .local-symbol, :root:not([data-theme]) .tag { color: var(--muted); border-color: var(--line); }
:root:not([data-theme]) .process-grid article > span { color: #a1ab9f; }
:root:not([data-theme]) .price-card, :root:not([data-theme]) .maintenance-package { border-color: var(--line); }
:root:not([data-theme]) .price-card.featured { background: #1b2440; border-color: var(--blue); }
:root:not([data-theme]) .primary, :root:not([data-theme]) .popular { background: #284cdb; color: #fff; }
:root:not([data-theme]) .primary:hover { background: #365ce8; }
:root:not([data-theme]) .outline { border-color: #697567; }
:root:not([data-theme]) .outline:hover { background: #2b342b; }
:root:not([data-theme]) .custom-package { background: #252d26; color: var(--ink); border-color: var(--line); }
:root:not([data-theme]) .custom-package p:not(.eyebrow) { color: var(--muted); }
:root:not([data-theme]) .custom-action .button { background: var(--ink); color: #141714; }
:root:not([data-theme]) .custom-action .button:hover { background: #dce3ff; }
:root:not([data-theme]) .project-window, :root:not([data-theme]) .ceramics-project { color: #20211f; color-scheme: light; }
:root:not([data-theme]) .project:hover .view-project { background: var(--blue); color: #141714; }
:root:not([data-theme]) .contact-section { --contact-surface: #192a69; background: var(--contact-surface); }
:root:not([data-theme]) .contact-description, :root:not([data-theme]) .form-disclosure { color: #dce3ff; }
:root:not([data-theme]) form input, :root:not([data-theme]) form textarea, :root:not([data-theme]) form select { border-color: #97a8df; }
:root:not([data-theme]) form input::placeholder, :root:not([data-theme]) form textarea::placeholder { color: #bcc9f2; opacity: 1; }
:root:not([data-theme]) form input:focus, :root:not([data-theme]) form textarea:focus, :root:not([data-theme]) form select:focus { border-color: #fff; }
:root:not([data-theme]) form .button { background: #f3f4ef; color: #192a69; }
:root:not([data-theme]) form .button:hover { background: #dce3ff; }
:root:not([data-theme]) #form-result { border-color: #97a8df; }
:root:not([data-theme]) .skip { background: var(--ink); color: #141714; }
:root:not([data-theme]) dialog::backdrop { background: #080b08d9; }

}
