/* Sakura Studio V3: content layouts and interaction surfaces. */
.icon-menu { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-menu%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cline%20x1%3D%224%22%20x2%3D%2220%22%20y1%3D%2212%22%20y2%3D%2212%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%224%22%20x2%3D%2220%22%20y1%3D%226%22%20y2%3D%226%22%20%2F%3E%0A%20%20%3Cline%20x1%3D%224%22%20x2%3D%2220%22%20y1%3D%2218%22%20y2%3D%2218%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-mail { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-mail%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Crect%20width%3D%2220%22%20height%3D%2216%22%20x%3D%222%22%20y%3D%224%22%20rx%3D%222%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22m22%207-8.97%205.7a1.94%201.94%200%200%201-2.06%200L2%207%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-bookmark { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-bookmark%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22m19%2021-7-4-7%204V5a2%202%200%200%201%202-2h10a2%202%200%200%201%202%202v16z%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-bookmark-check { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-bookmark-check%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22m19%2021-7-4-7%204V5a2%202%200%200%201%202-2h10a2%202%200%200%201%202%202Z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22m9%2010%202%202%204-4%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-grip-vertical { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-grip-vertical%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Ccircle%20cx%3D%229%22%20cy%3D%2212%22%20r%3D%221%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%229%22%20cy%3D%225%22%20r%3D%221%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%229%22%20cy%3D%2219%22%20r%3D%221%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2212%22%20r%3D%221%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%225%22%20r%3D%221%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2215%22%20cy%3D%2219%22%20r%3D%221%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-settings-2 { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-settings-2%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M20%207h-9%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M14%2017H5%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%2217%22%20cy%3D%2217%22%20r%3D%223%22%20%2F%3E%0A%20%20%3Ccircle%20cx%3D%227%22%20cy%3D%227%22%20r%3D%223%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-chevron-up { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-chevron-up%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22m18%2015-6-6-6%206%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-chevron-down { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-chevron-down%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22m6%209%206%206%206-6%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-github { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-github%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M15%2022v-4a4.8%204.8%200%200%200-1-3.5c3%200%206-2%206-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35%200-3.5%200%200-1%200-3%201.5-2.64-.5-5.36-.5-8%200C6%202%205%202%205%202c-.3%201.15-.3%202.35%200%203.5A5.403%205.403%200%200%200%204%209c0%203.5%203%205.5%206%205.5-.39.49-.68%201.05-.85%201.65-.17.6-.22%201.23-.15%201.85v4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M9%2018c-4.51%202-5-2-7-2%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }
.icon-file-text { --icon: url("data:image/svg+xml,%3C!--%20%40license%20lucide-static%20v0.468.0%20-%20ISC%20--%3E%0A%3Csvg%0A%20%20class%3D%22lucide%20lucide-file-text%22%0A%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%0A%20%20width%3D%2224%22%0A%20%20height%3D%2224%22%0A%20%20viewBox%3D%220%200%2024%2024%22%0A%20%20fill%3D%22none%22%0A%20%20stroke%3D%22currentColor%22%0A%20%20stroke-width%3D%222%22%0A%20%20stroke-linecap%3D%22round%22%0A%20%20stroke-linejoin%3D%22round%22%0A%3E%0A%20%20%3Cpath%20d%3D%22M15%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V7Z%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M14%202v4a2%202%200%200%200%202%202h4%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M10%209H8%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M16%2013H8%22%20%2F%3E%0A%20%20%3Cpath%20d%3D%22M16%2017H8%22%20%2F%3E%0A%3C%2Fsvg%3E%0A"); }

.art { display: block; width: 100%; aspect-ratio: var(--art-aspect, 1.5); background-repeat: no-repeat; }
.art.is-art-ready { background-image: var(--art-image); }
.reading-progress { position: absolute; bottom: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(var(--reading-progress, 0)); transform-origin: left; pointer-events: none; }
.mobile-menu-toggle { display: none; }
.icon-button { min-width: 44px; width: 44px; height: 44px; }
button:disabled { cursor: default; opacity: .5; }
.project-description { display: none; }
.project-teaser { display: block; }
.project-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.project-actions details { margin: 0; }
.project-actions .project-links { display: flex; gap: 8px; }
.project-actions .project-link { display: inline-grid; place-items: center; width: 44px; min-height: 44px; margin: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); }
.project-actions .link-label { display: none; }
.project-actions .project-link:hover { color: var(--accent); background: var(--soft); }
.project-filters { display: flex; gap: 8px; align-items: center; }
.project-filters button { min-height: 44px; min-width: 64px; padding: 7px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; font-size: 13px; font-weight: 650; }
.project-filters button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.project-card.is-filter-entering { animation: resultIn 200ms ease both; }
.project-card.is-proof-target { outline: 2px solid var(--accent); outline-offset: 5px; }
.project-dialog .project-description { display: block; }
.project-dialog .project-teaser { display: none; }
.project-dialog .project-links { margin-top: 24px; }
.project-dialog .project-link { display: inline-flex; gap: 8px; }
.project-dialog.is-closing { animation: drawerOut 220ms ease both; }
.article-preview-ready .article-card details, .ui-ready .article-card .article-description { display: none; }
.article-actions { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.article-read { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 5px; font-size: 13px; font-weight: 650; }
.article-read:hover { filter: brightness(.94); }
.bookmark-button[aria-pressed="true"] { color: var(--accent); background: var(--soft); border-color: var(--accent); }
.saved-filter { margin-left: 12px; vertical-align: middle; }
.research-controls { display: flex; align-items: center; justify-content: flex-end; }
.saved-filter[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.article-empty { padding: 36px 0; color: var(--muted); }
.article-empty button { margin-left: 16px; }
.article-cover { width: 100%; padding: 0; border: 0; background: none; border-radius: 4px; }
.article-cover .art { transition: transform 180ms ease; transform-origin: 50% 100%; }
.article-cover:hover .art, .article-cover:focus-visible .art { transform: translateY(-4px) rotate(-1deg); }
.research-thread { display: none; }
.capability-art { display: block; width: 100%; padding: 0 0 12px; margin-bottom: 10px; border: 0; border-bottom: 2px solid transparent; background: none; transition: border-color 180ms ease; }
.capability-art:hover, .capability-art[aria-pressed="true"] { border-bottom-color: var(--accent); }
.capability-art .art { transition: transform 180ms ease; }
.capability-art:hover .art { transform: translateY(-3px); }
.focus-grid .proof-link { margin-top: 10px; font-size: 12px; overflow-wrap: anywhere; }
.focus-grid .proof-link .icon { width: 14px; height: 14px; }
.capability-proof { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; align-items: center; gap: 24px; border-block: 1px solid var(--line); margin-top: 24px; padding: 16px 0; }
.capability-proof h3 { font-size: 20px; margin-bottom: 8px; }
.capability-proof p { color: var(--muted); font-size: 14px; }
.capability-proof .proof-link { margin-top: 10px; }
.timeline-petal { display: none; }
.footer-socials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 28px max(var(--gutter), calc((100% - var(--max)) / 2)); background: var(--bg); gap: 28px; }
.footer-socials > a { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; align-items: center; gap: 18px; min-height: 76px; }
.footer-socials > a + a { border-left: 1px solid var(--line); padding-left: 28px; }
.footer-socials > a > .icon:first-child { width: 32px; height: 32px; }
.footer-socials strong { display: block; font-size: 21px; line-height: 1.4; }
.footer-socials small { display: block; font-size: 12px; color: var(--muted); }
.footer-socials a:hover strong { color: var(--accent); }
.social-x { font-size: 32px; line-height: 1; font-weight: 500; }
.footer-signoff { font-size: 12px; }
.contact-backdrop, .contact-character { display: none; }
.mail-link { margin-top: 20px; }
.copy-status { display: block; flex-basis: 100%; min-height: 20px; font-size: 12px; color: var(--secondary); }
.copy-status:empty { visibility: hidden; }
.is-article-open { overflow: hidden; }
.article-dialog { width: min(900px, calc(100% - 40px)); max-height: calc(100dvh - 64px); margin: auto; padding: 0; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; overscroll-behavior: contain; }
.article-dialog[open] { animation: resultIn 220ms ease both; }
.article-dialog::backdrop { background: #201a365c; }
.article-dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 10px 16px; background: var(--header); border-bottom: 1px solid var(--line); }
#articleDialogContent { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 30px; padding: 28px 32px 40px; }
.article-preview-art { position: sticky; top: 92px; }
.article-preview-body h2 { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 32px; text-wrap: wrap; }
.article-preview-body .card-topline { margin-bottom: 12px; }
.article-preview-body > p { margin: 16px 0 20px; font-size: 15px; color: var(--muted); }
.article-preview-body ul { padding-left: 18px; font-size: 14px; color: var(--muted); margin: 24px 0; }
.article-preview-body li + li { margin-top: 14px; }

html[data-theme="sakura"] { --bg: #fff; --ink: #25262b; --accent: #b72d60; --line: #eadce3; --muted: #666570; --panel: #fff; --section: #fff; }
html[data-theme="sakura"] .sakura-tree-backdrop { display: none; }
html[data-theme="sakura"] .sakura-field { z-index: 3; opacity: .22; }
html[data-theme="sakura"][data-active-section="identity"] > body > .sakura-field { display: none; }
html[data-theme="sakura"] .nav-shell { min-height: 64px; }
html[data-theme="sakura"] .nav-links a { min-height: 64px; }
html[data-theme="sakura"] .brand { font-size: 25px; }
html[data-theme="sakura"] .story-section:not(.hero-section) { padding-block: 56px; border: 0; }
html[data-theme="sakura"] .hero-section { min-height: 0; }
html[data-theme="sakura"] .studio-stage { aspect-ratio: auto; height: min(660px, calc(100svh - 210px)); min-height: 430px; max-height: none; }
html[data-theme="sakura"] .studio-image { transition: opacity 320ms ease; }
html[data-theme="sakura"] .hero-copy h1 { font-size: 104px; }
html[data-theme="sakura"] .studio-toolbar { min-height: 64px; }
html[data-theme="sakura"] .studio-mode { min-height: 48px; }
html[data-theme="sakura"] .panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; max-width: none; margin-bottom: 24px; padding-right: 0; }
html[data-theme="sakura"] .panel-heading > .eyebrow { display: flex; align-items: center; gap: 24px; grid-column: 1 / -1; margin: 0; font-size: 11px; }
html[data-theme="sakura"] .panel-heading > .eyebrow::after { content: ""; flex: 1; height: 1px; background: #e5a8bd; }
html[data-theme="sakura"] .panel-heading h2 { font-size: 32px; max-width: none; }
html[data-theme="sakura"] .panel-heading .text-link { position: static; margin: 0; align-self: center; }
html[data-theme="sakura"] .projects-heading > .text-link { display: none; }
html[data-theme="sakura"] .project-filters { align-self: center; justify-self: end; }
html[data-theme="sakura"] .project-grid { gap: 20px; }
html[data-theme="sakura"] .project-card { position: relative; isolation: isolate; min-height: 258px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff9fc; }
html[data-theme="sakura"] .project-card[data-project="coreplay"] { background: #f7faf5; }
html[data-theme="sakura"] .project-card[data-project="credinet"] { background: #f8faff; }
html[data-theme="sakura"] .project-card > .card-topline { position: relative; z-index: 1; top: auto; left: auto; width: fit-content; max-width: 58%; margin: 0 0 15px; padding: 3px 8px; background: #f9e6ee; border-radius: 4px; font-size: 11px; }
html[data-theme="sakura"] .project-card[data-project="coreplay"] > .card-topline { background: #e9eee5; }
html[data-theme="sakura"] .project-card[data-project="credinet"] > .card-topline { background: #e8eef9; }
html[data-theme="sakura"] .project-card .card-topline > span + span { display: none; }
html[data-theme="sakura"] .project-card > h3 { position: relative; z-index: 1; top: auto; left: auto; max-width: 48%; margin: 0; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 25px; line-height: 1.15; text-wrap: wrap; }
html[data-theme="sakura"] .project-card > .project-teaser { position: relative; z-index: 1; max-width: 46%; color: #45444e; font-size: 14px; line-height: 1.65; margin: 14px 0 22px; }
html[data-theme="sakura"] .project-card > .project-cover { position: absolute; top: auto; bottom: 0; right: 0; width: 50%; height: auto; margin: 0; background: none; border: 0; overflow: hidden; z-index: 0; }
html[data-theme="sakura"] .project-cover > :not(.art):not(.project-preview-trigger) { display: none; }
html[data-theme="sakura"] .project-card .project-cover .art { transition: transform 180ms ease; transform-origin: bottom right; mask-image: linear-gradient(90deg, transparent, #000 22%); }
html[data-theme="sakura"] .project-card:hover .project-cover .art { transform: translateY(-4px); }
html[data-theme="sakura"] .project-preview-trigger > .icon { display: none; }
html[data-theme="sakura"] .project-actions { position: relative; z-index: 1; width: fit-content; }
html[data-theme="sakura"] .project-actions summary { background: var(--accent); color: #fff; border-radius: 5px; min-height: 44px; padding: 7px 13px; font-size: 13px; }
html[data-theme="sakura"] .project-actions .project-link { background: #ffffffeb; }
html[data-theme="sakura"] .project-dialog .project-cover { height: auto; margin: -32px -36px 24px; background: #fff; }
html[data-theme="sakura"] .project-dialog .project-cover .art { width: min(480px, 100%); margin: auto; }
html[data-theme="sakura"] #work { display: block; }
html[data-theme="sakura"] #work .panel-heading { position: static; margin-bottom: 24px; }
html[data-theme="sakura"] .work-highlights { display: none; }
html[data-theme="sakura"] .timeline { position: relative; padding-left: 34px; border: 0; }
html[data-theme="sakura"] .timeline::before { content: ""; position: absolute; left: 8px; top: 30px; bottom: 30px; width: 1px; background: #d5c7d0; }
html[data-theme="sakura"] .timeline-item { position: relative; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 26px; padding: 17px 20px; min-height: 70px; border-bottom: 1px solid var(--line); border-radius: 4px; transition: background 200ms ease; }
html[data-theme="sakura"] .timeline-item::before { content: ""; position: absolute; left: -31px; top: calc(50% - 5px); width: 11px; height: 11px; border: 1px solid #b6a8b2; background: #fff; border-radius: 50%; }
html[data-theme="sakura"] .timeline-item.is-current { background: #fcf0f5; }
html[data-theme="sakura"] .timeline-item.is-current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px #f7dfe9; }
html[data-theme="sakura"] .timeline-item > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px; }
html[data-theme="sakura"] .timeline-item time { color: #5d4d57; font-size: 14px; }
html[data-theme="sakura"] .timeline-item h3 { font-size: 17px; }
html[data-theme="sakura"] .timeline-item .role { margin: 0; font-size: 13px; color: #4e4750; }
html[data-theme="sakura"] .timeline-petal { display: block; position: absolute; z-index: 1; width: 12px; height: 9px; left: 2px; top: var(--timeline-y, 30px); border-radius: 80% 5% 80% 5%; background: #da5b91; transform: translateY(-50%) rotate(-30deg); transition: top 200ms ease; pointer-events: none; }
html[data-theme="sakura"] .article-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
html[data-theme="sakura"] .article-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px; border: 0; padding: 0; min-width: 0; }
html[data-theme="sakura"] .article-index { display: none; }
html[data-theme="sakura"] .article-cover { margin: 0; }
html[data-theme="sakura"] .article-body { display: flex; flex-direction: column; min-width: 0; padding: 0; }
html[data-theme="sakura"] .article-card + .article-card { border-left: 1px solid var(--line); padding-left: 12px; }
html[data-theme="sakura"] .article-card .card-topline { justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; }
html[data-theme="sakura"] .article-card .card-topline span + span { padding: 1px 8px; border-radius: 4px; background: #f9e6ee; color: #7f2445; }
html[data-theme="sakura"] .article-card[data-article="ethereum"] .card-topline span + span { background: #e9eee5; color: #435b43; }
html[data-theme="sakura"] .article-card[data-article="desoc"] .card-topline span + span { background: #e8eef9; color: #3b567a; }
html[data-theme="sakura"] .article-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-style: italic; min-height: 0; text-wrap: wrap; }
html[data-theme="sakura"] .article-card h3 .icon { display: none; }
html[data-theme="sakura"] .article-card .article-summary { display: none; }
html[data-theme="sakura"] .article-card .article-actions { gap: 8px; margin-top: 16px; flex-wrap: wrap; }
html[data-theme="sakura"] .article-read { padding-inline: 10px; }
html[data-theme="sakura"] .research-thread { display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr; align-items: center; gap: 32px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.research-thread-step { display: flex; align-items: center; justify-content: center; gap: 18px; min-width: 0; }
.research-thread-step .art { width: 140px; flex-shrink: 0; }
.research-thread-step > span:last-child { padding: 2px 16px; color: #4f3240; border-radius: 6px; background: #f8e4ee; white-space: nowrap; }
.research-thread-step:nth-of-type(2) > span:last-child { background: #e7eddf; color: #405338; }
.research-thread-step:nth-of-type(3) > span:last-child { background: #e6edfb; color: #3e5275; }
html[data-theme="sakura"] .research-thread .icon { color: var(--accent); width: 16px; }
html[data-theme="sakura"] #focus .metric-grid { display: none; }
html[data-theme="sakura"] .focus-grid { gap: 24px; }
html[data-theme="sakura"] .focus-grid > div { border: 0; padding: 0 12px; min-width: 0; }
html[data-theme="sakura"] .focus-grid > div + div { border-left: 1px solid var(--line); }
html[data-theme="sakura"] .focus-grid > div > span { font-size: 18px; }
html[data-theme="sakura"] .focus-grid p { font-size: 12px; margin-top: 6px; }
html[data-theme="sakura"] .skill-cloud { font-size: 11px; padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
html[data-theme="sakura"] #contact { position: relative; isolation: isolate; overflow: clip; min-height: 480px; padding-block: 72px; background: #e3edfb; }
html[data-theme="sakura"] .contact-backdrop { display: block; position: absolute; z-index: -1; inset: 0; --art-image: url("assets/sakura-v3/contact-garden.webp"); background-position: center; background-size: cover; background-repeat: no-repeat; }
html[data-theme="sakura"] .contact-backdrop.is-art-ready { background-image: var(--art-image); }
html[data-theme="sakura"] .contact-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #ffffff70, #ffffff18 60%, transparent); }
html[data-theme="sakura"] .contact-grid { display: block; }
html[data-theme="sakura"] .contact-copy { position: relative; z-index: 1; max-width: 66%; }
html[data-theme="sakura"] .contact-copy h2 { font-size: 40px; max-width: 660px; }
html[data-theme="sakura"] .contact-summary { color: #374254; font-size: 16px; margin-top: 16px; }
html[data-theme="sakura"] .contact-actions { margin-top: 24px; gap: 6px 12px; }
html[data-theme="sakura"] .contact-email { color: #25262b; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-style: italic; overflow-wrap: anywhere; }
html[data-theme="sakura"] #copyEmail { background: #ffffffd9; border-color: #a9a5b0; }
html[data-theme="sakura"] .copy-status { color: #354e3b; }
html[data-theme="sakura"] .mail-link { margin-top: 10px; border-radius: 5px; }
html[data-theme="sakura"] .contact-character { display: block; position: absolute; bottom: 30px; right: 12%; width: 260px; height: 260px; pointer-events: none; }
html[data-theme="sakura"] .site-footer { background: #fff; }
html[data-theme="sakura"] .loader { background: #b8dbfa; transition-duration: 400ms; --intro-speed: 1; }
html[data-theme="sakura"] .loader[data-intro="brief"] { transition-duration: 300ms; --intro-speed: .28; }
.sakura-loader-scene picture { display: block; width: 100%; height: 100%; }
.sakura-loader-scene img { display: block; animation: none; }
.sakura-loader-title { top: 9%; width: min(44%, 760px, 64svh); }
.sakura-loader-title path { fill: none; stroke: #881139; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sakuraInk calc(var(--ink-time) * var(--intro-speed)) ease-out calc(var(--ink-delay) * var(--intro-speed)) forwards; }
.intro-mini { position: absolute; left: 11%; bottom: 6%; width: clamp(104px, 18svh, 216px); aspect-ratio: 1; opacity: 0; transform-origin: 50% 88%; animation: sakuraWelcome calc(.55s * var(--intro-speed)) ease-out calc(2.65s * var(--intro-speed)) forwards; }
.intro-blooms { position: absolute; inset: 0; pointer-events: none; }
.intro-blooms i { position: absolute; top: var(--y); left: var(--x); width: clamp(9px, 1.5vw, 22px); aspect-ratio: 1; background: #ffdfeb; mask: url("assets/icons/flower-2.svg") center / contain no-repeat; animation: sakuraBloom calc(.65s * var(--intro-speed)) ease-out calc(var(--delay) * var(--intro-speed)) both; }
.intro-blooms i:nth-child(1) { --x: 12%; --y: 15%; --delay: .3s; }
.intro-blooms i:nth-child(2) { --x: 22%; --y: 21%; --delay: .5s; }
.intro-blooms i:nth-child(3) { --x: 29%; --y: 10%; --delay: .7s; }
.intro-blooms i:nth-child(4) { --x: 84%; --y: 13%; --delay: .35s; }
.intro-blooms i:nth-child(5) { --x: 91%; --y: 24%; --delay: .65s; }
.intro-blooms i:nth-child(6) { --x: 95%; --y: 32%; --delay: .9s; }
@keyframes sakuraInk { to { stroke-dashoffset: 0; } }
@keyframes sakuraBloom { from { opacity: 0; transform: scale(.15) rotate(-25deg); } to { opacity: 1; transform: scale(1) rotate(12deg); } }
@keyframes sakuraWelcome { 0% { opacity: 0; transform: translateY(8px) rotate(-5deg); } 50% { opacity: 1; transform: rotate(5deg); } 100% { opacity: 1; transform: none; } }
@media (orientation: portrait) {
  .sakura-loader-title { top: 20%; width: min(82%, 560px); }
  .intro-mini { left: 12%; bottom: 8%; width: clamp(100px, 33%, 180px); }
}

.mini-sprite { display: block; width: 100%; height: 100%; background-image: url("assets/sakura-v3/mini-xiaohai.webp"); background-repeat: no-repeat; background-size: 300% 300%; background-position: 0 0; }
.mini-sprite[data-pose="1"] { background-position: 50% 0; }
.mini-sprite[data-pose="2"] { background-position: 100% 0; }
.mini-sprite[data-pose="3"] { background-position: 0 50%; }
.mini-sprite[data-pose="4"] { background-position: 50% 50%; }
.mini-sprite[data-pose="5"] { background-position: 100% 50%; }
.mini-sprite[data-pose="6"] { background-position: 0 100%; }
.mini-sprite[data-pose="7"] { background-position: 50% 100%; }
.mini-sprite[data-pose="8"] { background-position: 100% 100%; }
.mini-sprite[data-pose="heart"] { background: url("assets/sakura-v3/mini-xiaohai-heart.png") center / contain no-repeat; }
.companion { position: fixed; z-index: 40; left: 8px; bottom: max(12px, env(safe-area-inset-bottom)); width: 104px; display: grid; justify-items: center; pointer-events: none; }
.companion-character { position: relative; padding: 0; width: 104px; height: 112px; background: transparent; border: 0; cursor: grab; pointer-events: auto; touch-action: none; user-select: none; }
.companion-character:active { cursor: grabbing; }
.companion-panel { position: absolute; box-sizing: border-box; width: min(280px, calc(100vw - 16px)); overflow: auto; overscroll-behavior: contain; padding: 12px; border: 1px solid #e3a5bc; border-radius: 8px; background: #fffafd; color: #482434; box-shadow: 0 8px 28px #45243324; pointer-events: auto; font-size: 14px; }
.companion-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.companion-panel-heading .icon-button { width: 32px; height: 32px; color: #792647; }
.companion-greeting { min-height: 3em; margin: 4px 0 8px; line-height: 1.5; }
.companion-recommendation { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #9a2452; font-weight: 700; }
.companion-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.companion-actions button { display: grid; place-content: center; justify-items: center; gap: 3px; min-height: 48px; padding: 4px 2px; border: 1px solid #edc6d5; border-radius: 6px; background: #fff; color: #792647; cursor: pointer; font: inherit; font-size: 12px; }
.companion-actions button:hover { background: #fae7ee; }
.companion-actions .icon { width: 16px; height: 16px; }
.companion-actions .icon-heart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78Z'/%3E%3C/svg%3E"); }
@media (max-width: 1024px) {
  .companion { width: 56px; }
  .companion-character { width: 56px; height: 52px; overflow: hidden; }
  .companion-character .mini-sprite { position: absolute; width: 83px; height: 83px; left: -14px; top: 0; }
}
.motion-panel { position: fixed; z-index: 60; width: min(292px, calc(100vw - 24px)); right: 16px; bottom: 92px; padding: 14px 18px 16px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 30px #32203620; }
.motion-panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.motion-panel h2 { font-size: 18px; }
.motion-system-note { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.motion-panel-heading .icon-button { border: 0; }
.motion-panel label { display: grid; grid-template-columns: 22px 1fr 42px; align-items: center; gap: 12px; min-height: 50px; cursor: pointer; font-size: 14px; }
.motion-panel input { appearance: none; width: 42px; height: 26px; margin: 0; border: 1px solid #bdb5bd; border-radius: 20px; background: #d6d1d7; cursor: pointer; position: relative; }
.motion-panel input::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; left: 2px; top: 2px; box-shadow: 0 1px 3px #0002; transition: transform 160ms ease; }
.motion-panel input:checked { background: var(--accent); border-color: var(--accent); }
.motion-panel input:checked::before { transform: translateX(16px); }
.motion-panel input:disabled { opacity: .5; cursor: default; }
.motion-master { display: flex; gap: 10px; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; font-size: 13px; }
.site-toast { position: fixed; z-index: 100; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 18px; max-width: calc(100% - 40px); border: 1px solid #c5d9c8; border-radius: 6px; background: #f1f8ef; color: #29472d; font-size: 13px; box-shadow: 0 4px 18px #273f2612; }
body.is-loading .companion, body.is-project-open .companion, body.is-article-open .companion { visibility: hidden; }
.site-toast[data-kind="error"] { color: #922841; border-color: #e0b0bd; background: #fff2f5; }
html[data-theme="starfield"] .project-cover .art, html[data-theme="starfield"] .article-cover, html[data-theme="starfield"] .capability-art, html[data-theme="starfield"] .companion, html[data-theme="starfield"] .contact-character { display: none; }
html[data-theme="starfield"] .project-cover-credinet, html[data-theme="starfield"] .project-cover-studies { display: none; }
html[data-theme="starfield"] .lead-project > h3 { color: #292a32; }
html[data-theme="starfield"] .lead-project > .card-topline { color: #60616f; }
html[data-theme="starfield"] .lead-project > .card-topline span:first-child { color: #a52e5c; }
html[data-theme="starfield"] .article-card details { display: block; }
html[data-theme="starfield"] .project-filters { margin-top: 20px; }
html[data-theme="starfield"] .project-teaser { margin-bottom: 20px; }

html[data-petals-motion="off"] .sakura-field, html[data-petals-motion="off"] .studio-petals { display: none !important; }
html[data-scene-motion="off"] .studio-world { transform: none !important; }
html[data-scene-motion="off"] .studio-image { transition: none !important; }
html[data-motion-paused="true"] { scroll-behavior: auto; }
.is-motion-paused .art, .is-motion-paused .timeline-petal, .is-motion-paused .project-card, .is-motion-paused .motion-panel input::before { transition: none !important; }
.is-motion-paused .reveal { transition: none !important; opacity: 1; transform: none; }
.is-motion-paused .project-dialog[open], .is-motion-paused .article-dialog[open], .is-motion-paused .project-card.is-filter-entering, .is-motion-paused .companion-character { animation: none !important; }
.is-motion-paused .article-cover:hover .art, .is-motion-paused .capability-art:hover .art, .is-motion-paused .project-card:hover .art { transform: none !important; }
.is-background .studio-world { transform: none !important; }
@keyframes resultIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes drawerOut { to { opacity: 0; transform: translateX(32px); } }

@media (max-width: 1199px) {
  .research-thread-step { gap: 10px; }
  .research-thread-step .art { width: 100px; }
  .research-thread-step > span:last-child { padding-inline: 10px; }
  html[data-theme="sakura"] .hero-copy h1 { font-size: 88px; }
  html[data-theme="sakura"] .project-card > h3 { font-size: 23px; }
  html[data-theme="sakura"] .project-card > .project-teaser { font-size: 13px; }
  html[data-theme="sakura"] .timeline-item { grid-template-columns: 172px minmax(0, 1fr); gap: 18px; }
  html[data-theme="sakura"] .timeline-item > div { grid-template-columns: 1fr; gap: 4px; }
  html[data-theme="sakura"] .article-list { gap: 18px; }
  html[data-theme="sakura"] .article-card h3 { font-size: 20px; }
  html[data-theme="sakura"] .article-card { display: flex; flex-direction: column; align-items: stretch; }
  html[data-theme="sakura"] .article-cover { width: 180px; max-width: 100%; margin: 0 auto 16px; }
  html[data-theme="sakura"] .contact-copy h2 { font-size: 34px; }
  html[data-theme="sakura"] .contact-character { right: 6%; width: 240px; height: 240px; }
  .footer-signoff { display: none; }
}
@media (max-width: 900px) {
  html[data-theme="sakura"] .project-card { min-height: 264px; padding: 20px; }
  html[data-theme="sakura"] .project-card > h3 { max-width: 52%; }
  html[data-theme="sakura"] .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  html[data-theme="sakura"] .focus-grid > div:nth-child(3) { border-left: 0; }
  .footer-socials { gap: 18px; }
  .footer-socials > a { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
  .footer-socials > a > .icon:last-child { display: none; }
  .footer-socials > a + a { padding-left: 18px; }
}
@media (max-width: 800px) {
  html[data-theme="sakura"] .research-thread { display: none; }
  :root { --gutter: 24px; }
  .ui-ready .nav-shell, html[data-theme="sakura"] .ui-ready .nav-shell { position: relative; display: flex; min-height: 60px; padding-block: 0; justify-content: space-between; }
  .ui-ready .mobile-menu-toggle { display: inline-grid; border: 0; }
  .ui-ready .nav-links { position: absolute; left: 0; right: 0; top: 100%; padding: 12px var(--gutter) 18px; background: var(--header); border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px #2115280b; display: none; }
  .ui-ready.nav-open .nav-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; }
  .ui-ready .nav-links a, html[data-theme="sakura"] .ui-ready .nav-links a { min-height: 44px; font-size: 14px; justify-content: center; }
  .ui-ready .nav-controls { margin-left: auto; }
  html[data-theme="sakura"] .hero-copy { position: relative; order: 0; width: 100%; max-width: none; background: none; padding: 72px var(--gutter) 0; }
  html[data-theme="sakura"] .studio-stage { display: block; position: relative; height: min(680px, calc(100svh - 195px)); min-height: 430px; max-height: none; padding: 0; background: #e5edfb; overflow: hidden; }
  html[data-theme="sakura"] .studio-visual { position: absolute; inset: 0; height: auto; }
  html[data-theme="sakura"] .studio-world { inset: 0; height: 100%; transform: none; }
  html[data-theme="sakura"] .studio-image { object-position: 50% 50%; }
  html[data-theme="sakura"] .studio-visual::after { background: linear-gradient(#ffffff20, #ffffff30 38%, transparent 58%); }
  html[data-theme="sakura"] .hero-copy h1 { max-width: none; font-size: 68px; }
  html[data-theme="sakura"] .hero-summary, html[data-theme="sakura"] .hero-socials { display: none; }
  html[data-theme="sakura"] .hero-subtitle { font-size: 17px; line-height: 1.7; max-width: 500px; }
  html[data-theme="sakura"] .hero-actions { margin-top: 18px; }
  html[data-theme="sakura"] .hero-actions .button { min-height: 44px; }
  html[data-theme="sakura"] .studio-hotspots { display: block; }
  html[data-theme="sakura"] .character-switch { display: none; }
  html[data-theme="sakura"] .scene-hotspot { min-height: 44px; width: 44px; padding: 0; }
  html[data-theme="sakura"] .scene-hotspot > span:not(.icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html[data-theme="sakura"] .scene-hotspot::after { display: none; }
  html[data-theme="sakura"] .studio-toolbar { min-height: 60px; padding-block: 4px; }
  html[data-theme="sakura"] .studio-mode { font-size: 13px; min-height: 48px; }
  .studio-modes { gap: 4px; }
  .studio-motion { display: none; }
  html[data-theme="sakura"] #motionToggle { display: inline-grid; border: 0; }
  html[data-theme="sakura"] .story-section:not(.hero-section) { padding-block: 40px; }
  html[data-theme="sakura"] .panel-heading h2 { font-size: 28px; }
  html[data-theme="sakura"] .project-grid { grid-template-columns: 1fr; }
  html[data-theme="sakura"] .project-card { min-height: 252px; padding: 24px; }
  html[data-theme="sakura"] .project-card > h3 { font-size: 27px; max-width: 48%; }
  html[data-theme="sakura"] .project-card > .project-teaser { font-size: 14px; }
  html[data-theme="sakura"] .project-filters { grid-column: 1 / -1; justify-self: stretch; margin-top: 4px; }
  html[data-theme="sakura"] .project-filters button { flex: 1; }
  html[data-theme="sakura"] .timeline-item { grid-template-columns: 160px minmax(0, 1fr); padding: 15px 16px; }
  html[data-theme="sakura"] .article-list { grid-template-columns: 1fr; gap: 24px; }
  html[data-theme="sakura"] .article-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  html[data-theme="sakura"] .article-cover { width: 100%; margin: 0; }
  html[data-theme="sakura"] .article-card + .article-card { border-left: 0; padding-left: 0; }
  html[data-theme="sakura"] .article-body, html[data-theme="sakura"] .article-card + .article-card .article-body { border: 0; padding: 0; }
  html[data-theme="sakura"] .article-card h3 { font-size: 22px; min-height: 0; }
  html[data-theme="sakura"] .article-card .article-summary { margin-block: 10px; }
  html[data-theme="sakura"] .contact-copy { max-width: 72%; }
  html[data-theme="sakura"] .contact-copy h2 { font-size: 30px; }
  html[data-theme="sakura"] .contact-character { right: 0; width: 220px; height: 220px; bottom: 16px; }
  .site-footer { flex-wrap: wrap; gap: 12px; }
  .site-footer .footer-links { gap: 14px; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .ui-ready .nav-shell, html[data-theme="sakura"] .ui-ready .nav-shell { min-height: 56px; gap: 8px; }
  .brand { font-size: 22px; }
  .nav-controls { gap: 0; }
  .language-toggle { padding-left: 8px; margin: 0; border-left: 0; }
  html[data-theme="sakura"] #motionToggle { display: none; }
  html[data-theme="sakura"] .hero-copy { padding-top: 72px; }
  html[data-theme="sakura"] .hero-copy h1 { font-size: 56px; }
  html[data-theme="sakura"] .hero-copy .eyebrow { font-size: 10px; }
  html[data-theme="sakura"] .hero-subtitle { font-size: 16px; max-width: 360px; }
  html[data-theme="sakura"] .hero-actions { gap: 10px; margin-top: 14px; }
  html[data-theme="sakura"] .hero-actions .button { min-width: 0; min-height: 44px; font-size: 13px; width: auto; flex: 1; max-width: 160px; padding-inline: 12px; }
  html[data-theme="sakura"] .studio-stage { height: calc(100svh - 190px); min-height: 420px; max-height: 680px; }
  html[data-theme="sakura"] .studio-mode { flex-direction: column; gap: 2px; font-size: 11px; min-height: 52px; }
  html[data-theme="sakura"] .studio-mode .icon { display: inline-block; width: 18px; height: 18px; }
  html[data-theme="sakura"] .story-section:not(.hero-section) { padding-block: 36px; }
  html[data-theme="sakura"] .panel-heading { gap: 10px; margin-bottom: 22px; }
  html[data-theme="sakura"] .panel-heading h2 { font-size: 26px; grid-column: 1 / -1; }
  html[data-theme="sakura"] .panel-heading > .eyebrow { font-size: 10px; }
  html[data-theme="sakura"] .research-controls { grid-column: 1 / -1; justify-content: space-between; }
  html[data-theme="sakura"] .project-filters { gap: 6px; }
  html[data-theme="sakura"] .project-filters button { min-width: 0; padding: 6px 10px; font-size: 12px; }
  html[data-theme="sakura"] .project-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 264px; padding: 20px; }
  html[data-theme="sakura"] .project-card > h3 { grid-column: 1 / -1; grid-row: 2; font-size: 23px; max-width: 100%; }
  html[data-theme="sakura"] .project-card > .project-teaser { grid-column: 1; grid-row: 3; max-width: none; font-size: 13px; margin-bottom: 0; }
  html[data-theme="sakura"] .project-card > .project-cover { position: relative; grid-column: 2; grid-row: 3; align-self: center; width: calc(100% + 20px); bottom: auto; margin-top: 12px; }
  html[data-theme="sakura"] .project-card[data-project="credinet"] > h3 { max-width: 80%; }
  html[data-theme="sakura"] .project-card[data-project="credinet"] { min-height: 286px; }
  html[data-theme="sakura"] .project-card > .card-topline { grid-column: 1 / -1; grid-row: 1; margin-bottom: 12px; font-size: 10px; }
  html[data-theme="sakura"] .project-card > details, html[data-theme="sakura"] .project-card > .project-link { grid-column: 1 / -1; }
  html[data-theme="sakura"] .project-actions { grid-column: 1 / -1; gap: 8px; margin-top: 12px; }
  html[data-theme="sakura"] .project-actions summary { font-size: 12px; padding-inline: 10px; }
  html[data-theme="sakura"] .timeline { padding-left: 26px; }
  html[data-theme="sakura"] .timeline::before { left: 5px; top: 34px; bottom: 34px; }
  html[data-theme="sakura"] .timeline-item { display: block; padding: 14px 12px; min-height: 96px; }
  html[data-theme="sakura"] .timeline-item::before { left: -26px; top: 29px; }
  html[data-theme="sakura"] .timeline-petal { left: 0; }
  html[data-theme="sakura"] .timeline-item time { font-size: 12px; }
  html[data-theme="sakura"] .timeline-item h3 { font-size: 17px; margin-top: 2px; }
  html[data-theme="sakura"] .timeline-item .role { font-size: 12px; }
  html[data-theme="sakura"] .timeline-item > div { gap: 3px; }
  html[data-theme="sakura"] .article-card { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
  html[data-theme="sakura"] .article-card .card-topline { flex-wrap: wrap; gap: 4px 8px; font-size: 10px; margin-bottom: 7px; }
  html[data-theme="sakura"] .article-card .card-topline span + span { display: none; }
  html[data-theme="sakura"] .article-card h3 { font-size: 19px; }
  html[data-theme="sakura"] .article-card .article-summary { display: none; }
  .article-actions { margin-top: 10px; gap: 6px; }
  .article-read { min-height: 44px; font-size: 12px; padding: 6px 10px; }
  html[data-theme="sakura"] .research-thread { gap: 14px; font-size: 11px; padding-top: 22px; }
  html[data-theme="sakura"] .research-thread .icon { width: 12px; }
  html[data-theme="sakura"] .focus-grid { gap: 24px 12px; }
  html[data-theme="sakura"] .focus-grid > div { padding-inline: 6px; }
  html[data-theme="sakura"] .focus-grid > div > span { font-size: 16px; }
  html[data-theme="sakura"] .focus-grid p { font-size: 11px; }
  .focus-grid .proof-link { font-size: 11px; align-items: flex-start; }
  .capability-proof { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .capability-proof > button { grid-column: 2; justify-self: end; }
  .capability-proof h3 { font-size: 17px; overflow-wrap: anywhere; }
  .capability-proof p { font-size: 12px; }
  html[data-theme="sakura"] #contact { width: 100%; min-width: 0; min-height: 640px; aspect-ratio: 971 / 1619; padding-block: 42px 330px; }
  html[data-theme="sakura"] .contact-backdrop { --art-image: url("assets/sakura-v3/mobile-contact-garden.webp"); background-position: center; }
  html[data-theme="sakura"] .contact-backdrop::after { background: linear-gradient(#ffffff24, #ffffff10 45%, transparent); }
  html[data-theme="sakura"] .contact-copy { max-width: 100%; }
  html[data-theme="sakura"] .contact-copy h2 { font-size: 27px; }
  html[data-theme="sakura"] .contact-summary { font-size: 13px; margin-top: 12px; }
  html[data-theme="sakura"] .contact-actions { margin-top: 16px; }
  html[data-theme="sakura"] .contact-email { font-size: 21px; }
  html[data-theme="sakura"] .contact-character { width: 240px; height: 240px; left: 48%; right: auto; bottom: 6%; transform: translateX(-50%); }
  html[data-theme="sakura"] .mail-link { margin-top: 4px; min-height: 44px; font-size: 13px; }
  .footer-socials { grid-template-columns: 1fr; padding-block: 18px; gap: 0; }
  .footer-socials > a, .footer-socials > a + a { grid-template-columns: 32px minmax(0, 1fr) 20px; border-left: 0; border-bottom: 1px solid var(--line); padding: 14px 0; min-height: 76px; }
  .footer-socials > a > .icon:last-child { display: inline-block; }
  .footer-socials strong { font-size: 18px; }
  .site-footer { padding-block: 18px 76px; font-size: 11px; }
  .footer-links { gap: 12px; }
  .footer-links .text-link { font-size: 11px; }
  .project-dialog { width: 100%; border: 0; }
  .project-dialog .dialog-content { padding: 24px 20px 36px; }
  html[data-theme="sakura"] .project-dialog .project-cover { margin: -24px -20px 24px; }
  .article-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  #articleDialogContent { display: block; padding: 20px 24px 36px; }
  .article-preview-art { position: static; width: 180px; margin: 0 auto 24px; }
  .article-preview-body h2 { font-size: 28px; }
  .motion-panel { bottom: 76px; right: 12px; }
}
@media (max-width: 360px) {
  html[data-theme="sakura"] .hero-copy h1 { font-size: 50px; }
  html[data-theme="sakura"] .hero-subtitle { font-size: 14px; }
  html[data-theme="sakura"] .project-card > h3 { font-size: 23px; }
  html[data-theme="sakura"] .article-card { grid-template-columns: 82px minmax(0, 1fr); }
  html[data-theme="sakura"] .article-card h3 { font-size: 17px; }
  html[data-theme="sakura"] .contact-email { font-size: 18px; }
  .footer-links { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sakura-loader-title path { animation: none; stroke-dashoffset: 0; }
  .intro-mini { animation: none; opacity: 1; }
  .intro-blooms i { animation: none; }
  .art, .timeline-petal, .project-card, .motion-panel input::before { transition: none !important; }
  .article-cover:hover .art, .capability-art:hover .art, .project-card:hover .art { transform: none !important; }
  .project-dialog[open], .article-dialog[open], .project-card.is-filter-entering, .companion-character { animation: none !important; }
}
@media (min-width: 801px) and (max-height: 650px) {
  html[data-theme="sakura"] .studio-stage { height: calc(100svh - 190px); min-height: 300px; padding-block: 18px; }
  html[data-theme="sakura"] .hero-copy h1 { font-size: 72px; }
  html[data-theme="sakura"] .hero-subtitle { font-size: 16px; }
  html[data-theme="sakura"] .hero-summary { display: none; }
  html[data-theme="sakura"] .hero-actions { margin-top: 16px; }
  html[data-theme="sakura"] .hero-socials { margin-top: 12px; }
}
@media (max-width: 800px) and (orientation: landscape) {
  html[data-theme="sakura"] .hero-copy { width: 57%; padding-top: 24px; }
  html[data-theme="sakura"] .hero-copy h1 { font-size: 56px; }
  html[data-theme="sakura"] .studio-hotspots { display: none; }
}
@media (max-width: 800px) and (max-height: 560px) {
  html[data-theme="sakura"] .studio-stage { height: calc(100svh - 150px); min-height: 210px; }
  html[data-theme="sakura"] .hero-copy { width: 57%; padding-top: 12px; }
  html[data-theme="sakura"] .hero-copy h1 { font-size: 40px; }
  html[data-theme="sakura"] .hero-copy .eyebrow { display: none; }
  html[data-theme="sakura"] .hero-subtitle { font-size: 13px; margin-top: 4px; }
  html[data-theme="sakura"] .hero-actions { margin-top: 12px; }
  html[data-theme="sakura"] .hero-actions .button { font-size: 12px; padding-inline: 8px; }
  html[data-theme="sakura"] .studio-toolbar { min-height: 52px; }
  html[data-theme="sakura"] .studio-mode { min-height: 44px; flex-direction: row; font-size: 11px; }
}

.timeline-guide, .timeline-illustration, .section-sakura, .capability-flow, .capability-signature, .capability-title .icon { display: none; }
html[data-theme="sakura"] :is(#work, #focus) { position: relative; isolation: isolate; }
html[data-theme="sakura"] .section-sakura { display: block; position: absolute; z-index: -1; top: 0; right: 0; width: min(48%, 720px); pointer-events: none; }
html[data-theme="sakura"] .timeline-illustration { display: block; width: 100%; mix-blend-mode: multiply; }
html[data-theme="sakura"] .timeline-art-2 { filter: brightness(1.13) saturate(.85); }
html[data-theme="sakura"] :is(#work, #focus) .panel-heading h2 { font-size: 36px; }
html[data-theme="sakura"] .timeline-item::before { content: "\273f"; color: var(--accent); font-size: 19px; line-height: 1; width: auto; height: auto; border: 0; background: transparent; top: calc(50% - 10px); }
html[data-theme="sakura"] .timeline-item.is-current::before { color: #e62b72; background: transparent; box-shadow: none; }
html[data-theme="sakura"] .timeline-petal { opacity: 0; }
html[data-theme="sakura"] .timeline-item time { color: var(--accent); font-weight: 700; }
html[data-theme="sakura"] .timeline-item h3 { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
html[data-theme="sakura"] .capability-signature { display: flex; align-items: baseline; gap: 12px; margin: -8px 0 22px; font-size: 15px; }
.capability-signature::before { content: ""; width: 28px; height: 2px; background: var(--accent); flex-shrink: 0; transform: translateY(-4px); }
html[data-theme="sakura"] .capability-title { display: flex; align-items: center; gap: 9px; min-height: 44px; }
html[data-theme="sakura"] .capability-title .icon { display: inline-block; flex: 0 0 24px; width: 24px; height: 24px; color: var(--accent); }
html[data-theme="sakura"] .capability:has(.capability-art[aria-pressed="true"]) .capability-title > span:last-child { text-decoration: underline 2px var(--accent); text-underline-offset: 7px; }
html[data-theme="sakura"] [data-capability="engineering"] .capability-title .icon,
html[data-theme="sakura"] [data-capability="ecosystem"] .capability-title .icon { color: #567347; }
html[data-theme="sakura"] [data-capability="writing"] .capability-title .icon { color: #496da4; }
html[data-theme="sakura"] .capability-art { display: grid; align-items: end; aspect-ratio: 1.30; margin: 4px 0 0; padding-bottom: 6px; }
html[data-theme="sakura"] .capability-art[aria-pressed="true"] { border-bottom-color: transparent; }
html[data-theme="sakura"] .capability-art:is(:hover, :focus-visible) { border-bottom-color: var(--accent); }
html[data-theme="sakura"] .capability .proof-link { display: flex; width: 100%; border-top: 1px solid var(--line); padding-block: 8px; }
html[data-theme="sakura"] .capability-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 18px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.capability-flow li { position: relative; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.capability-flow li .icon { flex-shrink: 0; color: #55734c; }
.capability-flow li:first-child .icon, .capability-flow li:not(:last-child)::after { color: var(--accent); }
.capability-flow li:nth-child(2) .icon { color: #496da4; }
.capability-flow li:not(:last-child)::after { content: "\2192"; position: absolute; right: -12px; }
html[data-theme="sakura"] #focus .skill-cloud { justify-content: center; }
@media (min-width: 1101px) {
  html[data-theme="sakura"] .timeline { margin-left: 112px; }
  html[data-theme="sakura"] .timeline-guide { display: block; position: absolute; width: 128px; left: -128px; top: clamp(0px, calc(var(--timeline-y, 46px) - 34px), calc(100% - 180px)); mix-blend-mode: multiply; transition: top 200ms ease; }
  html[data-theme="sakura"] .timeline-item { grid-template-columns: 205px minmax(0, 1fr) minmax(125px, 18%); gap: 20px; padding: 10px 16px; min-height: 88px; }
  html[data-theme="sakura"] .timeline-item time { font-size: 18px; }
  html[data-theme="sakura"] .timeline-item h3 { font-size: 21px; }
  html[data-theme="sakura"] .timeline-item > div { border-left: 1px solid var(--line); padding-left: 18px; }
  html[data-theme="sakura"] .timeline-item .role { border-left: 1px solid var(--line); padding-left: 14px; font-size: 14px; }
}
@media (max-width: 1100px) {
  html[data-theme="sakura"] .timeline-item { grid-template-columns: 160px minmax(0, 1fr) 115px; gap: 12px; }
  html[data-theme="sakura"] .timeline-item > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 700px) {
  html[data-theme="sakura"] .section-sakura { width: 58%; opacity: .65; }
  html[data-theme="sakura"] :is(#work, #focus) .panel-heading h2 { font-size: 26px; }
  html[data-theme="sakura"] #work .panel-heading h2 { padding-right: 52px; }
  html[data-theme="sakura"] .timeline-guide { display: block; position: absolute; width: 48px; top: -73px; right: 4px; mix-blend-mode: multiply; }
  html[data-theme="sakura"] .timeline-item { display: grid; grid-template-columns: minmax(0, 1fr) 75px; gap: 4px 8px; }
  html[data-theme="sakura"] .timeline-item time { grid-column: 1; }
  html[data-theme="sakura"] .timeline-item > div { grid-column: 1; }
  html[data-theme="sakura"] .timeline-item::before { top: 25px; }
  html[data-theme="sakura"] .timeline-illustration { grid-column: 2; grid-row: 1 / 3; }
  html[data-theme="sakura"] .capability-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .capability-flow li { justify-content: flex-start; font-size: 12px; }
  .capability-flow li:nth-child(2)::after { display: none; }
}
