/*
 * Fully isolated light theme.
 * Every visual override is scoped to html[data-theme='light'] so the existing
 * dark portfolio remains unchanged.
 */
html[data-theme='light'] {
  --paper: #f3f0e8;
  --paper-strong: #fffdf7;
  --ink: #22211f;
  --ink-soft: rgba(34, 33, 31, .64);
  --ink-faint: rgba(34, 33, 31, .38);
  --line: rgba(34, 33, 31, .72);
  --line-soft: rgba(34, 33, 31, .16);
  --sage: #aebca9;
  --sage-deep: #7e927b;
  --clay: #c9a59a;
  --butter: #d8c987;
  --blue: #a9bcc5;
  --lavender: #b9aec4;
  color-scheme: light;
  scroll-padding-bottom: 104px;
}

html[data-theme='light'] body {
  padding-bottom: 100px;
  background:
    radial-gradient(circle at 15% 22%, rgba(174, 188, 169, .2), transparent 25%),
    radial-gradient(circle at 88% 58%, rgba(201, 165, 154, .15), transparent 24%),
    repeating-linear-gradient(0deg, rgba(34, 33, 31, .018) 0 1px, transparent 1px 5px),
    var(--paper) !important;
  color: var(--ink) !important;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html[data-theme='light'] body::after {
  content: '';
  position: fixed;
  z-index: 999;
  inset: 0;
  pointer-events: none;
  opacity: .1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

html[data-theme='light'] ::selection {
  background: var(--butter);
  color: var(--ink);
}

html[data-theme='light'] .global-aurora,
html[data-theme='light'] .hero-shade,
html[data-theme='light'] .contact-bg,
html[data-theme='light'] .hero-particle-intro {
  display: none !important;
}

html[data-theme='light'] .cursor-follower {
  border-color: rgba(34, 33, 31, .32) !important;
  background: rgba(216, 201, 135, .28) !important;
  mix-blend-mode: multiply;
}

html[data-theme='light'] .hero > .nav {
  display: none !important;
}

html[data-theme='light'] .section-shell {
  position: relative;
  color: var(--ink);
}

html[data-theme='light'] .hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: transparent !important;
  color: var(--ink) !important;
}

html[data-theme='light'] .hero::before,
html[data-theme='light'] .hero::after {
  position: absolute;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 108px;
  height: 104px;
  border: 1.5px solid var(--line);
  box-shadow: 5px 6px 0 rgba(34, 33, 31, .12);
  color: var(--ink);
  font: 700 11px/1.45 "Courier New", monospace;
  letter-spacing: .08em;
  text-align: center;
}

html[data-theme='light'] .hero::before {
  content: 'AVAILABLE\A FOR HIRING';
  white-space: pre;
  top: 18%;
  right: 13%;
  transform: rotate(4deg);
  background: var(--sage);
}

html[data-theme='light'] .hero::after {
  content: 'UI / UX\A 2026';
  white-space: pre;
  left: 13%;
  bottom: 19%;
  width: 86px;
  height: 82px;
  transform: rotate(-5deg);
  background: var(--butter);
}

html[data-theme='light'] .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

html[data-theme='light'] .hero-status {
  padding: 10px 18px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 2px !important;
  background: var(--sage) !important;
  box-shadow: 4px 4px 0 rgba(34, 33, 31, .12) !important;
  transform: rotate(-1.5deg);
}

html[data-theme='light'] .hero-status em {
  color: var(--ink) !important;
  font: 700 12px/1.2 "Courier New", monospace !important;
  letter-spacing: .14em !important;
}

html[data-theme='light'] .hero h1,
html[data-theme='light'] .hero h1 .vp-char {
  color: var(--ink) !important;
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif !important;
  font-weight: 700 !important;
  letter-spacing: -.065em !important;
  text-shadow: none !important;
}

html[data-theme='light'] .hero h1::after {
  content: '';
  display: block;
  width: 44%;
  height: 9px;
  margin: 18px auto 0;
  background: url("data:image/svg+xml,%3Csvg width='300' height='12' viewBox='0 0 300 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8C55 2 112 11 168 6S255 4 298 7' fill='none' stroke='%2322211f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

html[data-theme='light'] .hero-copy {
  color: var(--ink-soft) !important;
  font-family: Georgia, "Songti SC", serif;
}

html[data-theme='light'] .primary-btn,
html[data-theme='light'] .secondary-btn,
html[data-theme='light'] .nav-cta {
  border: 1.5px solid var(--line) !important;
  border-radius: 4px !important;
  box-shadow: 4px 4px 0 rgba(34, 33, 31, .16) !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
}

html[data-theme='light'] .primary-btn {
  background: var(--ink) !important;
  color: var(--paper-strong) !important;
}

html[data-theme='light'] .secondary-btn {
  background: var(--paper-strong) !important;
}

html[data-theme='light'] .primary-btn:hover,
html[data-theme='light'] .secondary-btn:hover {
  transform: translate(-2px, -2px) rotate(-.4deg) !important;
  box-shadow: 7px 7px 0 var(--clay) !important;
}

html[data-theme='light'] .section-kicker,
html[data-theme='light'] .metrics-intro > span,
html[data-theme='light'] .eyebrow,
html[data-theme='light'] .identity-eyebrow {
  color: var(--ink) !important;
  font-family: "Courier New", monospace !important;
  letter-spacing: .16em !important;
}

html[data-theme='light'] .section-kicker::before,
html[data-theme='light'] .eyebrow::before {
  content: '—';
  margin-right: 10px;
}

html[data-theme='light'] .variable-title,
html[data-theme='light'] .variable-title .vp-char {
  color: var(--ink) !important;
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif !important;
  text-shadow: none !important;
}

html[data-theme='light'] .variable-title .accent-word .vp-char,
html[data-theme='light'] .accent-word,
html[data-theme='light'] .stat-number {
  color: var(--sage-deep) !important;
}

html[data-theme='light'] .section-heading > p,
html[data-theme='light'] .metrics-intro > p,
html[data-theme='light'] .contact-copy {
  color: var(--ink-soft) !important;
}

html[data-theme='light'] .about {
  padding-block: clamp(110px, 13vw, 170px);
}

html[data-theme='light'] .about::before {
  content: 'ABOUT / 01';
  position: absolute;
  top: 90px;
  right: 5%;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  background: var(--clay);
  color: var(--ink);
  font: 700 10px/1 "Courier New", monospace;
  transform: rotate(3deg);
}

html[data-theme='light'] .about-statement {
  position: relative;
  padding: clamp(28px, 4vw, 52px) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 4px !important;
  background: var(--paper-strong) !important;
  box-shadow: 8px 9px 0 var(--blue) !important;
  color: var(--ink-soft) !important;
}

html[data-theme='light'] .about-statement strong {
  color: var(--ink) !important;
}

html[data-theme='light'] .about-tags span,
html[data-theme='light'] .identity-tags span {
  border: 1.25px solid var(--line) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--ink) !important;
  font-family: "Courier New", monospace !important;
}

html[data-theme='light'] .about-tags span:nth-child(2n) { background: rgba(216, 201, 135, .45) !important; }
html[data-theme='light'] .about-tags span:nth-child(3n) { background: rgba(185, 174, 196, .38) !important; }

html[data-theme='light'] .intro-section {
  color: var(--ink) !important;
}

html[data-theme='light'] .identity-index {
  color: var(--ink-soft) !important;
}

html[data-theme='light'] .identity-card {
  overflow: visible !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 6px !important;
  background: var(--paper-strong) !important;
  box-shadow: 7px 8px 0 var(--sage) !important;
  transform: rotate(-.7deg);
}

html[data-theme='light'] .identity-photo-wrap {
  border-bottom: 1.5px solid var(--line);
  border-radius: 5px 5px 0 0;
  background: var(--blue) !important;
}

html[data-theme='light'] .identity-photo-wrap::after {
  background: linear-gradient(180deg, transparent 72%, rgba(243, 240, 232, .48)) !important;
}

html[data-theme='light'] .identity-photo {
  filter: grayscale(.82) contrast(1.06) brightness(1.03) !important;
}

html[data-theme='light'] .identity-card-body {
  background: transparent !important;
}

html[data-theme='light'] .identity-card h3,
html[data-theme='light'] .intro-copy h2 {
  color: var(--ink) !important;
  font-family: Georgia, "Songti SC", "Noto Serif SC", serif !important;
}

html[data-theme='light'] .identity-card-body p,
html[data-theme='light'] .intro-copy h2 span,
html[data-theme='light'] .intro-lead,
html[data-theme='light'] .intro-body p,
html[data-theme='light'] .intro-path,
html[data-theme='light'] .intro-contact strong {
  color: var(--ink-soft) !important;
}

html[data-theme='light'] .intro-copy h2 span {
  color: var(--ink) !important;
}

html[data-theme='light'] .intro-lead {
  display: inline-block;
  padding: 8px 12px;
  border: 1.25px solid var(--line);
  background: var(--butter);
  transform: rotate(-.6deg);
}

html[data-theme='light'] .intro-path,
html[data-theme='light'] .intro-contact {
  border-color: var(--line-soft) !important;
}

html[data-theme='light'] .intro-path i {
  background: var(--clay) !important;
}

html[data-theme='light'] .intro-path b,
html[data-theme='light'] .intro-contact a,
html[data-theme='light'] .intro-contact button {
  color: var(--sage-deep) !important;
}

html[data-theme='light'] .intro-contact-row {
  border-color: var(--line-soft) !important;
  background: rgba(255, 253, 247, .56);
}

html[data-theme='light'] .intro-contact-row:nth-child(2) { background: rgba(169, 188, 197, .2); }
html[data-theme='light'] .intro-contact-row:nth-child(3) { background: rgba(201, 165, 154, .16); }

html[data-theme='light'] .timeline::after {
  content: 'EXPERIENCE / 02';
  position: absolute;
  right: 4%;
  top: 128px;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  background: var(--blue);
  color: var(--ink);
  font: 700 10px/1 "Courier New", monospace;
  transform: rotate(-2deg);
}

html[data-theme='light'] .timeline-list::before {
  background: repeating-linear-gradient(to bottom, var(--ink) 0 5px, transparent 5px 10px) !important;
  opacity: .5;
}

html[data-theme='light'] .timeline-item {
  border-color: var(--line-soft) !important;
}

html[data-theme='light'] .timeline-item > strong,
html[data-theme='light'] .timeline-item p {
  color: var(--ink-soft) !important;
}

html[data-theme='light'] .timeline-item h3 {
  color: var(--ink) !important;
  font-family: Georgia, "Songti SC", serif;
}

html[data-theme='light'] .timeline-item > span {
  border: 1.5px solid var(--line) !important;
  background: var(--paper-strong) !important;
  box-shadow: 0 0 0 8px var(--paper) !important;
  color: var(--ink) !important;
  backdrop-filter: none !important;
}

html[data-theme='light'] .timeline-item:nth-child(2) > span { background: var(--sage) !important; }
html[data-theme='light'] .timeline-item:nth-child(3) > span { background: var(--butter) !important; }
html[data-theme='light'] .timeline-item:nth-child(4) > span { background: var(--blue) !important; }
html[data-theme='light'] .timeline-item:nth-child(5) > span { background: var(--clay) !important; }

html[data-theme='light'] .metrics-panel {
  border: 1.5px solid var(--line) !important;
  border-radius: 5px !important;
  background: var(--paper-strong) !important;
  box-shadow: 9px 10px 0 rgba(34, 33, 31, .12) !important;
}

html[data-theme='light'] .stat {
  position: relative;
  border: 1.25px solid var(--line) !important;
  border-radius: 3px !important;
  background: var(--sage) !important;
  color: var(--ink) !important;
  transform: rotate(-1deg);
}

html[data-theme='light'] .stat:nth-child(2) { background: var(--butter) !important; transform: rotate(1deg); }
html[data-theme='light'] .stat:nth-child(3) { background: var(--clay) !important; transform: rotate(-.6deg); }
html[data-theme='light'] .stat:nth-child(4) { background: var(--blue) !important; transform: rotate(.8deg); }

html[data-theme='light'] .stat strong,
html[data-theme='light'] .stat span,
html[data-theme='light'] .stat em {
  color: var(--ink) !important;
}

html[data-theme='light'] .portfolio-browser {
  color: var(--ink) !important;
}

html[data-theme='light'] .portfolio-switcher {
  position: sticky;
  top: 14px;
  z-index: 30;
  padding: 10px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  background: rgba(255, 253, 247, .9) !important;
  box-shadow: 5px 6px 0 rgba(34, 33, 31, .14) !important;
  backdrop-filter: blur(14px);
}

html[data-theme='light'] .portfolio-years button {
  border-color: var(--line-soft) !important;
  background: transparent !important;
  color: var(--ink-soft) !important;
  font-family: "Courier New", monospace !important;
}

html[data-theme='light'] .portfolio-years button.is-active {
  border-color: var(--line) !important;
  background: var(--butter) !important;
  color: var(--ink) !important;
  box-shadow: 3px 3px 0 var(--ink) !important;
  transform: rotate(-.5deg);
}

html[data-theme='light'] .portfolio-preview {
  border: 1.5px solid var(--line) !important;
  background: rgba(255, 253, 247, .75) !important;
  box-shadow: 7px 8px 0 var(--lavender) !important;
}

html[data-theme='light'] .portfolio-preview-heading,
html[data-theme='light'] .portfolio-preview-heading h3 {
  color: var(--ink) !important;
}

html[data-theme='light'] .portfolio-preview-heading p,
html[data-theme='light'] .portfolio-lock-panel p,
html[data-theme='light'] .store-panel p {
  color: var(--ink-soft) !important;
}

html[data-theme='light'] .portfolio-lock-panel {
  background:
    linear-gradient(rgba(255, 253, 247, .86), rgba(255, 253, 247, .92)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(34, 33, 31, .04) 12px 13px) !important;
  color: var(--ink) !important;
}

html[data-theme='light'] .portfolio-lock-icon {
  border: 1.5px solid var(--line) !important;
  background: var(--sage) !important;
  color: var(--ink) !important;
}

html[data-theme='light'] #portfolio-password {
  border: 1.5px solid var(--line) !important;
  background: var(--paper-strong) !important;
  color: var(--ink) !important;
}

html[data-theme='light'] #portfolio-password::placeholder {
  color: var(--ink-faint) !important;
}

