/* Site-wide dark theme for the home page. Same key ("theme") and toggle as the case pages. */
.theme-toggle { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; margin-left: 12px; padding: 0; border: 1px solid #181a1f26; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; align-self: center; transition: border-color 160ms ease, opacity 160ms ease; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
.nav-on-hero .theme-toggle { border-color: #ffffff59; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; } }
@media (hover: hover) and (pointer: fine) { .theme-toggle:hover { border-color: currentColor; } }
@media (max-width: 767px) { .theme-toggle { width: 44px; height: 44px; margin-left: 0; border: 0; } }

:root[data-theme="dark"] { color-scheme: dark; --text-01: #ececefe6; --stroke: #ffffff1f; --black: #ececef; --white: #0e0f12; --gray-background: #16171b; --button-hover: #1f2026; --button-active-desktop: #26272d; }
:root[data-theme="dark"] body, :root[data-theme="dark"] .body { background-color: #0e0f12; color: #ececef; }
:root[data-theme="dark"] body:not(.nav-on-hero) .navigation { background-color: #0e0f12e6; }
:root[data-theme="dark"] .head-button.logo.w--current { background-color: transparent; }
:root[data-theme="dark"] .head-button:hover { border-bottom-color: #ffffff80; }
:root[data-theme="dark"] .text { color: #ececef; }
:root[data-theme="dark"] .text.gray { color: #8f919a; }
:root[data-theme="dark"] .text.credits-text { color: #ececef80; }
:root[data-theme="dark"] .now-in { border-color: #ffffff24; }
:root[data-theme="dark"] .company { background-color: #0e0f12; }
:root[data-theme="dark"] .company img { filter: invert(1) hue-rotate(180deg) brightness(1.05); }
:root[data-theme="dark"] .divider { background-color: #ffffff1a; }
:root[data-theme="dark"] .button { background-color: #16171b; color: #ececef; }
:root[data-theme="dark"] .logo-wrapper { background-color: #16171b; }
:root[data-theme="dark"] .project:not(:focus-visible) .projects-tracio:not(:hover), :root[data-theme="dark"] .project:not(:focus-visible) .projects-iqfitness:not(:hover), :root[data-theme="dark"] .project:not(:focus-visible) .projects-trade-bar:not(:hover), :root[data-theme="dark"] .project:not(:focus-visible) .projects-omg:not(:hover), :root[data-theme="dark"] a.project:not(:hover):not(:focus-visible) .work-stage, :root[data-theme="dark"] .project-summary .work-stage { background-color: #17181d !important; }
:root[data-theme="dark"] .experience { background-color: #0e0f12; }
:root[data-theme="dark"] .experience-container { background-color: #16171b; }
:root[data-theme="dark"] .project { color: #ececef; }
:root[data-theme="dark"] .project-description { color: #ececef; }
:root[data-theme="dark"] .project-role, :root[data-theme="dark"] .work-caption { color: #9a9ca5; }
:root[data-theme="dark"] .portfolio-email { color: inherit; }
:root[data-theme="dark"] ::selection { background: #f05ccc; color: #fff; }
:root[data-theme="dark"] .theme-toggle { border-color: #ffffff33; }
@media (max-width: 767px) {
  :root[data-theme="dark"] .navigation > .container { background: #1c1d22e6; }
  :root[data-theme="dark"] .navigation .head-button { color: #ececef; }
  :root[data-theme="dark"] .navigation .head-button.w--current { background: #2a2b31; color: #ececef; }
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { color-scheme: dark; --text-01: #ececefe6; --stroke: #ffffff1f; --black: #ececef; --white: #0e0f12; --gray-background: #16171b; --button-hover: #1f2026; --button-active-desktop: #26272d; }
:root:not([data-theme="light"]) body, :root:not([data-theme="light"]) .body { background-color: #0e0f12; color: #ececef; }
:root:not([data-theme="light"]) body:not(.nav-on-hero) .navigation { background-color: #0e0f12e6; }
:root:not([data-theme="light"]) .head-button.logo.w--current { background-color: transparent; }
:root:not([data-theme="light"]) .head-button:hover { border-bottom-color: #ffffff80; }
:root:not([data-theme="light"]) .text { color: #ececef; }
:root:not([data-theme="light"]) .text.gray { color: #8f919a; }
:root:not([data-theme="light"]) .text.credits-text { color: #ececef80; }
:root:not([data-theme="light"]) .now-in { border-color: #ffffff24; }
:root:not([data-theme="light"]) .company { background-color: #0e0f12; }
:root:not([data-theme="light"]) .company img { filter: invert(1) hue-rotate(180deg) brightness(1.05); }
:root:not([data-theme="light"]) .divider { background-color: #ffffff1a; }
:root:not([data-theme="light"]) .button { background-color: #16171b; color: #ececef; }
:root:not([data-theme="light"]) .logo-wrapper { background-color: #16171b; }
:root:not([data-theme="light"]) .project:not(:focus-visible) .projects-tracio:not(:hover), :root:not([data-theme="light"]) .project:not(:focus-visible) .projects-iqfitness:not(:hover), :root:not([data-theme="light"]) .project:not(:focus-visible) .projects-trade-bar:not(:hover), :root:not([data-theme="light"]) .project:not(:focus-visible) .projects-omg:not(:hover), :root:not([data-theme="light"]) a.project:not(:hover):not(:focus-visible) .work-stage, :root:not([data-theme="light"]) .project-summary .work-stage { background-color: #17181d !important; }
:root:not([data-theme="light"]) .experience { background-color: #0e0f12; }
:root:not([data-theme="light"]) .experience-container { background-color: #16171b; }
:root:not([data-theme="light"]) .project { color: #ececef; }
:root:not([data-theme="light"]) .project-description { color: #ececef; }
:root:not([data-theme="light"]) .project-role, :root:not([data-theme="light"]) .work-caption { color: #9a9ca5; }
:root:not([data-theme="light"]) .portfolio-email { color: inherit; }
:root:not([data-theme="light"]) ::selection { background: #f05ccc; color: #fff; }
:root:not([data-theme="light"]) .theme-toggle { border-color: #ffffff33; }
}
@media (max-width: 767px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .navigation > .container { background: #1c1d22e6; }
  :root:not([data-theme="light"]) .navigation .head-button { color: #ececef; }
  :root:not([data-theme="light"]) .navigation .head-button.w--current { background: #2a2b31; color: #ececef; }
}

/* Hover cards show light product screens: in dark theme the stage goes back to its light-theme colour on hover.
   Entering: light at once. Leaving: wait while Webflow fades the screens out, then darken, so light screens never sit on a dark card. */
.projects-tracio, .projects-iqfitness, .projects-trade-bar, .projects-omg, .work-stage { transition: background-color 380ms cubic-bezier(.4, 0, .2, 1) 240ms; }
.projects-tracio:hover, .projects-iqfitness:hover, .projects-trade-bar:hover, .projects-omg:hover, a.project:hover .work-stage, a.project:focus-visible .work-stage { transition: background-color 180ms cubic-bezier(.23, 1, .32, 1); }

/* Marks with dark strokes get light-stroke twins only while their card is dark; on hover the card is light again, so the original mark returns.
   The swap is a discrete transition timed to the middle of the background fade. */
.traciologo, .projects-iqfitness .image-7 { transition: content 0s linear 420ms; transition-behavior: allow-discrete; }
.projects-tracio:hover .traciologo, .projects-iqfitness:hover .image-7 { transition-delay: 60ms; }
:root[data-theme="dark"] .project:not(:focus-visible) .projects-tracio:not(:hover) .traciologo { content: url("/assets/logos/tracio-mark-dark.svg"); }
:root[data-theme="dark"] .project:not(:focus-visible) .projects-iqfitness:not(:hover) .image-7 { content: url("/assets/logos/iqfitness-mark-dark.svg"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .project:not(:focus-visible) .projects-tracio:not(:hover) .traciologo { content: url("/assets/logos/tracio-mark-dark.svg"); }
  :root:not([data-theme="light"]) .project:not(:focus-visible) .projects-iqfitness:not(:hover) .image-7 { content: url("/assets/logos/iqfitness-mark-dark.svg"); }
}
@media (prefers-reduced-motion: reduce) {
  .projects-tracio, .projects-iqfitness, .projects-trade-bar, .projects-omg, .work-stage, .traciologo, .projects-iqfitness .image-7 { transition: none; }
}

/* Phones: the bottom nav is a light pill in light theme, so the toggle icon takes the nav's dark text colour. */
@media (max-width: 767px) {
  .navigation .theme-toggle, .nav-on-hero .navigation .theme-toggle { color: #181a1f; border-color: transparent; }
  :root[data-theme="dark"] .navigation .theme-toggle { color: #ececef; }
}
@media (max-width: 767px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .navigation .theme-toggle { color: #ececef; }
}

/* Dark theme is not finished: it stays behind a feature flag (?theme=1 turns it on for this browser, ?theme=0 off). */
:root:not([data-ff~="theme"]) .theme-toggle { display: none !important; }
.cv-download { display: inline-flex; align-items: center; flex: 0 0 auto; height: 36px; margin-left: 12px; padding: 0 16px; border: 1px solid #181a1f26; border-radius: 99px; color: inherit; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; align-self: center; transition: border-color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .cv-download:hover { border-color: currentColor; } }
.nav-on-hero .cv-download { border-color: #ffffff59; }
@media (max-width: 767px) { .cv-download { height: 40px; margin-left: 0; padding: 0 14px; } }

/* CV button: text on wide screens, a download icon in the mobile bottom bar */
.cv-download { gap: 6px; }
.cv-download .cv-icon { display: none; width: 20px; height: 20px; flex: 0 0 auto; }
@media (max-width: 767px) {
  .cv-download, .nav-links a.cv-download { width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: #181a1f; }
  .nav-on-hero .navigation .cv-download { color: #181a1f; }
  .cv-download .cv-icon { display: block; }
  .cv-download .cv-text { display: none; }
}
