/* style.css */
@font-face { font-family: Inter; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Bricolage; src: url('/assets/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }
:root {
  --paper: #fcfbfe; --ink: #2e2640; --muted: #686071; --purple: #855ede;
  --purple-text: #6944b6; --red: #ff4d3a; --deep: #2e2640; --line: #ded9e8; --soft: #eee8fa;
  --font: Inter, Arial, sans-serif; --display: Bricolage, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--purple) var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: #cdb6f8; color: #2e2640; }
a { color: inherit; text-decoration: none; text-underline-offset: .25em; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
input { caret-color: var(--purple-text); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--purple-text); outline-offset: 5px; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.6vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
h3 { font-size: 1.9rem; }
p { max-width: 72ch; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
button, summary { touch-action: manipulation; }
.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 16px; transform: translateY(-160%); z-index: 100; padding: 12px 20px; background: var(--ink); color: white; border-radius: 8px; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.text-link, .back-link { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; font-size: .875rem; font-weight: 550; }
.text-link { text-decoration: underline; text-decoration-color: #c6b1e8; text-decoration-thickness: 1px; }
.text-link svg, .back-link svg { width: 17px; height: 17px; transition: transform 220ms var(--ease); }
.text-link:hover svg { transform: translate(3px, -3px); }
.text-link:hover { text-decoration-color: currentColor; }
.primary-action, .button, .atlas-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 50px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 8px; color: white; background: var(--ink); font-size: .875rem; font-weight: 500; transition: background 220ms var(--ease), border-color 220ms var(--ease); }
.primary-action:hover, .button:hover, .atlas-button:hover { background: var(--purple-text); border-color: var(--purple-text); }
.primary-action svg { width: 20px; height: 20px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--line); padding: 4px 9px; border-radius: 5px; color: #625770; font-size: .75rem; line-height: 1.6; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); font-size: .75rem; }
.footer p { margin-right: auto; }
.footer p span { display: block; color: var(--muted); }
.footer > a:last-child { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.monogram { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.13em; line-height: 1; }
.monogram span { color: var(--purple-text); }
.monogram i { color: var(--red); font-style: normal; }
.resume { max-width: 880px; padding-block: 40px 100px; font-size: .92rem; }
.resume-tools { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 40px; }
.resume > h1 { font-size: 3.8rem; margin-block: 12px 20px; }
.resume-contact { color: var(--muted); font-size: .85rem; margin-bottom: 22px; }
.resume-contact a { text-decoration: underline; }
.resume-summary { font-size: 1rem; }
.resume section { margin-top: 34px; }
.resume h2 { font-size: 1.75rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.resume article { margin-top: 22px; break-inside: avoid; }
.resume h3 { font-size: 1.1rem; letter-spacing: -.015em; }
.resume .resume-date { color: var(--muted); font-size: .8rem; margin-block: 5px 8px; }
.resume section > p + p { margin-top: 8px; }
.not-found { padding-block: 100px 160px; }
.not-found h1 { margin-block: 20px 40px; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .footer { flex-wrap: wrap; gap: 16px; }
  .footer .monogram { display: none; }
  .footer p { flex-basis: 60%; }
  .resume > h1 { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  @page { size: A4; margin: 15mm; }
  html, body { color: #17131d; background: white; font-size: 10pt; }
  .header, .footer, .resume-tools, .skip { display: none !important; }
  .resume { width: 100%; max-width: none; padding: 0; font-size: 9pt; line-height: 1.45; }
  .resume > h1 { font-size: 28pt; }
  .resume h2 { font-size: 15pt; }
  .resume h3 { font-size: 11pt; }
  .resume section { margin-top: 18px; }
  .resume a { color: inherit; }
  .resume article { margin-top: 14px; }
}

/* portfolio.css */
@view-transition { navigation: auto; }
.header.market-header {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  width: min(1320px, calc(100% - 96px)); height: 96px; margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 17px; flex-shrink: 0; }
.market-brand-name { display: block; font-size: .85rem; font-weight: 600; line-height: 1.5; }
.market-brand-name > span { display: block; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.market-header nav, .nav-links, .header-utilities { display: flex; align-items: center; gap: 28px; }
.nav-links a, .header-resume { display: flex; align-items: center; position: relative; min-height: 44px; font-size: .875rem; }
.nav-links a::after { content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 2px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-projects { border-left: 1px solid var(--line); padding-left: 28px; }
.languages { display: flex; align-items: center; gap: 4px; font-size: .8125rem; }
.languages a { display: grid; place-items: center; min-width: 32px; min-height: 44px; color: var(--muted); }
.languages a[aria-current] { color: var(--ink); font-weight: 650; }
.languages > span { color: #c1b9ca; }
.menu-toggle { display: none; }
.connection-hero { background: var(--soft); padding: 24px max(48px, calc((100vw - 1320px) / 2)) 0; overflow: hidden; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.audience-choice { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid #cfc3e5; border-radius: 50px; }
.audience-choice a { display: grid; place-items: center; min-height: 40px; padding: 5px 18px; border-radius: 30px; font-size: .8125rem; color: #675a7a; transition: background 200ms var(--ease), color 200ms var(--ease); }
.audience-choice a[aria-current] { background: var(--ink); color: white; }
.audience-choice a:not([aria-current]):hover { background: #e2d7f3; color: var(--ink); }
.hero-top > p { display: flex; align-items: center; gap: 12px; font-size: .8125rem; }
.location-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple-text); }
.connection-hero h1 { position: relative; z-index: 1; font-size: clamp(4rem, 8.6vw, 6rem); font-weight: 650; text-align: left; letter-spacing: -.04em; line-height: 1; padding-top: 28px; }
.connection-hero h1 > span { color: var(--red); }
/* One reading column (statement → bio → actions) beside the sculpture. */
.hero-composition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 48px; min-height: 360px; }
.hero-copy { padding-block: 28px 36px; }
.hero-statement { font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -.03em; font-weight: 550; line-height: 1.1; white-space: pre-line; margin-bottom: 20px; }
.hero-bio { max-width: 44ch; font-size: 1rem; line-height: 1.75; color: #4f4660; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-socials { display: flex; gap: 22px; margin-top: 18px; }
.hero-social { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .875rem; }
.hero-social svg { width: 15px; height: 15px; }
.hero-social:hover { text-decoration: underline; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 14px; border-top: 1px solid #d8cce9; font-size: .8125rem; }
.hero-foot a { display: flex; align-items: center; gap: 25px; min-height: 36px; }
.hero-foot a > span { font-size: 1.2rem; }
.confluence-scene { min-width: 0; margin: 0; }
.confluence-visual { position: relative; width: 100%; height: 320px; }
.confluence-visual > svg, .confluence-visual > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.confluence-visual > canvas { opacity: 0; }
.confluence-ready .confluence-visual > canvas { opacity: 1; }
.confluence-ready .confluence-fallback { opacity: 0; }
.confluence-caption { display: flex; justify-content: center; align-items: center; gap: 9px; padding-bottom: 16px; color: #635371; font-size: .75rem; }
.confluence-caption > span:first-child { font-weight: 650; }
.confluence-caption > span + span { border-left: 1px solid #bba9d1; padding-left: 9px; }
.selected-work, .atlas-about, .services { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.selected-work { padding-top: 56px; }
.work-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; padding-bottom: 42px; }
.work-intro h2 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
.work-intro > p { max-width: 44ch; font-size: 1rem; color: var(--muted); line-height: 1.8; }
.work-gallery { display: grid; gap: 70px; }
.work-piece { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 50px; }
.work-piece.work-reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.work-reverse > .work-cover { grid-column: 2; grid-row: 1; }
.work-reverse > .work-copy { grid-column: 1; grid-row: 1; }
.work-cover { display: block; position: relative; min-width: 0; width: 100%; aspect-ratio: 1.4; border-radius: 14px; isolation: isolate; overflow: hidden; }
.work-cover:focus-visible { outline-offset: 6px; }
.work-cover .scene-art { translate: var(--scene-x, 0px) var(--scene-y, 0px); transition: translate 400ms var(--ease); }
.work-open { display: grid; place-items: center; position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 2px 10px #2e264026; transition: background 250ms var(--ease), transform 350ms var(--ease); }
.work-cover :is(.scene-ze-heading, .scene-ar-heading, .scene-fi-heading) { right: 76px; }
.work-cover:hover .work-open, .work-cover:focus-visible .work-open { background: var(--red); color: var(--ink); transform: translate(2px, -2px); }
.work-context { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: .8125rem; margin-bottom: 14px; }
.work-context > span:first-child { color: var(--purple-text); background: #eee7f8; padding: 4px 8px; border-radius: 4px; }
.work-copy h3 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 15px; }
.work-copy h3 a { display: flex; align-items: center; gap: 15px; }
.work-copy h3 svg { width: 23px; height: 23px; color: var(--purple-text); transition: transform 200ms var(--ease); }
.work-copy h3 a:hover svg { transform: translate(3px, -3px); }
.work-copy h4 { font-size: 1.35rem; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; max-width: 28ch; margin-bottom: 12px; }
.work-summary { font-size: .9375rem; color: var(--muted); line-height: 1.75; }
.work-contribution { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.work-contribution h5 { font-family: var(--font); font-size: .8125rem; font-weight: 650; color: var(--purple-text); margin-bottom: 8px; }
.work-contribution p { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.work-copy .tags { margin-top: 16px; }
.work-copy > .text-link { margin-top: 14px; }
.work-catalog-link { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-top: 54px; padding: 28px 0; border-block: 1px solid var(--line); }
.work-catalog-link > span { font: 550 1.35rem/1.4 var(--display); }
.work-catalog-link small { display: block; font: 400 .875rem/1.65 var(--font); color: var(--muted); margin-top: 7px; }
.work-catalog-link strong { display: flex; align-items: center; gap: 25px; white-space: nowrap; font-size: .9rem; font-weight: 550; }
.work-catalog-link strong svg { transition: transform 220ms var(--ease); }
.work-catalog-link:hover strong svg { transform: translate(4px, -4px); }
.atlas-about { padding-top: 90px; }
.journey-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 50px; background: var(--ink); color: white; padding: 48px 60px; border-radius: 16px; }
.journey-copy h2 { font-size: clamp(2.2rem, 3.3vw, 3rem); white-space: pre-line; margin-bottom: 20px; }
.journey-copy > p { color: #cec2df; max-width: 49ch; font-size: 1rem; line-height: 1.8; }
.journey-stories { margin-top: 28px; }
.journey-stories section + section { margin-top: 20px; }
.journey-stories h3 { font-size: 1.4rem; margin-bottom: 10px; }
.journey-stories p { max-width: 47ch; color: #dcd1eb; font-size: .9375rem; line-height: 1.8; }
.journey-stories section > div { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .8125rem; margin-top: 14px; }
.journey-stories section > div span { color: #cec2df; }
.journey-map { position: relative; aspect-ratio: 500/520; margin: 0; width: 100%; max-width: 430px; justify-self: end; }
.journey-map > svg { width: 100%; height: 100%; overflow: visible; }
.brazil-shadow { fill: #211a32; }
.brazil-land { fill: #443655; stroke: #91809f; stroke-width: 1; }
.journey-route-base { fill: none; stroke: #74618d; stroke-width: 2; }
.journey-route { fill: none; stroke: #bd9def; stroke-width: 2.5; stroke-linecap: round; }
.journey-halo { fill: #855ede; opacity: .3; }
.journey-pin { fill: #c3a3fc; stroke: #2e2640; stroke-width: 2; }
.journey-traveller { fill: #ff745f; stroke: #2e2640; stroke-width: 2; }
.journey-city { position: absolute; display: block; transform: translate(16px, -15px); padding: 5px 10px; border: 1px solid transparent; border-radius: 6px; color: #e3d4ff; background: #2e2640; font-size: .8125rem; line-height: 1.5; }
.journey-city span { display: block; font-size: .6875rem; }
.journey-city[aria-current] { border-color: #9b78d8; }
.journey-city:hover { background: #493260; }
.journey-city:focus-visible, .journey-hero a:focus-visible { outline-color: #c4a4ff; }
.journey-map figcaption { text-align: center; font-size: .75rem; color: #c9b9da; }
.about-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 100px; padding-top: 70px; }
.about-columns h2 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); white-space: pre-line; margin-bottom: 28px; }
.atlas-timeline article { display: grid; grid-template-columns: 104px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.atlas-timeline time { font-size: .8125rem; color: var(--muted); padding-top: 5px; font-variant-numeric: tabular-nums; }
.atlas-timeline h4 { font-size: 1.25rem; margin-bottom: 6px; }
.atlas-timeline p { font-size: .9375rem; line-height: 1.8; color: var(--muted); }
.atlas-timeline .experience-role { font-size: .875rem; color: var(--purple-text); margin-bottom: 8px; }
.atlas-timeline .text-link { font-size: .875rem; margin-top: 5px; }
.about-toolbox > p { font-size: .9375rem; color: var(--muted); }
.about-toolbox dl { margin-block: 26px 0; }
.about-toolbox dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.about-toolbox dt { font-size: .875rem; font-weight: 600; }
.about-toolbox dd { margin: 6px 0 0; font-size: .9375rem; color: var(--muted); line-height: 1.8; }
.atlas-education { margin-top: 30px; }
.atlas-education h3 { font-size: 1.5rem; margin-bottom: 20px; }
.atlas-education p { display: grid; font-size: .9375rem; margin-bottom: 16px; }
.atlas-education p span { color: var(--muted); }
.atlas-education small { font-size: .8125rem; color: var(--muted); margin-top: 5px; }
.recognition { display: grid; grid-template-columns: 1fr 1.6fr; align-items: center; gap: 60px; padding: 30px 36px; margin-top: 44px; background: #eee8fa; border-radius: 12px; }
.recognition h2 { font-size: 1.6rem; white-space: pre-line; }
.atlas-awards { margin: 0; padding-left: 18px; font-size: .9375rem; }
.atlas-awards li { padding-block: 5px; }
.atlas-awards li::marker { color: var(--purple-text); }
.services { padding-top: 90px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 100px; }
.services h2 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); white-space: pre-line; margin-bottom: 22px; }
.services > div > p { font-size: 1rem; color: var(--muted); max-width: 42ch; }
.service-list details { border-bottom: 1px solid var(--line); }
.service-list details:first-child { border-top: 1px solid var(--line); }
.service-list summary { cursor: pointer; display: flex; justify-content: space-between; gap: 20px; list-style: none; padding-block: 22px; font: 550 1.4rem/1.3 var(--display); }
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary > span { font-family: var(--font); font-weight: 350; color: var(--purple-text); transition: transform 200ms var(--ease); }
.service-list details[open] summary > span { transform: rotate(45deg); }
.service-list p { font-size: .9375rem; line-height: 1.8; color: var(--muted); }
.service-list .service-tech { font-size: .8125rem; margin-top: 12px; }
.service-list .text-link { margin-block: 12px 20px; }
.atlas-contact { width: min(1320px, calc(100% - 96px)); margin: 90px auto 0; padding-block: 60px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 90px; border-top: 1px solid var(--line); }
.atlas-contact h2 { font-size: clamp(2.4rem, 3.7vw, 3.5rem); white-space: pre-line; margin-bottom: 24px; }
.contact-heading > p { font-size: 1rem; max-width: 44ch; color: var(--muted); }
.contact-heading .contact-response { color: var(--ink); font-weight: 550; font-size: .875rem; margin-top: 13px; }
.contact-actions { padding-top: 5px; align-self: center; min-width: 0; }
.contact-address { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 16px; border-bottom: 1px solid var(--purple); font: 550 clamp(1.8rem, 2.7vw, 2.5rem)/1.2 var(--display); letter-spacing: -.03em; }
.contact-address > svg { width: 42px; height: 42px; color: var(--purple-text); transition: transform 250ms var(--ease); }
.contact-address:hover > svg { transform: translate(5px, -5px); }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: .9375rem; }
.contact-email > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: #c6b1e8; }
.contact-email > a:hover { text-decoration-color: currentColor; }
.copy-email { border: 0; border-radius: 4px; background: var(--soft); color: var(--purple-text); min-height: 44px; padding: 7px 14px; font-size: .8125rem; }
.copy-email:hover { background: #e1d5f4; }
.copy-status { display: block; min-height: 24px; color: var(--purple-text); font-size: .8125rem; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 6px; }
.contact-socials a { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; }
.contact-socials a:hover { text-decoration: underline; }
.contact-socials svg { width: 15px; height: 15px; }
.atlas-archive, .atlas-case { width: min(1320px, calc(100% - 96px)); margin-inline: auto; padding-top: 44px; }
.archive-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; padding-bottom: 46px; }
.archive-intro h1 { white-space: pre-line; font-size: clamp(3rem, 5vw, 4.8rem); margin-bottom: 24px; }
.archive-intro p { font-size: 1rem; color: var(--muted); max-width: 57ch; }
.archive-total { display: flex; align-items: center; gap: 18px; padding-bottom: 7px; }
.archive-total strong { font: 500 5rem/1 var(--display); letter-spacing: -.04em; color: var(--purple-text); }
.archive-total span { font-size: .875rem; white-space: pre-line; }
.archive-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding-block: 20px; border-block: 1px solid var(--line); }
.archive-filters, .archive-views { display: flex; flex-wrap: wrap; gap: 5px; }
.archive-filters button, .archive-views button { border: 1px solid var(--line); border-radius: 6px; background: transparent; padding: 8px 12px; min-height: 40px; font-size: .8125rem; }
.archive-filters button[aria-pressed=true], .archive-views button[aria-pressed=true] { border-color: var(--ink); background: var(--ink); color: white; }
.archive-filters button:hover:not([aria-pressed=true]), .archive-views button:hover:not([aria-pressed=true]) { background: var(--soft); }
.archive-search { display: grid; gap: 4px; margin-left: auto; font-size: .65rem; }
.archive-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.archive-search input { width: 210px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: white; font-size: .875rem; }
.archive-search input::placeholder { color: #756b81; }
.archive-results { font-size: .8125rem; color: var(--muted); padding-block: 16px; font-variant-numeric: tabular-nums; }
.archive-field { position: relative; z-index: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 50px; background: #f3eff9; border-radius: 16px; padding: 38px; overflow: hidden; }
.archive-cluster { --cluster-ink: #6944b6; position: relative; min-width: 0; }
.archive-cluster > header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.archive-cluster > header h2 { font-size: 1.6rem; color: var(--cluster-ink); }
.archive-cluster > header > span { font-size: .8125rem; color: var(--cluster-ink); }
.archive-cluster > div { padding-left: 20px; }
.archive-cluster .archive-project { display: grid; grid-template-columns: 36px 1fr 18px; gap: 14px; align-items: center; min-height: 80px; padding: 14px; margin-bottom: 10px; background: var(--paper); border: 1px solid #dfd6eb; border-radius: 9px; }
.archive-project:nth-child(even) { margin-left: 20px; }
.archive-project:nth-child(odd) { margin-right: 20px; }
.archive-project:hover { border-color: var(--cluster-ink); }
.archive-project-mark { display: grid; place-items: center; width: 36px; height: 40px; border-radius: 7px; background: #eae0f6; color: var(--cluster-ink); font: 650 1.4rem/1 var(--display); transform: rotate(-5deg); transition: transform 250ms var(--ease); }
.archive-project:hover .archive-project-mark, .archive-project:focus-visible .archive-project-mark { transform: none; }
.archive-project > span:nth-child(2) { min-width: 0; }
.archive-project strong { display: block; font: 600 1.2rem/1.2 var(--display); letter-spacing: -.02em; }
.archive-project small { display: block; font-size: .8125rem; margin-top: 6px; color: var(--muted); }
.archive-project > svg { width: 17px; height: 17px; color: var(--cluster-ink); }
.archive-project-summary { display: none; font-size: .875rem; line-height: 1.75; color: var(--muted); margin-top: 8px; }
.archive-connections { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 1; opacity: .25; pointer-events: none; z-index: -1; }
.archive-connections path.is-active { opacity: 1; stroke-width: 2; }
.cluster-academic { grid-column: 1; grid-row: 1 / 4; }
.cluster-personal { grid-column: 2; grid-row: 1; }
.cluster-hackathon { grid-column: 2; grid-row: 2; --cluster-ink: #a84232; }
.cluster-freelance { grid-column: 1; grid-row: 4; --cluster-ink: #445d81; }
.cluster-other { grid-column: 2; grid-row: 3 / 5; --cluster-ink: #5f536e; }
.archive-list .archive-cluster, .archive-filtered .archive-cluster { grid-column: auto; grid-row: auto; }
.archive-list .archive-project, .archive-filtered .archive-project { margin-left: 0; margin-right: 0; }
.archive-list .archive-cluster > div, .archive-filtered .archive-cluster > div { padding-left: 0; }
.archive-list .archive-project-summary { display: block; }
.archive-list .archive-connections, .archive-filtered .archive-connections { display: none; }
.archive-empty { padding: 70px 24px; text-align: center; background: var(--soft); border-radius: 12px; }
.archive-empty h2 { font-size: 2rem; }
.archive-empty p { margin: 16px auto 24px; font-size: .875rem; }
html:not(.market-enhanced) .archive-toolbar { display: none; }
.atlas-archive .atlas-contact, .atlas-case .atlas-contact { width: 100%; }
.case-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .875rem; margin-bottom: 30px; }
.case-back svg { width: 17px; height: 17px; transform: rotate(-135deg); }
.dossier-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start; padding-bottom: 40px; }
.dossier-head h1 { font-size: clamp(3rem, 5vw, 5rem); margin-bottom: 24px; }
.dossier-summary { font-size: 1rem; line-height: 1.8; max-width: 53ch; color: var(--muted); }
.dossier-head dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dossier-head dt { font-size: .8125rem; color: var(--muted); margin-bottom: 7px; }
.dossier-head dd { margin: 0; font-size: .9375rem; line-height: 1.7; }
.dossier-visual > .project-scene { height: clamp(300px, 43vw, 560px); border-radius: 16px; }
.project-evidence { padding-block: 24px; border-bottom: 1px solid var(--line); }
.project-evidence > p { font-size: .875rem; margin-bottom: 12px; font-weight: 600; }
.project-evidence > div { display: flex; flex-wrap: wrap; gap: 12px; }
.project-evidence a { display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 12px 16px; min-height: 48px; font-size: .875rem; }
.project-evidence a:hover { border-color: var(--purple-text); }
.project-evidence a small { display: block; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.project-evidence svg { width: 17px; height: 17px; }
.dossier-body { padding-top: 26px; }
.dossier-index { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-block: 0 20px; border-bottom: 1px solid var(--line); }
.dossier-index a { display: flex; align-items: center; min-height: 40px; font-size: .875rem; }
.dossier-index a:hover { text-decoration: underline; }
.dossier-prose { max-width: 800px; margin-inline: auto; }
.dossier-prose > section { padding-top: 55px; }
.dossier-prose h2 { font-size: 2.2rem; margin-bottom: 24px; }
.dossier-prose p { font-size: 1.0625rem; line-height: 1.9; color: #5c5268; }
.dossier-prose p + p { margin-top: 18px; }
.dossier-decisions { display: grid; gap: 26px; }
.dossier-decisions h3 { font-size: 1.3rem; margin-bottom: 10px; }
.dossier-next { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 60px; padding-block: 28px; border-block: 1px solid var(--line); font-size: .875rem; }
.dossier-next strong { display: block; font: 600 2rem/1.2 var(--display); margin-top: 10px; }
.dossier-next > svg { width: 38px; height: 38px; color: var(--purple-text); }
.case-wordmark { display: grid; align-content: center; gap: 20px; min-height: 280px; padding: 50px; border-radius: 14px; background: var(--soft); }
.case-wordmark > span { font-size: .85rem; }
.case-wordmark > strong { font: 600 clamp(2rem, 5vw, 4.5rem)/1 var(--display); letter-spacing: -.035em; }
.system-stage { padding: 28px; border-radius: 14px; background: var(--soft); }
.system-stage figcaption, .stage-caption { font-size: .8125rem; color: var(--muted); }
.stage-map { display: flex; align-items: center; justify-content: space-around; gap: 20px; flex-wrap: wrap; min-height: 280px; padding: 24px; }
.system-links, .stage-stack { display: none; }
.system-node, .system-core { display: grid; justify-items: center; text-align: center; gap: 14px; font-size: .85rem; max-width: 180px; }
.system-node > svg { width: 40px; height: 40px; color: var(--purple-text); }
.system-core strong { font: 600 2.2rem/1.1 var(--display); letter-spacing: -.035em; }
.dossier-visual .project-print { display: block; background: var(--soft); border-radius: 14px; }
.dossier-visual .project-print > svg { display: block; width: 100%; height: 400px; }
.dossier-visual .project-print figcaption { font-size: .8125rem; padding: 12px; }
@media (max-width: 1100px) {
  .header.market-header { width: calc(100% - 64px); gap: 20px; }
  .market-header nav, .nav-links, .header-utilities { gap: 20px; }
  .nav-projects { padding-left: 20px; }
  .market-brand-name > span { display: none; }
  .hero-composition { gap: 28px; }
  .connection-hero { padding-inline: 32px; }
  .confluence-caption > span + span { display: none; }
  .selected-work, .atlas-about, .services, .atlas-contact, .atlas-archive, .atlas-case { width: calc(100% - 64px); }
  .work-piece, .work-piece.work-reverse { gap: 30px; grid-template-columns: 1fr 1fr; }
  .work-cover { aspect-ratio: 1.2; }
  .work-copy h4 { font-size: 1.22rem; }
  .journey-hero { padding: 36px; gap: 25px; }
  .about-columns { gap: 50px; }
  .atlas-contact { gap: 55px; }
  .services { gap: 55px; }
  .dossier-head { gap: 40px; }
  .archive-toolbar { gap: 12px; }
  .archive-search { margin-left: 0; }
}
@media (max-width: 850px) {
  .market-brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hero-composition { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
  .hero-statement { font-size: 1.75rem; }
  .work-intro { gap: 30px; }
  .work-intro > p { max-width: 37ch; font-size: .9375rem; }
  .work-cover { aspect-ratio: 1; }
  .work-copy h3 { font-size: 2rem; }
  .work-contribution p { font-size: .9375rem; }
  .work-summary { font-size: .875rem; }
  .work-copy .tags { gap: 4px; }
  .work-copy .tags li { font-size: .75rem; padding: 3px 7px; }
  .about-columns { grid-template-columns: 1.15fr 1fr; gap: 35px; }
  .atlas-timeline article { grid-template-columns: 1fr; gap: 8px; }
  .journey-hero { grid-template-columns: 1.1fr 1fr; padding: 30px; }
  .journey-copy > p { font-size: .9375rem; }
  .journey-city { font-size: .75rem; transform: translate(8px, -13px); }
  .journey-city span { font-size: .625rem; }
  .recognition { gap: 30px; padding: 28px; }
  .atlas-contact { gap: 35px; }
  .contact-socials { gap: 12px; }
  .dossier-head { grid-template-columns: 1fr; gap: 30px; }
  .dossier-head dl { grid-template-columns: repeat(4, 1fr); }
  .archive-field { gap: 26px; padding: 26px; }
  .archive-cluster .archive-project { grid-template-columns: 30px 1fr 16px; padding: 12px; gap: 10px; }
  .archive-project strong { font-size: 1rem; }
  .archive-project-mark { width: 30px; height: 34px; }
}
@media (max-width: 700px) {
  .header.market-header { position: relative; width: calc(100% - 40px); height: 78px; gap: 16px; }
  .market-brand-name, .market-brand-name > span { display: block; }
  .market-brand-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; font-size: .78rem; }
  .market-brand-name > span { font-size: .75rem; }
  .brand { gap: 13px; }
  .brand .monogram { font-size: 2.4rem; }
  .market-header nav { gap: 22px; }
  .menu-toggle { display: none; }
  .portfolio-enhanced .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: transparent; }
  .menu-toggle > span { width: 100%; height: 1.5px; background: var(--ink); transition: transform 200ms var(--ease); }
  .menu-open .menu-toggle > span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-toggle > span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .portfolio-enhanced .market-header nav { display: none; position: absolute; inset: 70px -20px auto; z-index: 30; background: var(--paper); padding: 20px; border-block: 1px solid var(--line); box-shadow: 0 16px 25px #2e26401a; }
  .portfolio-enhanced .market-header.menu-open nav { display: flex; align-items: stretch; flex-direction: column; gap: 18px; }
  .market-header .nav-links { flex-wrap: wrap; gap: 10px 22px; }
  .market-header .header-utilities { justify-content: space-between; }
  .nav-projects { border: 0; padding-left: 0; }
  .market-header .nav-links a { font-size: .85rem; }
  html:not(.portfolio-enhanced) .header.market-header { height: auto; min-height: 78px; flex-wrap: wrap; padding-block: 16px; }
  html:not(.portfolio-enhanced) .market-header nav { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
  html:not(.portfolio-enhanced) .header-utilities { margin-left: auto; }
  .connection-hero { padding: 18px 20px 0; }
  .hero-top { gap: 10px; align-items: flex-start; }
  .audience-choice { padding: 3px; gap: 0; }
  .audience-choice a { min-height: 40px; padding: 5px 13px; font-size: .75rem; }
  .hero-top > p { font-size: .75rem; gap: 6px; padding-top: 12px; }
  .location-dot { width: 5px; height: 5px; }
  .connection-hero h1 { font-size: clamp(2rem, 11.9vw, 5.3rem); padding-top: 26px; text-align: left; white-space: nowrap; }
  .hero-composition { display: grid; grid-template-columns: 1fr; gap: 0; min-height: 0; margin-top: 0; }
  .hero-copy { padding-block: 20px 8px; }
  .hero-statement { font-size: 1.6rem; line-height: 1.15; margin-bottom: 14px; }
  .hero-bio { font-size: 1rem; max-width: 48ch; margin-bottom: 22px; }
  .hero-actions { gap: 8px 22px; }
  .hero-actions .primary-action { min-height: 48px; padding-inline: 18px; gap: 16px; }
  .hero-socials { margin-top: 8px; }
  .confluence-scene { max-width: 300px; width: 100%; justify-self: center; margin-block: 0 4px; }
  .confluence-visual { height: auto; aspect-ratio: 1.55; }
  .confluence-caption { font-size: .6875rem; padding-bottom: 8px; }
  .confluence-caption > span + span { display: inline; }
  .hero-foot { padding-block: 13px; gap: 12px; font-size: .75rem; }
  .hero-foot p { max-width: 27ch; }
  .hero-foot a { gap: 12px; white-space: nowrap; }
  .selected-work, .atlas-about, .services, .atlas-contact, .atlas-archive, .atlas-case { width: calc(100% - 40px); }
  .selected-work { padding-top: 48px; }
  .work-intro { display: block; padding-bottom: 28px; }
  .work-intro h2 { font-size: clamp(2rem, 8.5vw, 2.8rem); margin-bottom: 17px; }
  .work-intro > p { max-width: 49ch; font-size: 1rem; }
  .work-gallery { gap: 44px; }
  .work-piece, .work-piece.work-reverse { grid-template-columns: 1fr; gap: 25px; }
  .work-reverse > .work-cover, .work-reverse > .work-copy { grid-column: auto; grid-row: auto; }
  .work-cover { aspect-ratio: 1.5; border-radius: 10px; }
  .work-open { width: 34px; height: 34px; right: 12px; top: 12px; }
  .work-open > svg { width: 18px; height: 18px; }
  .work-context { font-size: .75rem; margin-bottom: 12px; }
  .work-copy h3 { font-size: 2.1rem; margin-bottom: 12px; }
  .work-copy h4 { font-size: 1.3rem; max-width: 33ch; }
  .work-summary { font-size: .9375rem; }
  .work-contribution { margin-top: 16px; padding-top: 14px; }
  .work-contribution p { font-size: 1rem; }
  .work-copy .tags li { font-size: .75rem; padding: 4px 8px; }
  .work-cover :is(.scene-ze-heading, .scene-ar-heading, .scene-fi-heading) { right: 56px; }
  .work-copy > .text-link { margin-top: 10px; }
  .work-catalog-link { align-items: flex-start; gap: 18px; margin-top: 30px; padding-block: 24px; }
  .work-catalog-link > span { font-size: 1.15rem; max-width: 30ch; }
  .work-catalog-link small { font-size: .8125rem; }
  .work-catalog-link strong { font-size: .875rem; gap: 12px; padding-top: 6px; }
  .atlas-about { padding-top: 50px; }
  .journey-hero { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px 20px; border-radius: 12px; }
  .journey-copy h2 { font-size: 2.35rem; }
  .journey-copy > p { font-size: .9375rem; }
  .journey-stories { margin-top: 24px; }
  .journey-map { max-width: 360px; margin-top: -15px; }
  .journey-city { font-size: .75rem; }
  .journey-city span { font-size: .625rem; }
  .journey-map figcaption { font-size: .6875rem; }
  .about-columns { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .about-columns h2 { font-size: 2rem; margin-bottom: 24px; }
  .atlas-timeline article { grid-template-columns: 83px 1fr; gap: 16px; padding-block: 21px; }
  .atlas-timeline time { font-size: .75rem; }
  .atlas-timeline p { font-size: .9375rem; }
  .about-toolbox dl { margin-top: 22px; }
  .about-toolbox dd { font-size: .9375rem; }
  .atlas-education { margin-top: 26px; }
  .atlas-education h3 { font-size: 1.5rem; }
  .recognition { grid-template-columns: 1fr; gap: 18px; padding: 24px; margin-top: 32px; }
  .recognition h2 { font-size: 1.6rem; white-space: normal; }
  .atlas-awards { font-size: .9375rem; }
  .atlas-contact { grid-template-columns: 1fr; gap: 30px; padding-block: 40px; margin-top: 50px; }
  .atlas-contact h2 { font-size: 2.4rem; margin-bottom: 20px; }
  .contact-heading > p { font-size: 1rem; }
  .contact-heading .contact-response { font-size: .875rem; }
  .contact-address { font-size: 2rem; }
  .contact-address > svg { width: 34px; height: 34px; }
  .contact-email { font-size: .9375rem; }
  .contact-socials { gap: 20px; }
  .services { grid-template-columns: 1fr; gap: 28px; padding-top: 50px; }
  .services h2 { font-size: 2.3rem; }
  .service-list summary { font-size: 1.3rem; }
  .atlas-archive, .atlas-case { padding-top: 30px; }
  .archive-intro { display: block; padding-bottom: 30px; }
  .archive-intro h1 { font-size: 3rem; margin-bottom: 20px; }
  .archive-intro p { font-size: 1rem; }
  .archive-total { margin-top: 24px; }
  .archive-total strong { font-size: 3rem; }
  .archive-total span { font-size: .875rem; }
  .archive-toolbar { gap: 14px; }
  .archive-filters button, .archive-views button { font-size: .8125rem; padding-inline: 10px; }
  .archive-search { flex: 1 1 150px; }
  .archive-search input { width: 100%; font-size: 16px; }
  .archive-views { margin-left: auto; }
  .archive-field { grid-template-columns: 1fr; padding: 22px 14px; gap: 26px; border-radius: 10px; overflow: visible; }
  .archive-cluster { grid-column: 1; grid-row: auto; }
  .archive-cluster > header { padding-inline: 8px; margin-bottom: 14px; }
  .archive-cluster > header h2 { font-size: 1.5rem; }
  .archive-cluster > div { padding-left: 0; }
  .archive-cluster .archive-project { margin-inline: 0; min-height: 78px; grid-template-columns: 36px 1fr 17px; gap: 12px; }
  .archive-project strong { font-size: 1.13rem; }
  .archive-project small { font-size: .8125rem; }
  .archive-connections { display: none; }
  .dossier-head { padding-bottom: 28px; }
  .dossier-head h1 { font-size: 3rem; }
  .dossier-summary { font-size: 1rem; }
  .dossier-head dl { grid-template-columns: 1fr 1fr; gap: 20px; }
  .dossier-head dd { font-size: .875rem; }
  .dossier-visual > .project-scene { height: auto; aspect-ratio: 1.5; border-radius: 10px; }
  .project-evidence { padding-block: 20px; }
  .project-evidence a { flex: 1 1 140px; font-size: .875rem; gap: 16px; padding: 12px; }
  .dossier-index { gap: 2px 20px; }
  .dossier-index a { font-size: .8125rem; }
  .dossier-prose > section { padding-top: 36px; }
  .dossier-prose h2 { font-size: 1.9rem; margin-bottom: 18px; }
  .dossier-prose p { font-size: 1rem; line-height: 1.8; }
  .dossier-decisions h3 { font-size: 1.25rem; }
  .dossier-next { margin-top: 40px; }
  .dossier-next strong { font-size: 1.6rem; }
  .system-stage { padding: 20px; }
  .stage-map { padding: 20px 0; }
  .case-wordmark { min-height: 240px; padding: 30px; }
}
@media (max-width: 380px) {
  .market-brand-name > span { display: none; }
  .hero-top > p { font-size: .6875rem; }
  .audience-choice a { padding-inline: 10px; font-size: .6875rem; }
  .hero-foot { font-size: .6875rem; }
  .work-catalog-link { display: block; }
  .work-catalog-link strong { margin-top: 12px; }
  .atlas-timeline article { grid-template-columns: 1fr; gap: 8px; }
}

/* ——— Proposal: Confluence carried through the page ——— */
/* The coral period of the name closes every section title. */
.title-dot { color: var(--red); }
.journey-copy .title-dot { color: #ff745f; }
/* Two currents meet before each section: purple and coral overlap. */
.section-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-text); }
.section-mark-dots { display: inline-flex; }
.section-mark-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.section-mark-dots i + i { margin-left: -4px; background: var(--red); mix-blend-mode: multiply; }
.atlas-about > .section-mark { margin-bottom: 20px; }

/* Proof strip: the facts a reader scans for, right under the introduction. */
.hero-proof { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #d8cce9; }
.hero-proof li { display: grid; align-content: start; gap: 3px; padding: 0 22px; border-left: 1px solid #d8cce9; }
.hero-proof li:first-child { padding-left: 0; border-left: 0; }
.hero-proof strong { font: 600 1.2rem/1.25 var(--display); letter-spacing: -.02em; }
.hero-proof span { font-size: .8125rem; line-height: 1.5; color: #5d5370; }

/* Featured work: a rail that names the four cases and fills as you read. */
.work-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 48px; align-items: start; }
.work-layout > .work-gallery { min-width: 0; }
.work-rail { position: sticky; top: 32px; display: flex; gap: 16px; }
.work-rail ol { order: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.work-rail a { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: .875rem; color: var(--muted); transition: color 200ms var(--ease); }
.work-rail a > span { font-size: .75rem; font-variant-numeric: tabular-nums; color: #9a90a6; transition: color 200ms var(--ease); }
.work-rail a:hover { color: var(--ink); }
.work-rail a[aria-current] { color: var(--ink); font-weight: 600; }
.work-rail a[aria-current] > span { color: var(--red); }
.work-rail-track { order: 1; position: relative; width: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.work-rail-track > span { position: absolute; inset: 0; background: linear-gradient(var(--purple), var(--red)); transform-origin: top; transform: scaleY(var(--rail-progress, 0)); }
html:not(.market-enhanced) .work-rail-track { display: none; }
.work-contribution { position: relative; }
.work-contribution::before { content: ''; position: absolute; top: -1px; left: 0; width: 56px; height: 2px; background: var(--red); transform-origin: left; }

@media (max-width: 1100px) {
  .work-layout { display: block; }
  .work-rail { display: none; }
}
@media (max-width: 850px) {
  .hero-proof { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .hero-proof li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 700px) {
  .hero-proof { padding-block: 18px; }
  .hero-proof li { padding-inline: 14px; }
  .hero-proof li:nth-child(odd) { padding-left: 0; }
  .hero-proof strong { font-size: 1.05rem; }
  .hero-proof span { font-size: .75rem; }
  .section-mark { font-size: .75rem; }
}

/* project-scenes.css */
.project-scene {
  --scene-ink: #302940;
  --scene-muted: #675d77;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--scene-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.45;
  text-align: left;
  font-style: normal;
  font-weight: 400;
}
.project-scene *, .project-scene *::before, .project-scene *::after { box-sizing: border-box; }
.project-scene .scene-art { position: absolute; inset: 0 0 7%; font-size: clamp(8px, 1.7cqw, 15px); }
.project-scene strong { font-weight: 650; }
.project-scene small { font-size: .78em; }
.project-scene .scene-icon { width: 1.45em; height: 1.45em; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.project-scene figcaption { position: absolute; bottom: 3.2%; left: 5.4%; right: 5%; margin: 0; padding: 0; color: inherit; font: 400 clamp(9px, 1.5cqw, 12px)/1.4 Inter, Arial, sans-serif; }
.project-scene i { font-style: normal; }
.project-scene p { margin: 0; max-width: none; font-size: inherit; line-height: inherit; }
.project-scene svg { overflow: visible; }

/* A connected workspace, rather than a claimed screenshot of AveriCode. */
.scene-avericode { background: #272237; color: #f0e9fc; }
.scene-av-orbit { position: absolute; width: 82%; height: 115%; right: -27%; top: -11%; border: 1px solid #71628c; border-radius: 50%; transform: rotate(-20deg); }
.scene-av-orbit::after { content: ''; position: absolute; inset: 7%; border: 1px solid #544764; border-radius: 50%; }
.scene-av-window { position: absolute; top: 12%; left: 6.5%; width: 87%; height: 77%; color: #302940; background: #fcfbfe; border: 1px solid #e3dced; border-radius: .8em; box-shadow: 0 20px 35px #100c2445; overflow: hidden; transform: rotate(-3deg); transition: transform 550ms cubic-bezier(.16,1,.3,1); }
.scene-av-topbar { display: flex; align-items: center; gap: 4%; height: 14%; min-height: 2.8em; padding: 0 3%; border-bottom: 1px solid #e9e4ef; font-size: .8em; }
.scene-av-topbar > strong { display: flex; align-items: center; gap: .55em; font-size: 1.14em; }
.scene-av-logo { color: #7450b4; letter-spacing: -.08em; font-weight: 800; font-size: 1.5em; }
.scene-av-topbar > span:nth-child(2) { display: flex; align-items: center; gap: .45em; margin-left: auto; color: #746781; }
.scene-avatar { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: #ece2f8; color: #684c92; font-size: .9em; }
.scene-av-layout { height: 86%; display: grid; grid-template-columns: 23% 1fr; }
.scene-av-sidebar { display: flex; flex-direction: column; gap: .7em; background: #f3eff8; border-right: 1px solid #e9e4ef; padding: 1.35em .7em; font-size: .78em; }
.scene-av-sidebar > strong { padding: 0 .4em .4em; }
.scene-av-sidebar > span { display: flex; align-items: center; gap: .55em; padding: .5em .4em; white-space: nowrap; }
.scene-av-sidebar .scene-av-nav-active { color: #6944a5; background: #e7ddf4; border-radius: .3em; }
.scene-av-sidebar > small { margin-top: auto; padding: .5em .4em 0; color: #756789; }
.scene-av-sidebar .scene-av-connected { padding-top: 0; }
.scene-av-connected > i { display: block; width: .5em; height: .5em; border-radius: 50%; background: #4e7e65; }
.scene-av-main { padding: 1.5em 1.5em 1em; min-width: 0; }
.scene-av-heading { display: flex; align-items: flex-start; gap: .7em; justify-content: space-between; margin-bottom: 1.4em; }
.scene-av-heading > div { display: flex; flex-direction: column; gap: .25em; }
.scene-av-heading > div > span { color: #746781; font-size: .78em; }
.scene-av-heading strong { font-size: 1.18em; letter-spacing: -.03em; }
.scene-av-period { padding: .45em .65em; border: 1px solid #e3dced; border-radius: .3em; font-size: .69em; white-space: nowrap; }
.scene-av-table-head, .scene-av-repository { display: grid; grid-template-columns: 1.15fr 1fr .55fr; gap: .8em; align-items: center; }
.scene-av-table-head { padding-bottom: .7em; color: #746781; font-size: .7em; }
.scene-av-repository { padding: .8em 0; border-top: 1px solid #e9e4ef; font-size: .8em; }
.scene-av-repository > span:first-child { display: flex; gap: .65em; align-items: center; }
.scene-av-repository > span:first-child > .scene-icon { color: #8066a3; }
.scene-av-repository > span:first-child > span { display: flex; flex-direction: column; gap: .25em; }
.scene-av-repository small { color: #746781; display: flex; align-items: center; gap: .4em; }
.scene-repo-violet, .scene-repo-blue { width: .45em; height: .45em; border-radius: 50%; background: #8969c5; }
.scene-repo-blue { background: #639cb3; }
.scene-av-contributions { display: grid; grid-template-columns: repeat(10, 1fr); gap: .2em; }
.scene-av-contributions > i { aspect-ratio: 1; border-radius: 1px; background: #e8e1f1; }
.scene-av-contributions .scene-cell-1 { background: #c8b4e7; }
.scene-av-contributions .scene-cell-2 { background: #a485d2; }
.scene-av-contributions .scene-cell-3 { background: #8056b5; }
.scene-av-contributions .scene-cell-4 { background: #643e9d; }
.scene-av-members { display: flex; padding-left: .4em; }
.scene-av-members > i { display: grid; place-items: center; width: 1.8em; height: 1.8em; margin-left: -.35em; border: 2px solid #fcfbfe; border-radius: 50%; background: #f5d9cf; font-size: .7em; }
.scene-av-members > i:nth-child(2) { background: #e0d8ef; }
.scene-av-members > i:nth-child(3) { background: #dce9e1; }
.scene-av-bottom { display: flex; justify-content: space-between; gap: 1em; padding-top: 1em; color: #746781; font-size: .62em; }
.scene-av-bottom > span:first-child { display: flex; align-items: center; gap: .35em; }
.scene-av-notice { position: absolute; right: 3.5%; bottom: 6%; display: flex; align-items: center; gap: .8em; min-width: 29%; padding: .9em 1.1em; border: 1px solid #9a85bb; border-radius: .55em; color: #f5efff; background: #4f3b71; box-shadow: 0 8px 20px #100c2429; transform: rotate(2deg); }
.scene-av-notice > .scene-icon { color: #c8a5ff; }
.scene-av-notice > span { display: flex; flex-direction: column; gap: .15em; }
.scene-av-notice small { color: #e6d5fa; }
.scene-av-notice > i { display: grid; place-items: center; width: 1.5em; height: 1.5em; margin-left: .8em; background: #bbd6bd; border-radius: 50%; color: #285137; }
.scene-av-notice > i > .scene-icon { width: 1em; height: 1em; }

/* The assistant turns a sample message into an explicit calendar command. */
.scene-zelar { background: #e9e1fa; color: #453158; }
.scene-ze-heading { position: absolute; top: 7%; left: 6%; right: 6%; display: flex; justify-content: space-between; align-items: center; font-size: .82em; }
.scene-ze-brand { display: flex; gap: .4em; align-items: center; font-weight: 650; font-size: 1.7em; letter-spacing: -.04em; }
.scene-ze-brand > .scene-icon { width: 1em; height: 1em; }
.scene-ze-connection { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-ze-connection > path { fill: none; stroke: #ac86cc; stroke-width: 1.5; stroke-dasharray: 5 5; }
.scene-ze-packet { fill: #bf513b; }
.scene-ze-chat { position: absolute; left: 8%; top: 22%; width: 43%; height: 70%; border-radius: .9em; background: #fffafd; box-shadow: 0 12px 26px #4c2b7024; overflow: hidden; transform: rotate(-5deg); transition: transform 550ms cubic-bezier(.16,1,.3,1); }
.scene-ze-chat-head { display: flex; align-items: center; gap: .7em; height: 18%; padding: .8em 1em; border-bottom: 1px solid #eee3ee; }
.scene-ze-chat-head > span { display: grid; place-items: center; color: #f7f1fd; background: #745496; width: 2.5em; height: 2.5em; border-radius: 50%; }
.scene-ze-chat-head > div { display: flex; flex-direction: column; gap: .1em; }
.scene-ze-chat-head strong { font-size: .95em; }
.scene-ze-chat-head small { color: #80688d; }
.scene-ze-chat-head > i { width: .5em; height: .5em; margin-left: auto; background: #6c8c70; border-radius: 50%; }
.scene-ze-chat-body { padding: .7em 1em; font-size: .9em; }
.scene-ze-chat-date { display: block; text-align: center; color: #7e6a89; font-size: .66em; margin-bottom: .9em; }
.scene-ze-user, .scene-ze-answer { width: 88%; padding: .75em .9em; border-radius: .7em .7em .15em .7em; background: #e4d5f3; margin-left: auto; line-height: 1.45; }
.scene-ze-user > small, .scene-ze-answer > small { display: flex; align-items: center; justify-content: flex-end; gap: .3em; margin-top: .3em; color: #674d73; font-size: .65em; }
.scene-ze-answer { border-radius: .7em .7em .7em .15em; margin: .7em auto 0 0; background: #f1eaf1; }
.scene-ze-answer .scene-icon { width: 1em; height: 1em; }
.scene-ze-command { display: flex; align-items: center; gap: .6em; margin-top: .85em; padding: .75em 0 0; border-top: 1px solid #eee3ee; }
.scene-ze-command > .scene-icon { color: #b45b47; }
.scene-ze-command > span { display: flex; flex-direction: column; gap: .2em; }
.scene-ze-command strong { font-size: .85em; }
.scene-ze-command small { font-size: .62em; color: #80668c; }
.scene-ze-command > .scene-icon:last-child { margin-left: auto; color: #527a5b; width: 1.1em; }
.scene-ze-compose { display: flex; justify-content: space-between; align-items: center; color: #806b8c; position: absolute; bottom: 0; left: 0; right: 0; padding: .7em 1em; border-top: 1px solid #eee3ee; font-size: .72em; background: #fffafd; }
.scene-ze-calendar { position: absolute; right: 7%; top: 33%; width: 35%; padding: 1.2em; border-radius: .75em; color: #51405e; background: #fffdf9; transform: rotate(6deg); box-shadow: 0 12px 26px #4c2b7024; transition: transform 550ms cubic-bezier(.16,1,.3,1); }
.scene-ze-calendar-head { display: flex; align-items: center; gap: .6em; padding-bottom: 1em; font-size: 1.05em; }
.scene-ze-calendar-head .scene-icon { color: #b45b47; }
.scene-ze-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3em; text-align: center; font-size: .78em; }
.scene-ze-week > span { color: #826e8b; font-size: .8em; }
.scene-ze-week > i { padding: .4em 0; }
.scene-ze-week > .scene-ze-date-selected { background: #79529a; border-radius: 50%; color: #fff; }
.scene-ze-event { padding: .8em; margin-top: .85em; border-radius: .3em; background: #f7e1d7; font-size: .85em; }
.scene-ze-event > span { display: block; color: #955341; font-size: .8em; }
.scene-ze-event > strong, .scene-ze-event > small { display: block; margin-top: .2em; }
.scene-ze-event > small { color: #955341; font-size: .7em; }
.scene-ze-integrations { position: absolute; right: 6.5%; bottom: 2%; display: flex; gap: 1em; font-size: .68em; }
.scene-ze-integrations > span { display: flex; align-items: center; gap: .3em; }

/* Event shapes are visibly normalized; the JSON and times are illustrative. */
.scene-argus { background: #e3edf2; color: #294d5d; }
.scene-ar-heading { position: absolute; left: 6%; right: 6%; top: 8%; display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.scene-ar-heading > strong { display: flex; gap: .15em; align-items: baseline; font-size: 2em; letter-spacing: -.04em; }
.scene-ar-heading > strong > span { display: block; width: .17em; height: .17em; border-radius: 50%; background: #e3765d; }
.scene-ar-heading > span { font-size: .8em; }
.scene-ar-pipeline { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-ar-pipeline > path { fill: none; stroke: #8ca8b5; stroke-width: 1.4; }
.scene-ar-pipeline > circle { fill: #497d91; }
.scene-ar-pipeline > .scene-ar-signal { stroke: #3a6a81; stroke-width: 2; stroke-dasharray: 8 180; }
.scene-ar-source { position: absolute; left: 6%; width: 27%; display: flex; align-items: center; gap: .6em; padding: .85em 1em; border: 1px solid #b9ced8; background: #f7fbfc; border-radius: .5em; box-shadow: 0 5px 9px #23455708; }
.scene-ar-source-web { top: 23%; }
.scene-ar-source-mobile { top: 43%; }
.scene-ar-source-device { top: 63%; }
.scene-ar-source > .scene-icon { color: #4a7b8f; }
.scene-ar-source > span { display: flex; flex-direction: column; gap: .15em; }
.scene-ar-source strong { font-size: .88em; }
.scene-ar-source small { font-size: .68em; color: #597887; }
.scene-ar-source > i { margin-left: auto; color: #597887; font-size: .6em; }
.scene-ar-normalizer { position: absolute; left: 39%; top: 40%; width: 19%; min-height: 24%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .4em; border: 1px solid #87aab9; border-radius: .6em; background: #c9dce5; }
.scene-ar-normalizer > .scene-icon { width: 2.1em; height: 2.1em; }
.scene-ar-normalizer > span { font-size: .85em; font-weight: 600; }
.scene-ar-normalizer > small { font-size: .62em; }
.scene-ar-output { position: absolute; right: 5%; top: 28%; width: 36%; background: #213f4c; color: #e5f0f4; border: 1px solid #1c3743; border-radius: .6em; box-shadow: 0 12px 24px #23455721; transform: rotate(2deg); transition: transform 550ms cubic-bezier(.16,1,.3,1); }
.scene-ar-output > div { display: flex; align-items: center; gap: .6em; padding: 1em; border-bottom: 1px solid #486573; font-size: .74em; }
.scene-ar-output > div > i { width: .5em; height: .5em; border-radius: 50%; background: #b7cfd4; }
.scene-ar-output > div > span { margin-left: auto; color: #b9d2dd; font-size: .85em; }
.scene-ar-output pre { margin: 0; padding: 1.5em 1em; font: 400 .79em/1.9 Consolas, 'Courier New', monospace; white-space: pre; color: #d7e7ee; }
.scene-ar-output pre i { color: #a9c7d5; }
.scene-ar-output pre b { color: #eab9a4; font-weight: 400; }
.scene-ar-output > p { display: flex; gap: .5em; align-items: center; border-top: 1px solid #486573; padding: .85em 1em; font-size: .58em; color: #c5dfe8; }
.scene-ar-infrastructure { position: absolute; left: 7%; right: 7%; bottom: 3%; display: flex; justify-content: center; align-items: center; gap: 1.1em; font-size: .75em; }
.scene-ar-infrastructure > span { display: flex; align-items: center; gap: .4em; white-space: nowrap; }
.scene-ar-infrastructure > i { height: 1px; flex: 1; background: #9eb9c6; }

/* A learning path and its flashcard share the same concrete topic. */
.scene-kaisen { background: #f6d5bd; color: #5c3d48; }
.scene-ka-star { position: absolute; right: 10%; top: 8%; color: #b15c3d; transform: rotate(10deg); }
.scene-ka-star > .scene-icon { width: 5em; height: 5em; stroke-width: 1; }
.scene-ka-path { position: absolute; top: 11%; left: 8%; width: 72%; height: 80%; padding: 1.3em 1.8em; background: #fff9f2; border: 1px solid #ecd8c8; border-radius: .75em; box-shadow: 0 12px 25px #7744311c; transform: rotate(-3deg); transition: transform 550ms cubic-bezier(.16,1,.3,1); }
.scene-ka-brand { display: flex; align-items: center; justify-content: space-between; gap: .8em; margin-bottom: 1em; }
.scene-ka-brand > strong { font-size: 1.85em; letter-spacing: -.04em; }
.scene-ka-brand > strong > span { color: #c36743; }
.scene-ka-brand > span { font-size: .7em; color: #8b6a6a; }
.scene-ka-goal { position: relative; padding: 1em 1.1em; border: 1px solid #e7d4c8; border-radius: .4em; background: #f7eee6; }
.scene-ka-goal > span, .scene-ka-goal > strong { display: block; }
.scene-ka-goal > span { font-size: .7em; color: #8b6a6a; margin-bottom: .3em; }
.scene-ka-goal > strong { font-size: 1.05em; letter-spacing: -.02em; }
.scene-ka-goal > .scene-icon { position: absolute; right: 1em; top: 40%; width: 1.2em; color: #9e6c99; }
.scene-ka-course-heading { display: flex; align-items: center; gap: 1em; margin-top: 1.4em; }
.scene-ka-course-heading > strong { font-size: .9em; }
.scene-ka-course-heading > span { font-size: .6em; color: #8b6a6a; }
.scene-ka-steps { margin-top: 1em; display: flex; flex-direction: column; gap: .7em; }
.scene-ka-step { position: relative; display: flex; align-items: center; gap: .8em; width: 83%; padding: .4em 0; }
.scene-ka-step:not(:last-child)::after { content: ''; position: absolute; left: .95em; top: 2.6em; height: 1.2em; width: 1px; background: #d7b9b2; }
.scene-ka-step > i { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; border: 1px solid #d7b9b2; font-size: .95em; background: #fff9f2; }
.scene-ka-step-0 > i { background: #e8d6dd; border-color: #e8d6dd; color: #8b5279; }
.scene-ka-step-1 > i { background: #88527f; border-color: #88527f; color: #fff6f9; }
.scene-ka-step > i > .scene-icon { width: 1.1em; height: 1.1em; }
.scene-ka-step > span { display: flex; flex-direction: column; gap: .15em; }
.scene-ka-step strong { font-size: .86em; }
.scene-ka-step small { color: #8b6a6a; font-size: .63em; }
.scene-ka-step > .scene-icon { color: #a77699; width: 1.2em; height: 1.2em; margin-left: 1.2em; }
.scene-ka-flashcard { position: absolute; right: 5%; top: 44%; width: 38%; min-height: 42%; padding: 1.5em; background: #825279; color: #fff5ef; border: 1px solid #74446c; border-radius: .65em; box-shadow: 0 12px 24px #5b30412b; transform: rotate(8deg); transition: transform 550ms cubic-bezier(.16,1,.3,1); }
.scene-ka-flashcard > div { display: flex; align-items: center; justify-content: space-between; font-size: .7em; color: #f0dce8; margin-bottom: 1.4em; }
.scene-ka-flashcard > strong { display: block; font-size: 1.4em; letter-spacing: -.03em; line-height: 1.2; max-width: 12ch; }
.scene-ka-flashcard > p { font-size: .78em; color: #f4e3ed; padding-top: 1em; margin-top: 1em; border-top: 1px solid #b188a8; }
.scene-ka-flashcard > small { display: block; margin-top: 1.6em; font-size: .58em; color: #fff1fb; }
.scene-ka-footnote { position: absolute; right: 7%; bottom: 2%; display: flex; gap: .5em; align-items: center; font-size: .68em; color: #82504a; }

/* An explicitly conceptual field map illustrates allocation constraints. */
.scene-fireoff { background: #dae5d7; color: #355b49; }
.scene-fi-heading { position: absolute; top: 8%; left: 6%; right: 6%; display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.scene-fi-heading > strong { font-size: 1.9em; letter-spacing: -.04em; }
.scene-fi-heading > strong > span { font-weight: 450; }
.scene-fi-heading > span { font-size: .76em; }
.scene-fi-map { position: absolute; top: 23%; left: 4%; width: 61%; height: 73%; border-radius: .65em; overflow: hidden; border: 1px solid #bed0b8; background: #e7ecdb; transform: rotate(-3deg); transition: transform 550ms cubic-bezier(.16,1,.3,1); }
.scene-fi-map > svg { width: 100%; height: 100%; }
.scene-fi-terrain { fill: #d1dfc2; }
.scene-fi-contours { fill: none; stroke: #adc6a3; stroke-width: 1; }
.scene-fi-road { fill: none; stroke: #f7f8ea; stroke-width: 9; }
.scene-fi-route { fill: none; stroke: #608c67; stroke-width: 2; stroke-dasharray: 5 6; }
.scene-fi-area { fill: #ebbf9c; fill-opacity: .5; stroke: #bd7a56; stroke-width: 1; stroke-dasharray: 3 3; }
.scene-fi-base { fill: #4a6e4e; stroke: #f8f8ed; stroke-width: 4; }
.scene-fi-node { fill: #698d66; stroke: #f8f8ed; stroke-width: 3; }
.scene-fi-incident { fill: #bc654a; stroke: #fff6ed; stroke-width: 3; }
.scene-fi-base-label, .scene-fi-risk-label { position: absolute; padding: .4em .6em; background: #fafbed; border: 1px solid #cad7bc; border-radius: .2em; font-size: .72em; white-space: nowrap; }
.scene-fi-base-label { left: 10%; bottom: 21%; }
.scene-fi-risk-label { right: 6%; top: 51%; }
.scene-fi-north { position: absolute; left: 6%; top: 6%; display: flex; flex-direction: column; align-items: center; font-size: .6em; }
.scene-fi-north > span { display: block; margin-top: .3em; width: 1px; height: 2em; background: #648360; }
.scene-fi-map-note { position: absolute; left: 5%; bottom: 5%; font-size: .66em; color: #607b57; }
.scene-fi-resources { position: absolute; top: 29%; right: 5%; width: 38%; padding: 1.4em; background: #fafbf4; border: 1px solid #c6d4be; border-radius: .65em; box-shadow: 0 12px 22px #31533d1c; transform: rotate(3deg); transition: transform 550ms cubic-bezier(.16,1,.3,1); }
.scene-fi-resources > div:first-child { padding-bottom: 1em; }
.scene-fi-resources > div:first-child > strong, .scene-fi-resources > div:first-child > small { display: block; }
.scene-fi-resources > div:first-child > strong { font-size: 1em; }
.scene-fi-resources > div:first-child > small { font-size: .67em; color: #526b57; margin-top: .35em; }
.scene-fi-resource { display: flex; align-items: center; gap: .65em; padding: 1em 0; border-top: 1px solid #dce4d7; }
.scene-fi-resource > .scene-icon { color: #638566; width: 1.65em; height: 1.65em; }
.scene-fi-resource > span { display: flex; flex-direction: column; gap: .2em; }
.scene-fi-resource strong { font-size: .82em; }
.scene-fi-resource small { font-size: .64em; color: #526b57; }
.scene-fi-resource > i { margin-left: auto; color: #648967; }
.scene-fi-resource > i .scene-icon { width: 1em; height: 1em; }
.scene-fi-resources > p { margin-top: .6em; padding-top: .8em; border-top: 1px solid #dce4d7; font-size: .63em; color: #526b57; }

@container (max-width: 420px) {
  .scene-av-topbar > span:nth-child(2) { font-size: .75em; }
  .scene-av-sidebar { padding: 1em .5em; gap: .4em; }
  .scene-av-main { padding: 1.1em 1em; }
  .scene-av-heading { margin-bottom: 1em; }
  .scene-av-heading strong { font-size: 1em; }
  .scene-av-period { display: none; }
  .scene-av-repository { padding: .6em 0; }
  .scene-av-repository:last-child { display: none; }
  .scene-av-table-head, .scene-av-repository { grid-template-columns: 1.2fr .9fr .45fr; gap: .5em; }
  .scene-av-bottom > span:last-child { display: none; }
  .scene-av-notice { padding: .65em .8em; }
  .scene-ze-heading { font-size: .73em; }
  .scene-ze-chat { left: 5%; width: 46%; }
  .scene-ze-chat-head { gap: .5em; padding: .65em .8em; }
  .scene-ze-chat-head > span { width: 2em; height: 2em; }
  .scene-ze-chat-head strong { font-size: .8em; }
  .scene-ze-chat-body { padding: .5em .7em; font-size: .77em; }
  .scene-ze-chat-date { margin-bottom: .6em; }
  .scene-ze-user, .scene-ze-answer { padding: .6em .7em; }
  .scene-ze-command { margin-top: .6em; padding-top: .6em; }
  .scene-ze-command small { font-size: .6em; }
  .scene-ze-calendar { right: 5%; width: 37%; padding: .8em; }
  .scene-ze-calendar-head { font-size: .9em; padding-bottom: .75em; }
  .scene-ze-event { margin-top: .65em; padding: .6em; }
  .scene-ze-integrations { font-size: .57em; gap: .8em; }
  .scene-ar-heading > strong { font-size: 1.8em; }
  .scene-ar-heading > span { font-size: .67em; }
  .scene-ar-source { left: 5%; padding: .7em; gap: .5em; width: 28%; }
  .scene-ar-source strong { font-size: .88em; }
  .scene-ar-source > i { display: none; }
  .scene-ar-source small { font-size: .58em; }
  .scene-ar-normalizer { font-size: .8em; }
  .scene-ar-output { right: 4%; width: 37%; }
  .scene-ar-output > div { font-size: .6em; padding: .9em .7em; gap: .4em; }
  .scene-ar-output pre { font-size: .72em; padding: 1.2em .8em; }
  .scene-ar-output > p { font-size: .49em; }
  .scene-ar-infrastructure { font-size: .58em; gap: .7em; }
  .scene-ka-path { left: 6%; padding: 1em 1.2em; }
  .scene-ka-brand > span { font-size: .56em; }
  .scene-ka-brand { margin-bottom: .7em; }
  .scene-ka-brand > strong { font-size: 1.5em; }
  .scene-ka-goal { padding: .8em; }
  .scene-ka-goal > strong { font-size: .82em; }
  .scene-ka-goal > .scene-icon { width: .95em; }
  .scene-ka-course-heading { margin-top: 1em; gap: .7em; }
  .scene-ka-course-heading > strong { font-size: .7em; }
  .scene-ka-course-heading > span { font-size: .48em; }
  .scene-ka-steps { margin-top: .6em; gap: .5em; }
  .scene-ka-step { font-size: .8em; }
  .scene-ka-flashcard { right: 4%; width: 39%; padding: 1.1em; }
  .scene-ka-flashcard > strong { font-size: 1.1em; }
  .scene-ka-flashcard > div { margin-bottom: 1em; }
  .scene-ka-flashcard > p { font-size: .64em; margin-top: .8em; padding-top: .8em; }
  .scene-ka-flashcard > small { margin-top: 1em; font-size: .52em; }
  .scene-ka-footnote { font-size: .55em; }
  .scene-fi-heading > span { font-size: .58em; }
  .scene-fi-resources { width: 40%; right: 4%; padding: 1em; }
  .scene-fi-resources > div:first-child > strong { font-size: .82em; }
  .scene-fi-resources > div:first-child > small { font-size: .58em; }
  .scene-fi-resource { font-size: .85em; gap: .5em; padding: .45em 0; }
  .scene-fi-resource > i { display: none; }
  .scene-fi-resources > p { font-size: .52em; }
}

@media (prefers-reduced-motion: no-preference) {
  .work-cover:hover .scene-av-window, .work-cover:focus-visible .scene-av-window,
  .work-cover:hover .scene-ze-chat, .work-cover:focus-visible .scene-ze-chat,
  .work-cover:hover .scene-ar-output, .work-cover:focus-visible .scene-ar-output,
  .work-cover:hover .scene-ka-path, .work-cover:focus-visible .scene-ka-path,
  .work-cover:hover .scene-fi-map, .work-cover:focus-visible .scene-fi-map { transform: rotate(0deg) translateY(-1%); }
  .work-cover:hover .scene-ze-calendar, .work-cover:focus-visible .scene-ze-calendar,
  .work-cover:hover .scene-ka-flashcard, .work-cover:focus-visible .scene-ka-flashcard,
  .work-cover:hover .scene-fi-resources, .work-cover:focus-visible .scene-fi-resources { transform: rotate(2deg) translateY(-2%); }
  .work-cover:hover .scene-ar-signal, .work-cover:focus-visible .scene-ar-signal { animation: scene-data-packet 1.5s linear 1; }
  @keyframes scene-data-packet { from { stroke-dashoffset: 188; } to { stroke-dashoffset: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .project-scene *, .project-scene *::before, .project-scene *::after { animation: none !important; transition: none !important; }
}

/* market.css */

/* workspace.css */
/* Workspace theme: the portfolio as a code editor. Dark by default, light with html[data-theme=light]. Loaded after the base design CSS. */
:root {
  --ws-bg: #0f1117; --ws-panel: #151821; --ws-side: #12141b; --ws-line: #ffffff14; --ws-ink: #e6e8ef; --ws-mute: #8a90a3; --ws-soft: #c3c8d6;
  --ws-acc: #ff7a45; --ws-on-acc: #1a0d06; --ws-g: #7ee787; --ws-b: #79c0ff; --ws-v: #d2a8ff; --ws-chip: #ffffff0d; --ws-card: #ffffff06; --ws-hl: #ff7a4522;
  --paper: var(--ws-panel); --ink: var(--ws-ink); --muted: var(--ws-mute); --purple: var(--ws-acc); --purple-text: var(--ws-acc); --red: var(--ws-acc); --deep: var(--ws-bg); --line: var(--ws-line); --soft: var(--ws-side);
  --display: Inter, Arial, sans-serif; --ws-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
:root[data-theme=light] {
  --ws-bg: #f7f7f4; --ws-panel: #ffffff; --ws-side: #f0efea; --ws-line: #1414141a; --ws-ink: #16181d; --ws-mute: #646a7a; --ws-soft: #3b3f4a;
  --ws-acc: #c94a15; --ws-on-acc: #ffffff; --ws-g: #1a7f37; --ws-b: #0550ae; --ws-v: #8250df; --ws-chip: #14141409; --ws-card: #14141405; --ws-hl: #c94a151a;
}
html { scrollbar-color: var(--ws-acc) var(--ws-side); scroll-padding-top: 100px; }
body.ws-site { background: var(--ws-panel); color: var(--ws-ink); transition: background-color .3s, color .3s; }
.ws-site ::selection { background: var(--ws-acc); color: var(--ws-on-acc); }
.ws-site a:focus-visible, .ws-site button:focus-visible, .ws-site input:focus-visible, .ws-site summary:focus-visible { outline: 2px solid var(--ws-acc); outline-offset: 3px; }
.ws-site h1, .ws-site h2, .ws-site h3, .ws-site h4 { font-family: Inter, Arial, sans-serif; font-weight: 800; letter-spacing: -.04em; }

/* Title bar: the site navigation styled as the editor's top bar */
.ws-site .header.market-header { position: sticky; top: 0; z-index: 60; width: auto; height: 48px; margin: 0; padding: 0 14px; background: var(--ws-side); border-bottom: 1px solid var(--ws-line); font-family: var(--ws-mono); }
.ws-site .header.market-header::before { content: ""; flex: none; width: 52px; height: 12px; background: radial-gradient(circle at 6px 6px, #ff5f57 5.5px, transparent 6px), radial-gradient(circle at 25px 6px, #febc2e 5.5px, transparent 6px), radial-gradient(circle at 44px 6px, #28c840 5.5px, transparent 6px); }
.ws-site .brand { gap: 10px; }
.ws-site .brand .monogram { font-size: 1.4rem; color: var(--ws-ink); }
.ws-site .brand .monogram span, .ws-site .brand .monogram i { color: var(--ws-acc); }
.ws-site .market-brand-name { font-size: .78rem; } .ws-site .market-brand-name > span { color: var(--ws-mute); }
.ws-site .nav-links a, .ws-site .header-resume { font-size: .8rem; color: var(--ws-mute); }
.ws-site .nav-links a[aria-current], .ws-site .nav-links a:hover, .ws-site .header-resume:hover, .ws-site .header-resume[aria-current] { color: var(--ws-ink); }
.ws-site .nav-links a::after { background: var(--ws-acc); }
.ws-site .nav-projects { border-color: var(--ws-line); }
.ws-site .languages a { color: var(--ws-mute); } .ws-site .languages a[aria-current] { color: var(--ws-ink); }
.ws-site .footer { border-color: var(--ws-line); color: var(--ws-mute); font-family: var(--ws-mono); }
.ws-home-page .footer { display: none; }

/* Shared controls on inner pages */
.ws-site .primary-action, .ws-site .button, .ws-site .atlas-button { border-radius: 9px; background: var(--ws-acc); border-color: var(--ws-acc); color: var(--ws-on-acc); font-weight: 700; }
.ws-site .primary-action:hover, .ws-site .button:hover, .ws-site .atlas-button:hover { background: var(--ws-ink); border-color: var(--ws-ink); color: var(--ws-panel); }
.ws-site .tags li { border-radius: 7px; border-color: var(--ws-line); background: var(--ws-chip); color: var(--ws-ink); font-family: var(--ws-mono); }

/* ── Home layout ─────────────────────── */
.ws-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 92px; }
.ws-side { position: sticky; top: 48px; height: calc(100svh - 48px - 26px); overflow: auto; background: var(--ws-side); border-right: 1px solid var(--ws-line); padding: 12px 0; font: 13px var(--ws-mono); }
.ws-side h2 { padding: 4px 16px 10px; font: 600 11px Inter, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--ws-mute); }
.ws-side ul { list-style: none; margin: 0; padding: 0; }
.ws-dir > span { display: block; padding: 4px 16px; color: var(--ws-mute); }
.ws-dir a { padding-left: 30px !important; }
.ws-side a { display: flex; align-items: center; gap: 8px; padding: 5px 16px; color: var(--ws-soft); border-left: 2px solid transparent; transition: background .2s, color .2s; }
.ws-side a:hover { background: var(--ws-chip); }
.ws-side a.on { background: var(--ws-hl); color: var(--ws-ink); border-left-color: var(--ws-acc); }
.ws-fi { display: inline-grid; place-items: center; flex: none; width: 22px; height: 14px; border-radius: 3px; font: 700 8.5px var(--ws-mono); font-style: normal; color: #0f1117; background: var(--fc); }
.ws-who { margin: 18px 14px 0; padding: 14px; border-radius: 10px; background: var(--ws-card); border: 1px solid var(--ws-line); font: 12.5px/1.5 Inter, sans-serif; color: var(--ws-mute); }
.ws-who b { display: block; color: var(--ws-ink); font-size: 13.5px; }
.ws-who a { color: var(--ws-acc); font-weight: 600; }
.ws-home { min-width: 0; }
.ws-tabs { position: sticky; top: 48px; z-index: 30; display: flex; align-items: center; height: 38px; background: var(--ws-side); border-bottom: 1px solid var(--ws-line); font: 12.5px var(--ws-mono); }
.ws-tab { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px; background: var(--ws-panel); color: var(--ws-ink); box-shadow: inset 0 2px 0 var(--ws-acc); border-right: 1px solid var(--ws-line); white-space: nowrap; }
.ws-path { padding: 0 14px; color: var(--ws-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-tools { display: flex; gap: 6px; margin-left: auto; padding-right: 10px; }
.ws-tools button { padding: 4px 10px; border-radius: 7px; border: 1px solid var(--ws-line); background: var(--ws-chip); font: 12px var(--ws-mono); color: var(--ws-mute); white-space: nowrap; }
.ws-tools button:hover { color: var(--ws-ink); }
.ws-tools kbd { font: inherit; opacity: .7; }
.ws-mtabs { display: none; height: 100%; }
.ws-mtabs a { display: flex; align-items: center; height: 100%; padding: 0 12px; white-space: nowrap; color: var(--ws-mute); }
.ws-mtabs a.on { color: var(--ws-ink); box-shadow: inset 0 -2px 0 var(--ws-acc); }
.ws-content > * { padding: clamp(40px, 7vh, 72px) clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--ws-line); scroll-margin-top: 90px; }
.ws-crumb { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font: 12.5px var(--ws-mono); color: var(--ws-mute); max-width: none; }
.ws-audience { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--ws-line); border-radius: 9px; font-family: Inter, sans-serif; }
.ws-audience a { padding: 5px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; }
.ws-audience a[aria-current] { background: var(--ws-acc); color: var(--ws-on-acc); }
.ws-hero h1 { margin-top: 14px; font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .9; letter-spacing: -.055em; background: linear-gradient(90deg, var(--ws-ink), var(--ws-acc) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ws-lead { margin-top: 16px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -.02em; max-width: none; }
.ws-bio { margin-top: 10px; max-width: 62ch; color: var(--ws-soft); }
.ws-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ws-btns a, .ws-btns button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 9px; border: 1px solid var(--ws-line); background: var(--ws-chip); font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; transition: border-color .2s; }
.ws-btns a:hover, .ws-btns button:hover { border-color: var(--ws-acc); }
.ws-btns .ws-main { background: var(--ws-acc); border-color: var(--ws-acc); color: var(--ws-on-acc); }
.ws-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 30px 0 0; }
.ws-quick div { padding: 16px; border-radius: 12px; background: var(--ws-card); border: 1px solid var(--ws-line); }
.ws-quick dt { font: 600 11.5px var(--ws-mono); color: var(--ws-acc); text-transform: uppercase; letter-spacing: .04em; }
.ws-quick dd { margin: 6px 0 0; font-weight: 600; line-height: 1.4; }
.ws-quick small { display: block; margin-top: 2px; font-weight: 400; color: var(--ws-mute); font-size: 13px; }
.ws-content h2 { margin-top: 10px; font-size: clamp(2.2rem, 4.4vw, 3.6rem); letter-spacing: -.045em; line-height: .95; }
.ws-content h2 a:hover { color: var(--ws-acc); }
.ws-proj-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 44px); margin-top: 12px; align-items: start; }
.ws-ctx { font: 600 12.5px var(--ws-mono); color: var(--ws-acc); }
.ws-proj-txt > strong { display: block; margin-top: 6px; color: var(--ws-g); font-weight: 600; }
.ws-proj-txt > p { margin-top: 10px; color: var(--ws-soft); font-size: 1.05rem; }
.ws-proj-txt h3, .ws-sub { margin-top: 22px; font: 600 11.5px var(--ws-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ws-mute); }
.ws-proj-txt ol { list-style: none; display: grid; gap: 10px; margin: 10px 0 0; padding: 0; counter-reset: d; }
.ws-proj-txt ol li { counter-increment: d; position: relative; padding-left: 36px; font-size: 15px; line-height: 1.55; color: var(--ws-soft); }
.ws-proj-txt ol li::before { content: counter(d, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 700 13px var(--ws-mono); color: var(--ws-acc); }
.ws-proj-txt ol b { color: var(--ws-ink); }
.ws-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; }
.ws-chips li { padding: 4px 10px; border-radius: 7px; background: var(--ws-chip); border: 1px solid var(--ws-line); font: 600 12.5px var(--ws-mono); }
.ws-go { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--ws-acc); }
.ws-proj-pv { position: sticky; top: 104px; display: grid; gap: 10px; }
.ws-pv-bar { display: flex; justify-content: space-between; font: 12px var(--ws-mono); color: var(--ws-mute); }
.ws-screen { position: relative; display: grid; place-items: center; min-height: 300px; border-radius: 20px; background: var(--sc); color: var(--sk); overflow: hidden; padding: 24px; font-family: var(--ws-mono); }
.ws-screen.ws-paused * { animation-play-state: paused !important; }
.ws-code { margin-top: 26px; border-radius: 12px; border: 1px solid var(--ws-line); background: var(--ws-side); overflow: hidden; }
.ws-code summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; cursor: pointer; font: 600 12.5px var(--ws-mono); color: var(--ws-mute); list-style: none; }
.ws-code summary::-webkit-details-marker { display: none; }
.ws-code summary em { font-style: normal; color: var(--ws-acc); }
.ws-code pre { margin: 0; padding: 6px 0 16px; border-top: 1px solid var(--ws-line); font: 13.5px/1.75 var(--ws-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ws-soft); }
.ws-ln { display: grid; grid-template-columns: 48px 1fr; padding-right: 20px; }
.ws-ln i { font-style: normal; text-align: right; padding-right: 16px; color: var(--ws-mute); opacity: .6; user-select: none; }
.ws-code[open] .ws-ln { animation: ws-type .3s both; animation-delay: calc(var(--n) * 45ms); }
@keyframes ws-type { from { opacity: 0; transform: translateX(-6px); } }
.ws-k { color: var(--ws-v); } .ws-s { color: var(--ws-b); } .ws-p { color: var(--ws-g); } .ws-c { color: var(--ws-mute); font-style: italic; } .ws-f { color: var(--ws-acc); }
.ws-others { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; }
.ws-others a { display: flex; flex-direction: column; height: 100%; padding: 14px; border-radius: 12px; background: var(--ws-card); border: 1px solid var(--ws-line); transition: border-color .2s, transform .3s; }
.ws-others a:hover { border-color: var(--ws-acc); transform: translateY(-2px); }
.ws-others b { font-size: 1.05rem; } .ws-others span { font-size: 13px; color: var(--ws-mute); }
.ws-others small { margin-top: auto; padding-top: 8px; font: 12px var(--ws-mono); color: var(--ws-soft); }
.ws-more { margin-top: 16px; } .ws-more a { font-weight: 700; color: var(--ws-acc); }
.ws-note { margin-top: 8px; color: var(--ws-mute); }
.ws-tl { list-style: none; display: grid; margin: 16px 0 0; padding: 0; }
.ws-tl li { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--ws-line); }
.ws-tl time { font: 600 12.5px var(--ws-mono); color: var(--ws-acc); padding-top: 4px; }
.ws-tl h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.ws-tl h3 a:hover { color: var(--ws-acc); }
.ws-tl em { font-style: normal; color: var(--ws-mute); font-weight: 500; }
.ws-tl p { margin-top: 4px; color: var(--ws-soft); }
.ws-aw { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.ws-aw li { padding: 8px 12px; border-radius: 9px; background: var(--ws-hl); color: var(--ws-acc); font-weight: 600; font-size: 14px; }
.ws-edu { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.ws-edu article { padding: 22px; border-radius: 14px; background: var(--ws-card); border: 1px solid var(--ws-line); }
.ws-edu span { font: 12.5px var(--ws-mono); color: var(--ws-acc); }
.ws-edu h3 { margin-top: 4px; font-size: 2rem; }
.ws-edu p { margin-top: 6px; color: var(--ws-soft); }
.ws-partners { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 0; padding: 0; }
.ws-partners a { display: block; padding: 9px 12px; border-radius: 9px; background: var(--ws-chip); border: 1px solid var(--ws-line); }
.ws-partners a:hover { border-color: var(--ws-acc); }
.ws-partners span { display: block; font-size: 13px; color: var(--ws-mute); }
.ws-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ws-skills > div { padding: 18px; border-radius: 12px; background: var(--ws-card); border: 1px solid var(--ws-line); }
.ws-skills h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.ws-skills p { margin-top: 6px; color: var(--ws-soft); }
.ws-skills .ws-chips { margin-top: 10px; }
.ws-content .ws-contact, .ws-contact { padding-bottom: 110px; }
.ws-contact h2 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.ws-contact > p:not(.ws-crumb) { margin-top: 12px; max-width: 50ch; color: var(--ws-soft); }
.ws-contact .copy-status { display: block; min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--ws-acc); }
.ws-mini { position: sticky; top: 86px; height: calc(100svh - 86px - 26px); padding: 10px 12px; border-left: 1px solid var(--ws-line); background: var(--ws-side); }
.ws-mini button { display: block; width: 100%; margin: 0 0 3px; padding: 0; border: 0; border-radius: 3px; background: var(--ws-chip); cursor: pointer; transition: background .2s; }
.ws-mini button.on { background: var(--ws-acc); }
.ws-vp { position: absolute; left: 6px; right: 6px; border: 1px solid var(--ws-acc); border-radius: 4px; background: var(--ws-hl); pointer-events: none; }
.ws-status { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; gap: 18px; align-items: center; height: 26px; padding: 0 12px; background: var(--ws-acc); color: var(--ws-on-acc); font: 600 12px var(--ws-mono); }
.ws-status .ws-r { margin-left: auto; display: flex; gap: 18px; }
.ws-pal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding-top: 12vh; background: #0008; }
.ws-pal[hidden] { display: none; }
.ws-pal > div { width: min(560px, 92vw); border-radius: 12px; background: var(--ws-panel); border: 1px solid var(--ws-line); box-shadow: 0 30px 80px #000a; overflow: hidden; }
.ws-pal input { width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--ws-line); background: none; color: var(--ws-ink); font: 15px var(--ws-mono); outline: none; }
.ws-pal ul { list-style: none; max-height: 50vh; overflow: auto; margin: 0; padding: 6px; }
.ws-pal li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font: 13.5px var(--ws-mono); color: var(--ws-soft); }
.ws-pal li a.sel, .ws-pal li a:hover { background: var(--ws-hl); color: var(--ws-ink); }
.ws-pal .ws-none { padding: 10px 12px; color: var(--ws-mute); }

/* ── Inner pages ─────────────────────── */
.ws-site .market-body > main:not(.ws-home) { font-size: 16px; }
.ws-site .archive-intro h1, .ws-site .dossier-head h1 { white-space: pre-line; }
.ws-site .archive-total strong { color: var(--ws-acc); }
.ws-site .archive-field { background: var(--ws-side); border: 1px solid var(--ws-line); }
.ws-site .archive-cluster { --cluster-ink: var(--ws-acc); }
.ws-site .archive-cluster > header h2 { font-family: var(--ws-mono); font-weight: 600; letter-spacing: 0; }
.ws-site .archive-cluster .archive-project { background: var(--ws-panel); border-color: var(--ws-line); border-radius: 12px; }
.ws-site .archive-project:hover { border-color: var(--ws-acc); }
.ws-site .archive-project-mark { border-radius: 4px; background: var(--ws-acc); color: var(--ws-on-acc); font-family: var(--ws-mono); }
.ws-site .archive-filters button, .ws-site .archive-views button { border-radius: 8px; border-color: var(--ws-line); color: var(--ws-mute); background: none; font-family: var(--ws-mono); }
.ws-site .archive-filters button[aria-pressed=true], .ws-site .archive-views button[aria-pressed=true] { background: var(--ws-acc); border-color: var(--ws-acc); color: var(--ws-on-acc); }
.ws-site .archive-search input { background: var(--ws-side); color: var(--ws-ink); border-color: var(--ws-line); font-family: var(--ws-mono); }
.ws-site .dossier-head dt, .ws-site .dossier-index a { font-family: var(--ws-mono); }
.ws-site .dossier-visual > * { border-radius: 14px; overflow: hidden; }
.ws-site .dossier-index a:hover { color: var(--ws-acc); }
.ws-site .dossier-next:hover strong { color: var(--ws-acc); }
.ws-site .resume-date { font-family: var(--ws-mono); }
.ws-site .resume a { color: var(--ws-ink); }

.ws-side-btn { flex: none; display: grid; place-items: center; width: 38px; height: 100%; border: 0; border-right: 1px solid var(--ws-line); background: transparent; color: var(--ws-mute); cursor: pointer; }
.ws-side-btn span { width: 15px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; box-shadow: inset 5px 0 0 -3.5px currentColor; }
.ws-side-btn:hover { color: var(--ws-ink); background: var(--ws-chip); }
.ws-layout.ws-collapsed { grid-template-columns: minmax(0, 1fr) 92px; }
.ws-layout.ws-collapsed .ws-side { display: none; }
.ws-open { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid #3fb95055; background: #3fb9501a; font-size: 13.5px; font-weight: 600; color: var(--ws-ink); max-width: none; }
.ws-open span { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 0 #3fb95088; animation: ws-ping 2.4s ease-out infinite; }
@keyframes ws-ping { 70% { box-shadow: 0 0 0 7px #3fb95000; } 100% { box-shadow: 0 0 0 0 #3fb95000; } }
@media (max-width: 1439px) { .ws-layout { grid-template-columns: 220px minmax(0, 1fr); } .ws-layout.ws-collapsed { grid-template-columns: minmax(0, 1fr); } .ws-mini { display: none; } }
@media (max-width: 1100px) { .ws-quick, .ws-others { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .ws-layout { display: block; }
  .ws-side, .ws-tab, .ws-path, .ws-pal-btn, .ws-side-btn { display: none; }
  .ws-tabs { overflow-x: auto; scrollbar-width: none; }
  .ws-mtabs { display: flex; }
  .ws-tools { position: sticky; right: 0; padding-left: 6px; background: var(--ws-side); }
  .ws-proj-grid, .ws-edu, .ws-skills { grid-template-columns: 1fr; }
  .ws-proj-pv { position: static; order: -1; }
  .ws-screen { min-height: 240px; }
  .ws-quick, .ws-others, .ws-partners { grid-template-columns: 1fr; }
  .ws-tl li { grid-template-columns: 1fr; gap: 4px; }
  .ws-status .ws-r > span:first-child { display: none; }
  .ws-site .header.market-header::before { display: none; }
  .ws-site .portfolio-enhanced .market-header nav, .portfolio-enhanced .ws-site .market-header nav { background: var(--ws-side); border-color: var(--ws-line); }
  .ws-site .menu-toggle > span { background: var(--ws-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .ws-screen * { animation: none !important; }
  .sc-chat p, .sc-receipt .split b { opacity: 1; }
  .sc-chat .typing { display: none; }
  .sc-graph .route { stroke-dashoffset: 0; }
}
@media print {
  :root, :root[data-theme=light] { --ws-ink: #17131d; --ws-mute: #555; --ws-line: #ddd; --ws-panel: #fff; }
  body.ws-site { background: white; }
  .ws-status { display: none; }
}

/* ── Live scenes ─────────────────────── */
.sc-averi{display:grid;gap:14px;justify-items:center}.sc-averi .grid{display:grid;grid-template-columns:repeat(14,14px);gap:4px}
.sc-averi .grid i{width:14px;height:14px;border-radius:3px;background:#ffffff26;animation:sc-cell 7s infinite}
@keyframes sc-cell{0%,60%,100%{background:#ffffff26}70%{background:#9fb0ff}80%{background:#fff}}
.sc-averi .people{display:flex;align-items:center}.sc-averi .people span{width:26px;height:26px;border-radius:50%;border:2px solid #2b44ff;margin-left:-6px}.sc-averi em{margin-left:12px;font-style:normal;font-size:12px;opacity:.8}
.sc-chat{width:min(340px,100%);display:grid;gap:8px;font-size:13.5px;font-family:system-ui,sans-serif}
.sc-chat p{margin:0;padding:9px 13px;border-radius:16px;max-width:85%;opacity:0;animation:sc-msg 8s infinite}
.sc-chat .u{justify-self:end;background:#fff;color:#0f3f30;border-bottom-right-radius:4px}
.sc-chat .b{background:#0b6e52;color:#fff;border-bottom-left-radius:4px}
.sc-chat .typing{display:flex;gap:4px;animation-name:sc-typ}.sc-chat .typing i{width:6px;height:6px;border-radius:50%;background:#fff;animation:sc-dot 1s infinite}.sc-chat .typing i:nth-child(2){animation-delay:.15s}.sc-chat .typing i:nth-child(3){animation-delay:.3s}
.sc-chat .ok{animation-name:sc-msg2}.sc-chat .cal{justify-self:start;background:#fff;color:#0f3f30;font-family:"JetBrains Mono",monospace;font-size:12px;animation-name:sc-msg3}
@keyframes sc-msg{0%,5%{opacity:0;transform:translateY(8px)}10%,90%{opacity:1;transform:none}100%{opacity:0}}
@keyframes sc-typ{0%,12%{opacity:0}15%,30%{opacity:1}33%,100%{opacity:0}}
.sc-chat .u{grid-row:1}.sc-chat .typing,.sc-chat .ok{grid-row:2;grid-column:1}.sc-chat .typing{justify-self:start;width:auto}.sc-chat .cal{grid-row:3}
@keyframes sc-msg2{0%,33%{opacity:0;transform:translateY(8px)}38%,90%{opacity:1;transform:none}100%{opacity:0}}
@keyframes sc-msg3{0%,45%{opacity:0;transform:scale(.9)}50%,90%{opacity:1;transform:none}100%{opacity:0}}
@keyframes sc-dot{50%{transform:translateY(-4px)}}
.sc-receipt{display:flex;align-items:center;gap:20px}
.sc-receipt .paper{position:relative;width:120px;padding:14px 12px;background:#fff;border-radius:4px;display:grid;gap:8px;box-shadow:0 10px 20px #0002;overflow:hidden}
.sc-receipt .paper span{height:6px;border-radius:3px;background:#e2dccb}.sc-receipt .paper span:nth-child(2){width:70%}.sc-receipt .paper span:nth-child(4){width:50%}
.sc-receipt .scan{position:absolute;left:0;right:0;height:3px;background:#ff3b30;box-shadow:0 0 10px #ff3b30;animation:sc-scan 3s ease-in-out infinite}
@keyframes sc-scan{0%{top:0}50%{top:100%}100%{top:0}}
.sc-receipt .split{display:grid;gap:8px}.sc-receipt .split b{padding:8px 14px;border-radius:12px;background:#141414;color:#ffd84d;font-size:13px;opacity:0;animation:sc-pop 3s infinite}
.sc-receipt .split b:nth-child(2){animation-delay:.2s}.sc-receipt .split b:nth-child(3){animation-delay:.4s}
@keyframes sc-pop{0%,45%{opacity:0;transform:translateX(-10px)}55%,95%{opacity:1;transform:none}100%{opacity:0}}
.sc-events{width:100%;display:grid;grid-template-columns:60px 1fr 110px;gap:10px;align-items:center}
.sc-events .src{display:grid;gap:18px;font-size:12px}.sc-events .src span{padding:4px 8px;border:1px solid #ffffff40;border-radius:8px;text-align:center}
.sc-events .lane{position:relative;height:120px}
.sc-events .lane i{position:absolute;left:0;top:calc(14px + var(--r) * 42px);width:10px;height:10px;border-radius:50%;background:#7cf0c4;box-shadow:0 0 10px #7cf0c4;animation:sc-flow 4s linear infinite}
@keyframes sc-flow{0%{left:0;opacity:0}10%{opacity:1}80%{opacity:1;top:56px}100%{left:100%;top:56px;opacity:0}}
.sc-events .win{display:flex;align-items:flex-end;gap:6px;height:110px;flex-wrap:wrap;align-content:flex-end}.sc-events .win b{width:18px;background:#7cf0c4;border-radius:4px 4px 0 0;animation:sc-bar 4s ease-in-out infinite}.sc-events .win b:nth-child(2){animation-delay:.6s}.sc-events .win b:nth-child(3){animation-delay:1.2s}.sc-events .win b:nth-child(4){animation-delay:1.8s}
.sc-events .win small{width:100%;font-size:11px;opacity:.7}
@keyframes sc-bar{0%,100%{height:20px}50%{height:80px}}
.sc-cards{position:relative;width:230px;height:150px;perspective:800px;font-family:system-ui,sans-serif}
.sc-cards .fc{position:absolute;inset:0;transform-style:preserve-3d;animation:sc-flip 5s ease-in-out infinite}.sc-cards .fc.d2{inset:16px -16px -16px 16px;z-index:-1;animation-delay:2.5s;opacity:.7}
.sc-cards .f,.sc-cards .b{position:absolute;inset:0;display:grid;place-items:center;padding:16px;border-radius:16px;text-align:center;font-weight:700;backface-visibility:hidden}
.sc-cards .f{background:#141414;color:#ff5a1f;font-size:1.05rem}.sc-cards .b{background:#fff;color:#141414;transform:rotateY(180deg);font-size:13.5px;font-weight:600}
.sc-cards .medal{position:absolute;right:-26px;top:-26px;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#ffd84d;color:#141414;font-weight:900;font-size:1.1rem;box-shadow:0 6px 14px #0003;animation:sc-bob 3s ease-in-out infinite}
@keyframes sc-flip{0%,35%{transform:none}50%,85%{transform:rotateY(180deg)}100%{transform:rotateY(360deg)}}
@keyframes sc-bob{50%{translate:0 -6px}}
.sc-graph{width:100%;display:grid;gap:6px;justify-items:center}.sc-graph svg{width:100%;max-width:340px}
.sc-graph .edges path{fill:none;stroke:#14141433;stroke-width:2}
.sc-graph .route{fill:none;stroke:#ff5a1f;stroke-width:4;stroke-linecap:round;stroke-dasharray:400;stroke-dashoffset:400;animation:sc-route 4s ease-in-out infinite}
@keyframes sc-route{0%{stroke-dashoffset:400}60%,85%{stroke-dashoffset:0}100%{stroke-dashoffset:-400}}
.sc-graph .nodes circle{fill:#141414}.sc-graph .nodes .src{fill:#2b44ff}.sc-graph .nodes .fire{fill:#ff5a1f;animation:sc-pulse 1.6s infinite;transform-origin:270px 40px}
@keyframes sc-pulse{50%{transform:scale(1.35)}}
.sc-graph small{font-size:11.5px;opacity:.7}
@media (max-width:620px){.sc-averi .grid{grid-template-columns:repeat(10,12px)}.sc-averi .grid i{width:12px;height:12px}.sc-averi .grid i:nth-child(n+51){display:none}.sc-events{grid-template-columns:48px 1fr 80px}}