html[data-theme='light'] .portfolio-lock-panel button,
html[data-theme='light'] .portfolio-preview a,
html[data-theme='light'] .store-panel a {
  border: 1.5px solid var(--line) !important;
  background: var(--sage) !important;
  color: var(--ink) !important;
  box-shadow: 3px 3px 0 rgba(34, 33, 31, .16) !important;
}

html[data-theme='light'] .store-panel {
  border: 1.5px solid var(--line) !important;
  background: rgba(216, 201, 135, .2) !important;
  color: var(--ink) !important;
}

html[data-theme='light'] .final-contact {
  background: transparent !important;
  color: var(--ink) !important;
}

html[data-theme='light'] .final-inner {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: var(--paper-strong);
  box-shadow: 9px 10px 0 var(--clay);
}

html[data-theme='light'] .contact-reveal {
  border-color: var(--line) !important;
  background: transparent !important;
  color: var(--ink) !important;
}

html[data-theme='light'] .contact-reveal summary,
html[data-theme='light'] .contact-list span,
html[data-theme='light'] .contact-list strong,
html[data-theme='light'] .contact-copy-btn,
html[data-theme='light'] .contact-mini-btn,
html[data-theme='light'] .final-contact footer {
  color: var(--ink) !important;
}

html[data-theme='light'] .contact-list > div {
  border-color: var(--line-soft) !important;
}

html[data-theme='light'] .light-dock {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 247, .91);
  box-shadow: 5px 7px 0 rgba(34, 33, 31, .16), 0 18px 50px rgba(34, 33, 31, .14);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.light-dock { display: none; }

html[data-theme='light'] .light-dock-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

html[data-theme='light'] .light-dock a,
html[data-theme='light'] .light-dock button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}

html[data-theme='light'] .light-dock a span,
html[data-theme='light'] .light-dock button span {
  font: 700 20px/1 Georgia, serif;
}

html[data-theme='light'] .light-dock a::after,
html[data-theme='light'] .light-dock button::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-strong);
  color: var(--ink);
  font: 700 10px/1 "Courier New", monospace;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px) rotate(-1deg);
  transition: opacity .18s ease, transform .18s ease;
}

html[data-theme='light'] .light-dock a:hover::after,
html[data-theme='light'] .light-dock button:hover::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-1deg);
}

html[data-theme='light'] .light-dock a:hover,
html[data-theme='light'] .light-dock button:hover {
  color: var(--ink);
  transform: translateY(-3px) rotate(-2deg);
}

html[data-theme='light'] .light-dock a.is-active {
  border-color: var(--line);
  background: var(--sage);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

html[data-theme='light'] .light-dock > i {
  width: 1px;
  height: 26px;
  margin-inline: 2px;
  background: var(--line-soft);
}

html[data-theme='light'] .light-dock-theme {
  background: rgba(185, 174, 196, .38) !important;
}

@media (max-width: 760px) {
  html[data-theme='light'] body { padding-bottom: 90px; }
  html[data-theme='light'] .hero::before { top: 16%; right: 7%; width: 78px; height: 76px; font-size: 8px; }
  html[data-theme='light'] .hero::after { left: 7%; bottom: 17%; width: 64px; height: 62px; font-size: 8px; }
  html[data-theme='light'] .light-dock { width: calc(100vw - 24px); justify-content: center; gap: 4px; padding: 7px; }
  html[data-theme='light'] .light-dock-links { flex: 1; justify-content: space-between; gap: 1px; }
  html[data-theme='light'] .light-dock a,
  html[data-theme='light'] .light-dock button { width: 38px; height: 38px; }
  html[data-theme='light'] .light-dock a span,
  html[data-theme='light'] .light-dock button span { font-size: 17px; }
  html[data-theme='light'] .about::before,
  html[data-theme='light'] .timeline::after { display: none; }
  html[data-theme='light'] .portfolio-switcher { top: 8px; }
}

@media (max-width: 420px) {
  html[data-theme='light'] .light-dock a,
  html[data-theme='light'] .light-dock button { width: 34px; height: 36px; }
  html[data-theme='light'] .light-dock { border-radius: 15px; }
}

/* v4 — monochrome hand-drawn refinement */
html[data-theme='light'] {
  --paper: #fff;
  --paper-strong: #fff;
  --ink: #111;
  --ink-soft: #111;
  --ink-faint: rgba(17, 17, 17, .78);
  --line: #111;
  --line-soft: rgba(17, 17, 17, .28);
}

html[data-theme='light'] body,
html[data-theme='light'] main {
  background: #fff !important;
  color: #111 !important;
}

html[data-theme='light'] body::after,
html[data-theme='light'] .global-aurora,
html[data-theme='light'] .cursor-follower {
  display: none !important;
}

html[data-theme='light'] body,
html[data-theme='light'] main,
html[data-theme='light'] button,
html[data-theme='light'] input,
html[data-theme='light'] summary,
html[data-theme='light'] a {
  font-family: "Comic Sans MS", "KaiTi", "STKaiti", "Marker Felt", cursive !important;
}

html[data-theme='light'] main :where(h1, h2, h3, h4, p, strong, small, em, span, label),
html[data-theme='light'] .intro-contact :where(small, strong, a, button),
html[data-theme='light'] footer {
  color: #111 !important;
}

html[data-theme='light'] main :where(h1, h2, h3, h4, strong),
html[data-theme='light'] button,
html[data-theme='light'] a {
  font-weight: 800 !important;
}

html[data-theme='light'] .variable-title,
html[data-theme='light'] .section-heading h2,
html[data-theme='light'] .metrics-intro h2,
html[data-theme='light'] .final-contact h2 {
  font-family: "Comic Sans MS", "KaiTi", "STKaiti", cursive !important;
  letter-spacing: -.035em !important;
}

html[data-theme='light'] .accent-word,
html[data-theme='light'] .section-heading h2 span,
html[data-theme='light'] .metrics-intro h2 span,
html[data-theme='light'] .final-contact h2 span {
  color: #111 !important;
}

html[data-theme='light'] .section-heading h2::after,
html[data-theme='light'] .metrics-intro h2::after,
html[data-theme='light'] .final-contact h2::after {
  content: "";
  display: block;
  width: min(210px, 42%);
  height: 16px;
  margin: 10px 0 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 18'%3E%3Cpath d='M3 11C49 4 91 15 136 9s70-4 101 1' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

html[data-theme='light'] .hero::before,
html[data-theme='light'] .hero::after,
html[data-theme='light'] .hero-status,
html[data-theme='light'] .hero-status span,
html[data-theme='light'] .intro-lead,
html[data-theme='light'] .about::before,
html[data-theme='light'] .timeline::after {
  border-color: #111 !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: 4px 5px 0 #111 !important;
}

html[data-theme='light'] :where(.primary-btn, .nav-cta) {
  border: 2px solid #111 !important;
  border-radius: 11px 8px 12px 7px !important;
  background: #111 !important;
  color: #fff !important;
  box-shadow: 4px 4px 0 rgba(17, 17, 17, .22) !important;
}

html[data-theme='light'] :where(.primary-btn, .nav-cta) * {
  color: #fff !important;
}

html[data-theme='light'] :where(.secondary-btn, .pdf-toolbar a, .store-panel a, .contact-mini-btn, .contact-copy-btn) {
  border: 2px solid #111 !important;
  border-radius: 12px 8px 11px 7px !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: 3px 3px 0 #111 !important;
}

html[data-theme='light'] :where(.primary-btn, .secondary-btn, .nav-cta, .pdf-toolbar a, .store-panel a, .contact-mini-btn, .contact-copy-btn)::before,
html[data-theme='light'] :where(.primary-btn, .secondary-btn, .nav-cta, .pdf-toolbar a, .store-panel a, .contact-mini-btn, .contact-copy-btn)::after {
  display: none !important;
}

html[data-theme='light'] .light-dock {
  padding: 7px !important;
  border: 2px solid #111 !important;
  border-radius: 30px !important;
  background: #fff !important;
  box-shadow: 5px 6px 0 rgba(17, 17, 17, .22) !important;
}

html[data-theme='light'] .light-dock a,
html[data-theme='light'] .light-dock button {
  flex: 0 0 42px;
  width: 42px !important;
  height: 42px !important;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 2px solid transparent !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
}

html[data-theme='light'] .light-dock a span,
html[data-theme='light'] .light-dock button span {
  display: grid;
  place-items: center;
  color: inherit !important;
}

html[data-theme='light'] .light-dock svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

html[data-theme='light'] .light-dock a.is-active,
html[data-theme='light'] .light-dock button:hover {
  border-color: #111 !important;
  background: #111 !important;
  color: #fff !important;
}

html[data-theme='light'] .light-dock a.is-active *,
html[data-theme='light'] .light-dock button:hover * {
  color: #fff !important;
}

html[data-theme='light'] .light-dock > i { background: #111 !important; }

html[data-theme='light'] .metrics-panel {
  padding-inline: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme='light'] .stats {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  gap: clamp(14px, 2vw, 28px) !important;
  align-items: start !important;
  padding: 38px 20px 76px !important;
  border: 0 !important;
}

html[data-theme='light'] .stat {
  min-height: 220px !important;
  border: 2px solid #111 !important;
  border-radius: 13px 7px 15px 9px !important;
  box-shadow: 6px 7px 0 #111 !important;
  color: #111 !important;
}

html[data-theme='light'] .stat:nth-child(1) { grid-column: 1 / 4; transform: rotate(-6deg) translateY(28px) !important; }
html[data-theme='light'] .stat:nth-child(2) { grid-column: 4 / 7; transform: rotate(5deg) translateY(-12px) !important; }
html[data-theme='light'] .stat:nth-child(3) { grid-column: 7 / 10; transform: rotate(-4deg) translateY(40px) !important; }
html[data-theme='light'] .stat:nth-child(4) { grid-column: 10 / 13; transform: rotate(7deg) translateY(4px) !important; }

html[data-theme='light'] .portfolio-switcher {
  padding-inline: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-theme='light'] .portfolio-years button {
  border: 2px solid #111 !important;
  border-radius: 11px 6px 10px 8px !important;
  background: transparent !important;
  color: #111 !important;
  box-shadow: 3px 3px 0 #111 !important;
}

html[data-theme='light'] .portfolio-years button.is-active {
  background: #111 !important;
  color: #fff !important;
}

html[data-theme='light'] .portfolio-years button.is-active * { color: #fff !important; }

html[data-theme='light'] :where(.portfolio-preview, .portfolio-lock-panel, .store-panel, .pdf-toolbar) {
  background: transparent !important;
  border-color: #111 !important;
  box-shadow: none !important;
}

html[data-theme='light'] .portfolio-lock-icon {
  border: 2px solid #111 !important;
  border-radius: 50% !important;
  background: #111 !important;
  color: #fff !important;
  box-shadow: 3px 3px 0 rgba(17, 17, 17, .22) !important;
}

html[data-theme='light'] .portfolio-lock-icon * { color: #fff !important; }

html[data-theme='light'] .portfolio-lock-panel input,
html[data-theme='light'] .portfolio-lock-panel button {
  border: 2px solid #111 !important;
  background: #fff !important;
  color: #111 !important;
}

html[data-theme='light'] .portfolio-lock-panel button {
  background: #111 !important;
  color: #fff !important;
}

html[data-theme='light'] .final-inner {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme='light'] .contact-reveal { border: 0 !important; }
html[data-theme='light'] .contact-reveal > summary { display: none !important; }

html[data-theme='light'] .contact-reveal[open] .contact-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  max-height: none !important;
  margin-top: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  border-top: 2px solid #111 !important;
  border-bottom: 2px solid #111 !important;
}

html[data-theme='light'] .contact-list > div {
  border-color: #111 !important;
  background: transparent !important;
}

html[data-theme='light'] .contact-list :where(span, strong, a, button) { color: #111 !important; }

html[data-theme='light'] .contact-actions {
  width: min(1040px, 100%) !important;
  margin-top: 42px !important;
}

html[data-theme='light'] .intro-contact {
  border: 2px solid #111 !important;
  background: transparent !important;
  box-shadow: 5px 6px 0 #111 !important;
}

html[data-theme='light'] .intro-contact-row {
  border-color: #111 !important;
  background: transparent !important;
}

@media (min-width: 981px) {
  html[data-theme='light'] .timeline-list {
    position: relative !important;
    display: block !important;
    min-height: 770px !important;
    margin-top: 62px !important;
    padding: 0 !important;
  }

  html[data-theme='light'] .timeline-list::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 700'%3E%3Cpath d='M82 126C245 12 384 43 478 108s278 34 388 119c113 87 10 191-191 181-215-11-363-16-439 91-78 110 132 177 518 97' fill='none' stroke='%23111' stroke-width='4' stroke-linecap='round' stroke-dasharray='12 10'/%3E%3Cpath d='M67 111l16 15-3-22M747 585l12 16-22 3' fill='none' stroke='%23111' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html[data-theme='light'] .timeline-item {
    position: absolute !important;
    z-index: 1;
    display: block !important;
    width: min(320px, 31%) !important;
    min-height: 150px !important;
    padding: 22px 22px 20px !important;
    border: 2px solid #111 !important;
    border-radius: 16px 9px 14px 10px !important;
    background: #fff !important;
    box-shadow: 6px 7px 0 #111 !important;
    color: #111 !important;
    cursor: pointer;
    transform-origin: center;
    transition: transform .24s ease, box-shadow .24s ease !important;
  }

  html[data-theme='light'] .timeline-item:nth-child(1) { left: 2%; top: 10%; transform: rotate(-3deg) !important; }
  html[data-theme='light'] .timeline-item:nth-child(2) { left: 37%; top: 1%; transform: rotate(3deg) !important; }
  html[data-theme='light'] .timeline-item:nth-child(3) { right: 0; top: 29%; transform: rotate(-2deg) !important; }
  html[data-theme='light'] .timeline-item:nth-child(4) { left: 15%; top: 57%; transform: rotate(2deg) !important; }
  html[data-theme='light'] .timeline-item:nth-child(5) { right: 13%; top: 69%; transform: rotate(-4deg) !important; }

  html[data-theme='light'] .timeline-item:hover,
  html[data-theme='light'] .timeline-item:focus-visible,
  html[data-theme='light'] .timeline-item.is-map-open {
    z-index: 8;
    transform: translateY(-8px) rotate(0) scale(1.035) !important;
    box-shadow: 9px 10px 0 #111 !important;
    outline: 0 !important;
  }

  html[data-theme='light'] .timeline-item > span {
    position: absolute !important;
    left: -18px !important;
    top: -18px !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 2px solid #111 !important;
    border-radius: 50% !important;
    background: #111 !important;
    color: #fff !important;
    box-shadow: 3px 3px 0 #fff !important;
  }

  html[data-theme='light'] .timeline-item > span * { color: #fff !important; }
  html[data-theme='light'] .timeline-item > strong { display: block; padding: 0 0 10px !important; color: #111 !important; }
  html[data-theme='light'] .timeline-item > div { padding: 0 !important; }
  html[data-theme='light'] .timeline-item h3 { margin: 0 !important; color: #111 !important; font-size: 22px !important; }

  html[data-theme='light'] .timeline-item p {
    max-height: 0;
    margin: 0 !important;
    overflow: hidden;
    color: #111 !important;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .22s ease, max-height .3s ease, margin .3s ease, transform .22s ease !important;
  }

  html[data-theme='light'] .timeline-item:hover p,
  html[data-theme='light'] .timeline-item:focus-visible p,
  html[data-theme='light'] .timeline-item.is-map-open p {
    max-height: 180px;
    margin-top: 12px !important;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  html[data-theme='light'] .timeline-list {
    display: grid !important;
    min-height: 0 !important;
    margin-top: 36px !important;
  }

  html[data-theme='light'] .timeline-item {
    position: relative !important;
    inset: auto !important;
    border-bottom: 2px solid #111 !important;
    background: #fff !important;
    transform: none !important;
  }

  html[data-theme='light'] .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    padding: 24px 10px 54px !important;
  }

  html[data-theme='light'] .stat {
    grid-column: auto !important;
    min-height: 170px !important;
  }

  html[data-theme='light'] .stat:nth-child(1) { transform: rotate(-4deg) translateY(12px) !important; }
  html[data-theme='light'] .stat:nth-child(2) { transform: rotate(4deg) translateY(-5px) !important; }
  html[data-theme='light'] .stat:nth-child(3) { transform: rotate(3deg) translateY(14px) !important; }
  html[data-theme='light'] .stat:nth-child(4) { transform: rotate(-4deg) translateY(-3px) !important; }

  html[data-theme='light'] .contact-reveal[open] .contact-list { grid-template-columns: 1fr !important; }
}

@media (max-width: 520px) {
  html[data-theme='light'] .stats { gap: 16px !important; padding-inline: 4px !important; }
  html[data-theme='light'] .stat { min-height: 150px !important; padding: 20px !important; }
  html[data-theme='light'] .stat strong { font-size: 42px !important; }
  html[data-theme='light'] .light-dock { width: calc(100vw - 20px) !important; gap: 2px !important; padding: 5px !important; }
  html[data-theme='light'] .light-dock a,
  html[data-theme='light'] .light-dock button { flex-basis: 36px; width: 36px !important; height: 36px !important; }
  html[data-theme='light'] .light-dock svg { width: 16px; height: 16px; }
}

/* v5 — supplied palette, supplied dock icons and sketched large-radius borders */
html[data-theme='light'] {
  --card-blue: #A9B9EE;
  --card-green: #B5E2BE;
  --card-cyan: #B5E3F0;
  --card-purple: #C4BCEA;
  --card-yellow: #F4DAA1;
  --card-pink: #FAB4B5;
}

html[data-theme='light'] .hero::before { background: var(--card-green) !important; }
html[data-theme='light'] .hero::after { background: var(--card-yellow) !important; }
html[data-theme='light'] .intro-lead { background: var(--card-yellow) !important; }
html[data-theme='light'] .about::before { background: var(--card-cyan) !important; }
html[data-theme='light'] .timeline::after { background: var(--card-blue) !important; }

html[data-theme='light'] .stat:nth-child(1) { background: var(--card-green) !important; }
html[data-theme='light'] .stat:nth-child(2) { background: var(--card-yellow) !important; }
html[data-theme='light'] .stat:nth-child(3) { background: var(--card-pink) !important; }
html[data-theme='light'] .stat:nth-child(4) { background: var(--card-blue) !important; }

@media (min-width: 981px) {
  html[data-theme='light'] .timeline-item:nth-child(1) { background: var(--card-blue) !important; }
  html[data-theme='light'] .timeline-item:nth-child(2) { background: var(--card-green) !important; }
  html[data-theme='light'] .timeline-item:nth-child(3) { background: var(--card-yellow) !important; }
  html[data-theme='light'] .timeline-item:nth-child(4) { background: var(--card-cyan) !important; }
  html[data-theme='light'] .timeline-item:nth-child(5) { background: var(--card-pink) !important; }
}

html[data-theme='light'] .timeline-item:hover,
html[data-theme='light'] .timeline-item:focus-visible,
html[data-theme='light'] .timeline-item.is-map-open {
  box-shadow: none !important;
  filter: none !important;
}

/* v6 — one outline only: no glow, no shadow, no stacked frame */
html[data-theme='light'] .hero::before,
html[data-theme='light'] .hero::after,
html[data-theme='light'] .about::before,
html[data-theme='light'] .timeline::after {
  box-shadow: none !important;
  filter: none !important;
}

html[data-theme='light'] :where(
  .hero-status,
  .hero-status span,
  .intro-lead,
  .identity-card,
  .intro-contact,
  .timeline-item,
  .stat,
  .portfolio-preview,
  .portfolio-lock-panel,
  .portfolio-lock-icon,
  .store-panel,
  .contact-list,
  .light-dock,
  .primary-btn,
  .secondary-btn,
  .nav-cta,
  .pdf-toolbar a,
  .store-panel a,
  .contact-mini-btn,
  .contact-copy-btn,
  .portfolio-years button
) {
  box-shadow: none !important;
  filter: none !important;
}

html[data-theme='light'] .light-dock {
  border: 2px solid #111 !important;
  background: #fff !important;
}

html[data-theme='light'] .light-dock a,
html[data-theme='light'] .light-dock button,
html[data-theme='light'] .light-dock a.is-active,
html[data-theme='light'] .light-dock button:hover {
  border-color: transparent !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
}

html[data-theme='light'] .light-dock a.is-active *,
html[data-theme='light'] .light-dock button:hover * { color: #111 !important; }

html[data-theme='light'] .contact-list,
html[data-theme='light'] .contact-reveal[open] .contact-list {
  border: 0 !important;
}

html[data-theme='light'] .portfolio-preview,
html[data-theme='light'] .portfolio-lock-panel,
html[data-theme='light'] .store-panel,
html[data-theme='light'] .pdf-toolbar {
  border-color: transparent !important;
}

html[data-theme='light'] .identity-card,
html[data-theme='light'] .intro-contact,
html[data-theme='light'] .timeline-item,
html[data-theme='light'] .stat,
html[data-theme='light'] .portfolio-preview,
html[data-theme='light'] .store-panel,
html[data-theme='light'] .contact-list,
html[data-theme='light'] .primary-btn,
html[data-theme='light'] .secondary-btn,
html[data-theme='light'] .nav-cta,
html[data-theme='light'] .pdf-toolbar a,
html[data-theme='light'] .store-panel a,
html[data-theme='light'] .contact-mini-btn,
html[data-theme='light'] .contact-copy-btn,
html[data-theme='light'] .portfolio-years button {
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

html[data-theme='light'] .light-dock {
  box-shadow: none !important;
  filter: none !important;
}

html[data-theme='light'] .light-dock a span {
  position: relative;
  width: 24px;
  height: 24px;
}

html[data-theme='light'] .light-dock .dock-icon {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .18s ease;
}

html[data-theme='light'] .light-dock .dock-icon-active { opacity: 0; }
html[data-theme='light'] .light-dock a.is-active .dock-icon-idle { opacity: 0; }
html[data-theme='light'] .light-dock a.is-active .dock-icon-active { opacity: 1; }

html[data-theme='light'] :where(
  .primary-btn,
  .secondary-btn,
  .nav-cta,
  .pdf-toolbar a,
  .store-panel a,
  .contact-mini-btn,
  .contact-copy-btn,
  .portfolio-years button
) {
  position: relative !important;
  border: 0 !important;
  border-radius: 22px !important;
  isolation: isolate;
}

html[data-theme='light'] :where(
  .primary-btn,
  .secondary-btn,
  .nav-cta,
  .pdf-toolbar a,
  .store-panel a,
  .contact-mini-btn,
  .contact-copy-btn,
  .portfolio-years button
)::after {
  content: "" !important;
  position: absolute !important;
  z-index: 5 !important;
  inset: -4px !important;
  display: block !important;
  pointer-events: none !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'%3E%3Cpath d='M24 6C84 2 145 8 226 5c44-1 64 11 65 38l-2 24c-1 20-14 28-43 27-82 4-159-2-219 1C11 93 5 83 7 63L6 36C8 17 12 8 24 6Z' fill='none' stroke='%23111' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
  opacity: 1 !important;
}

html[data-theme='light'] :where(
  .identity-card,
  .intro-contact,
  .timeline-item,
  .stat,
  .portfolio-preview,
  .store-panel,
  .contact-list
) {
  position: relative !important;
  border: 0 !important;
  border-radius: 36px !important;
  isolation: isolate;
}

html[data-theme='light'] :where(
  .identity-card,
  .intro-contact,
  .timeline-item,
  .stat,
  .portfolio-preview,
  .store-panel,
  .contact-list
)::after {
  content: "" !important;
  position: absolute !important;
  z-index: 7 !important;
  inset: -5px !important;
  display: block !important;
  pointer-events: none !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' preserveAspectRatio='none'%3E%3Cpath d='M45 10C190 6 340 14 490 9c150-5 320 2 460 5 27 3 41 22 38 58l2 448c-2 41-19 66-58 69-202 5-409-5-614 1-113 3-214-2-264-4-30-2-44-26-42-66L9 78C11 37 22 14 45 10Z' fill='none' stroke='%23111' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat !important;
  opacity: 1 !important;
}

html[data-theme='light'] .timeline-item > span {
  border: 0 !important;
  border-radius: 50% !important;
  background: #111 !important;
}

html[data-theme='light'] .intro-contact,
html[data-theme='light'] .stat,
html[data-theme='light'] .timeline-item {
  box-shadow: none !important;
}

html[data-theme='light'] .portfolio-preview,
html[data-theme='light'] .contact-list,
html[data-theme='light'] .store-panel {
  overflow: visible !important;
}

@media (max-width: 980px) {
  html[data-theme='light'] .timeline-item {
    border-radius: 28px !important;
    margin-bottom: 18px !important;
    padding: 24px !important;
  }

  html[data-theme='light'] .timeline-item:nth-child(1) { background: var(--card-blue) !important; }
  html[data-theme='light'] .timeline-item:nth-child(2) { background: var(--card-green) !important; }
  html[data-theme='light'] .timeline-item:nth-child(3) { background: var(--card-yellow) !important; }
  html[data-theme='light'] .timeline-item:nth-child(4) { background: var(--card-cyan) !important; }
  html[data-theme='light'] .timeline-item:nth-child(5) { background: var(--card-pink) !important; }
}

html[data-theme='light'] .timeline-item:nth-child(1) > span,
html[data-theme='light'] .timeline-item:nth-child(2) > span,
html[data-theme='light'] .timeline-item:nth-child(3) > span,
html[data-theme='light'] .timeline-item:nth-child(4) > span,
html[data-theme='light'] .timeline-item:nth-child(5) > span {
  border: 0 !important;
  background: #111 !important;
  color: #fff !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

html[data-theme='light'] .variable-title,
html[data-theme='light'] .variable-title .vp-char,
html[data-theme='light'] .variable-title .accent-word,
html[data-theme='light'] .variable-title .accent-word .vp-char {
  color: #111 !important;
  font-family: "Comic Sans MS", "KaiTi", "STKaiti", cursive !important;
  font-weight: 800 !important;
}

/* v11 — final monochrome cards: white fill plus one black sketched outline */
html[data-theme='light'] .hero::before,
html[data-theme='light'] .hero::after,
html[data-theme='light'] .hero-status,
html[data-theme='light'] .hero-status span,
html[data-theme='light'] .intro-lead,
html[data-theme='light'] .about::before,
html[data-theme='light'] .timeline::after,
html[data-theme='light'] .identity-card,
html[data-theme='light'] .intro-contact,
html[data-theme='light'] .stat:nth-child(1),
html[data-theme='light'] .stat:nth-child(2),
html[data-theme='light'] .stat:nth-child(3),
html[data-theme='light'] .stat:nth-child(4),
html[data-theme='light'] .timeline-item:nth-child(1),
html[data-theme='light'] .timeline-item:nth-child(2),
html[data-theme='light'] .timeline-item:nth-child(3),
html[data-theme='light'] .timeline-item:nth-child(4),
html[data-theme='light'] .timeline-item:nth-child(5),
html[data-theme='light'] .portfolio-preview,
html[data-theme='light'] .portfolio-lock-panel,
html[data-theme='light'] .store-panel,
html[data-theme='light'] .contact-list,
html[data-theme='light'] .contact-list > div,
html[data-theme='light'] .intro-contact-row {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
}
