@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel-alt: #eeeff2;
  --ink: #1d1d1f;
  --muted: #626268;
  --line: #d9d9de;
  --control: #85858e;
  --accent: #0066cc;
  --accent-bg: #0066cc;
  --accent-hover: #0055aa;
  --key: #0066cc;
  --string: #29613d;
  --number: #925323;
  --error: #b42318;
  --glow: #0071e30d;
  --shadow: #1d1d1f0a;
  --mono: "SFMono-Regular", "Cascadia Code", "Consolas", "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0b0d; --panel: #18181b; --panel-alt: #222225; --ink: #f5f5f7; --muted: #aaabb4; --line: #34343b;
    --accent: #75baff; --key: #79baff; --string: #93d2b0; --number: #e3b88d; --glow: #0a84ff0a; --shadow: #00000040;
    --control: #777780; --error: #ff8a80;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0d; --panel: #18181b; --panel-alt: #222225; --ink: #f5f5f7; --muted: #aaabb4; --line: #34343b;
  --accent: #75baff; --key: #79baff; --string: #93d2b0; --number: #e3b88d; --glow: #0a84ff0a; --shadow: #00000040;
  --control: #777780; --error: #ff8a80;
}
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  --pico-font-family: var(--sans);
  --pico-font-size: 100%;
  --pico-line-height: 1.6;
  --pico-color: var(--ink);
  --pico-background-color: var(--bg);
  --pico-primary: var(--accent);
  --pico-primary-background: var(--accent-bg);
  --pico-primary-border: var(--accent-bg);
  --pico-primary-inverse: #ffffff;
  --pico-primary-hover: var(--accent);
  --pico-primary-hover-background: var(--accent-hover);
  --pico-primary-hover-border: var(--accent-hover);
  --pico-primary-focus: #0071e340;
  --pico-form-element-background-color: var(--panel);
  --pico-form-element-border-color: var(--control);
  --pico-form-element-active-border-color: var(--accent);
  --pico-form-element-color: var(--ink);
  --pico-form-element-placeholder-color: var(--muted);
  --pico-form-element-spacing-vertical: .65rem;
  --pico-form-element-spacing-horizontal: .85rem;
  --pico-border-radius: .85rem;
  --pico-outline-width: .1875rem;
  --pico-code-background-color: var(--panel-alt);
  --pico-code-color: var(--muted);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: absolute; top: 0; right: 0; width: min(750px, 100%); height: 850px; z-index: -1; background: radial-gradient(ellipse at 65% 35%, var(--glow), transparent 65%); pointer-events: none; }
a { text-decoration: none; color: inherit; }
button, select { font: inherit; }
a, button, select, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
a[href] { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; }
.nav-link, .quiet-link, .hero-bottom a, .footer a, .profile-export { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--control); border-radius: var(--pico-border-radius); background: var(--panel-alt); }
.nav-link, .quiet-link, .hero-bottom a, .footer a, .button, .card-link, .repo-links a, .instagram-link, .profile-export { transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.nav-link:hover, .quiet-link:hover, .hero-bottom a:hover, .footer a:hover, .card-link:hover, .repo-links a:hover, .instagram-link:hover, .profile-export:hover { border-color: var(--accent); background: var(--panel); color: var(--ink); box-shadow: 0 2px 8px var(--shadow); }
.nav-link:active, .quiet-link:active, .hero-bottom a:active, .footer a:active, .card-link:active, .repo-links a:active, .instagram-link:active, .profile-export:active { box-shadow: inset 0 1px 3px var(--shadow); }
.nav-link > span:last-child, .quiet-link > span:last-child, .hero-bottom a > span:last-child, .footer a > span:last-child, .button > span:last-child, .card-link > span:last-child, .instagram-link > span:last-child, .play-icon > span:last-child, .profile-export > span:last-child { display: grid; place-items: center; width: 18px; height: 18px; flex-shrink: 0; font-family: var(--mono); font-size: 18px; font-weight: 400; line-height: 1; }
::selection { background: var(--accent-bg); color: #ffffff; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 18px; border-radius: 12px; background: var(--accent-bg); color: #ffffff; clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }
.header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; min-height: 96px; padding-block: 18px; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: grid; align-content: center; min-height: 52px; white-space: nowrap; }
.brand-lockup { display: flex; align-items: baseline; gap: 16px; }
.brand-mark { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 22px; font-weight: 600; line-height: 1; }
.brand-brace { color: var(--accent); font-weight: 400; }
.brand-name { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 1.2px; line-height: 1; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; font-family: var(--sans); font-size: 14px; }
.navigation-menu { min-width: 0; margin: 0; padding: 0; border: 0; }
.navigation-menu > summary { display: flex; min-width: 44px; min-height: 52px; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--control); border-radius: var(--pico-border-radius); background: var(--panel-alt); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.4; list-style: none; }
.navigation-menu > summary::after, .navigation-menu > summary::-webkit-details-marker { display: none; }
.navigation-menu > summary::marker { content: ""; }
.navigation-menu[open] > summary { display: none; margin: 0; }
.navigation-menu > summary:hover { border-color: var(--accent); background: var(--panel); }
.navigation-menu > summary:active { box-shadow: inset 0 1px 3px var(--shadow); }
.navigation-menu > summary svg { width: 20px; height: 20px; flex-shrink: 0; }
.navigation-menu .menu-close-icon, .navigation-menu[open] .menu-open-icon { display: none; }
.navigation-menu[open] .menu-close-icon { display: block; }
.nav-link { min-height: 52px; font-weight: 500; }
.language-control, .theme-control { min-width: 0; }
.control-caption { display: block; margin-bottom: 5px; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); }
.language-switch { display: flex; align-items: center; gap: 4px; border: 1px solid var(--control); border-radius: 15px; padding: 3px; margin: 0; background: var(--panel-alt); }
.language-switch button { --pico-background-color: transparent; --pico-border-color: transparent; --pico-color: var(--ink); flex: 1 0 auto; min-width: 44px; min-height: 44px; padding: 8px 10px; margin: 0; border-radius: 11px; font-size: 13px; white-space: nowrap; }
.language-switch[role="group"] > button { border-radius: 11px; }
.language-switch button:is(:hover, :active, :focus) { --pico-background-color: var(--panel); --pico-border-color: var(--control); --pico-color: var(--ink); }
.language-switch button[aria-pressed="true"], .language-switch button[aria-pressed="true"]:is(:hover, :active, :focus) { --pico-background-color: var(--accent-bg); --pico-border-color: var(--accent-bg); --pico-color: #ffffff; font-weight: 600; }
.theme-select { position: relative; }
.theme-icon { position: absolute; left: 13px; top: 17px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
#theme-mode { min-width: 128px; min-height: 52px; margin: 0; padding-left: 40px; padding-right: 34px; background-color: var(--panel); background-size: 16px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; box-shadow: 0 1px 3px var(--shadow); cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease; }
#theme-mode:hover { border-color: var(--accent); background-color: var(--panel-alt); box-shadow: 0 2px 8px var(--shadow); }
#theme-mode:focus-visible { background-color: var(--panel); }
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
@supports (appearance: base-select) {
  #theme-mode, #theme-mode::picker(select) { appearance: base-select; }
  #theme-mode { align-items: center; }
  #theme-mode:open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--pico-primary-focus); }
  #theme-mode::picker-icon { display: none; }
  #theme-mode::picker(select) { inset-inline-start: auto; inset-inline-end: anchor(right); min-width: 180px; max-width: calc(100vw - 32px); margin-block: 8px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--panel) 96%, transparent); color: var(--ink); backdrop-filter: blur(20px); box-shadow: 0 16px 48px #00000024, 0 2px 8px var(--shadow); opacity: 1; transform: translateY(0); transition: opacity .14s ease, transform .14s ease; }
  #theme-mode option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; line-height: 1.4; cursor: pointer; }
  #theme-mode option::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; background: currentColor; mask: var(--theme-option-icon) center / contain no-repeat; }
  #theme-mode option[value="system"] { --theme-option-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v13H3zM8 21h8M12 17v4'/%3E%3C/svg%3E"); }
  #theme-mode option[value="dark"] { --theme-option-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M20.3 14.6A9 9 0 0 1 9.4 3.7a7 7 0 0 0 10.9 10.9Z'/%3E%3C/svg%3E"); }
  #theme-mode option[value="light"] { --theme-option-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5L19 19M5 19l1.5-1.5M17.5 6.5L19 5'/%3E%3C/svg%3E"); }
  #theme-mode option:checked { background: var(--panel-alt); font-weight: 600; }
  #theme-mode option::checkmark { order: 1; margin-left: auto; color: var(--accent); }
  #theme-mode option:is(:hover, :focus-visible) { background: var(--accent-bg); color: #ffffff; }
  #theme-mode option:is(:hover, :focus-visible)::checkmark { color: #ffffff; }
  @starting-style {
    #theme-mode:open::picker(select) { opacity: 0; transform: translateY(-4px); }
  }
}
}
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-block: 64px 0; align-items: stretch; }
.hero-copy { min-width: 0; }
.identity { display: flex; align-items: center; gap: 18px; }
.identity-copy { display: grid; justify-items: start; gap: 8px; flex: 1; min-width: 0; }
.portrait-frame { position: relative; flex-shrink: 0; }
.portrait { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); padding: 5px; background: var(--panel); flex-shrink: 0; box-shadow: 0 12px 32px var(--shadow); }
.portrait-gesture { display: none; position: absolute; right: -2px; bottom: -26px; width: 1em; height: 1em; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 72px; line-height: 1; letter-spacing: 0; box-shadow: none; }
.portrait-gesture:is(:hover, :active, :focus, :disabled) { background: transparent; color: inherit; box-shadow: none; opacity: 1; }
.portrait-gesture:disabled { cursor: default; }
.portrait-gesture-icon { display: block; width: 1em; height: 1em; transform: rotate(-12deg); filter: drop-shadow(0 3px 4px #00000020); }
html[lang="it"] .portrait-gesture { display: block; }
html[lang="it"] .portrait-gesture-icon { --motion-duration: 2.8s; animation: portrait-pinch var(--motion-duration) ease-in-out infinite; }
.portrait-gesture:is(.is-paused, :focus-visible) .portrait-gesture-icon { animation-play-state: paused; }
@keyframes portrait-pinch {
  0%, 55%, 100% { transform: rotate(-12deg); }
  12%, 36% { transform: translateY(-9px) rotate(0deg) scale(.86, 1.05); }
  24%, 48% { transform: translateY(2px) rotate(-20deg) scale(1, .96); }
}
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .6px; color: var(--muted); line-height: 1.8; margin: 0; }
.hero .eyebrow { display: flex; gap: 9px; align-items: center; letter-spacing: .8px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--glow); flex-shrink: 0; }
h1 { color: var(--ink); font-size: clamp(76px, 8vw, 112px); letter-spacing: -.065em; line-height: .98; font-weight: 600; margin: 32px 0 24px; overflow-wrap: anywhere; }
h1 > span { color: var(--ink); }
.name-period { color: var(--accent); }
.hero-line { max-width: 26ch; font-size: 28px; font-weight: 500; letter-spacing: -.8px; color: var(--ink); margin: 0 0 32px; line-height: 1.35; text-wrap: balance; }
.hero-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 16px; min-width: 44px; min-height: 52px; max-width: 100%; padding: 12px 20px; border: 1px solid var(--accent-bg); font-family: var(--sans); font-size: 15px; border-radius: var(--pico-border-radius); }
.button > span:first-child { min-width: 0; line-height: 1.6; }
.primary { background: var(--accent-bg); color: #ffffff; font-weight: 600; }
.button > span:last-child { font-size: 18px; line-height: 1; flex-shrink: 0; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #ffffff; box-shadow: 0 4px 16px var(--shadow); }
.button:active { background: var(--accent-hover); border-color: var(--accent-hover); color: #ffffff; box-shadow: inset 0 1px 3px var(--shadow); }
.quiet-link { justify-content: space-between; min-height: 52px; padding: 12px 20px; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink); }
.quiet-link > span:last-child { font-size: 18px; line-height: 1; flex-shrink: 0; }
.profile-window { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); border-radius: 24px; min-width: 0; box-shadow: 0 20px 60px var(--shadow); overflow: hidden; }
.window-bar { position: relative; padding: 16px 32px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); background: var(--panel-alt); }
.window-dots { display: flex; gap: 5px; }
.window-dots i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .5; }
.file-badge { margin-left: auto; margin-right: 44px; font-size: 11px; }
.animation-control { position: absolute; top: calc(50% - 22px); right: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 12px; background: transparent; color: var(--muted); box-shadow: none; }
.animation-control:is(:hover, :focus) { background: var(--panel); color: var(--accent); box-shadow: none; }
.animation-control svg { width: 16px; height: 16px; }
.animation-control[aria-pressed="true"] .motion-play, .animation-control[aria-pressed="false"] .motion-pause { display: none; }
.profile-content { display: grid; align-content: center; flex: 1; min-width: 0; padding: 28px 32px; }
.json { position: relative; margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--panel-alt); font-family: var(--mono); font-size: 16px; font-weight: 400; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); tab-size: 2; }
.json code { padding: 0; border-radius: 0; background: transparent; font: inherit; color: inherit; }
.json.is-typing > code { opacity: 0; }
.typing-overlay { position: absolute; inset: 0; padding: inherit; pointer-events: none; }
.typing-overlay > code { display: inline; }
.typewriter { position: relative; display: inline-block; min-width: 0; }
.typewriter.is-typing > [data-typewriter] { opacity: 0; }
.typing-cursor { --motion-duration: .7s; display: inline-block; width: 0; height: 1em; margin-left: 2px; border-left: 2px solid var(--accent); vertical-align: -.15em; animation: cursor-blink var(--motion-duration) step-end infinite; }
.typewriter .typing-cursor { margin-right: -4px; }
.scroll-reveal { --motion-duration: .45s; animation: card-rise var(--motion-duration) cubic-bezier(.2, .7, .3, 1) both; }
.scroll-reveal:focus-within { animation: none; }
@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes card-rise { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: none; } }
.json .json-key { color: var(--key); }
.json .json-string { color: var(--string); }
.json .json-value { color: var(--number); }
.profile-json { padding: 0; font-size: 16px; background: var(--panel); }
.profile-json code { padding: 0; }
.window-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 14px 32px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.profile-export { width: fit-content; max-width: 100%; padding: 8px 12px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); }
.profile-clone { margin: 0; }
.clone-modal-open { overflow: hidden; scrollbar-gutter: stable; }
.clone-dialog { position: fixed; inset: 0; width: min(440px, calc(100% - 40px)); min-width: 0; max-width: 440px; height: fit-content; min-height: 0; max-height: calc(100dvh - 40px); margin: auto; padding: clamp(22px, 6vw, 32px); border: 1px solid var(--line); border-radius: 24px; outline: none; background: var(--panel); color: var(--ink); box-shadow: 0 24px 80px #00000030; overflow: auto; opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease; }
.clone-dialog[open] { display: block; }
.clone-dialog::backdrop { background: #00000040; backdrop-filter: blur(6px); }
.clone-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.clone-brand { display: grid; place-items: center; width: 72px; height: 48px; border-radius: 12px; background: var(--panel-alt); color: var(--muted); font-family: var(--mono); font-size: 18px; white-space: nowrap; }
.clone-dialog .clone-close-form { margin: 0; }
.clone-close { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 10px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); box-shadow: none; }
.clone-close:is(:hover, :active) { border-color: var(--line); background: var(--panel-alt); color: var(--ink); box-shadow: none; }
.clone-close svg { width: 22px; height: 22px; }
.clone-dialog .clone-error { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; max-width: 100%; margin-bottom: 16px; padding: 7px 10px; border-radius: 9px; background: color-mix(in srgb, var(--error) 8%, var(--panel)); color: var(--error); font-weight: 600; letter-spacing: .3px; line-height: 1.4; }
.clone-error::before { content: ""; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.clone-error-code { font-size: 10px; }
.clone-human { font-size: 16px; font-weight: 700; }
.clone-dialog h2 { margin-bottom: 12px; font-size: clamp(25px, 6vw, 30px); line-height: 1.2; text-wrap: balance; outline: none; }
.clone-dialog p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.clone-dialog .clone-dismiss-form { margin: 28px 0 0; }
.clone-dialog .button { --pico-primary-focus: color-mix(in srgb, var(--ink) 20%, transparent); justify-content: center; width: 100%; margin: 0; border-color: var(--ink); background: var(--ink); color: var(--panel); font-weight: 600; box-shadow: none; }
.clone-cup { width: 22px; height: 22px; flex-shrink: 0; }
.clone-dialog .button > span { width: auto; height: auto; font: inherit; line-height: 1.4; }
.clone-dialog .button:is(:hover, :active) { border-color: transparent; background: color-mix(in srgb, var(--ink) 88%, var(--panel)); color: var(--panel); box-shadow: none; }
.clone-dialog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@starting-style {
  .clone-dialog[open] { opacity: 0; transform: translateY(8px) scale(.98); }
}
.hero-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-block: 16px 28px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.section { padding-top: 96px; }
.section-top { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 36px; }
.section-index { color: var(--accent); margin-right: 7px; }
h2 { color: var(--ink); font-weight: 600; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.045em; line-height: 1.2; margin: 0; text-wrap: balance; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 25px; min-width: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; height: 70px; margin-bottom: 20px; }
.card-number { font-family: var(--mono); font-size: 10px; color: var(--muted); }
h3 { color: var(--ink); font-weight: 600; font-size: 25px; letter-spacing: -.7px; line-height: 1.3; margin: 0 0 20px; }
.work-card h3 { min-height: 27px; }
.work-card .json { font-size: 11px; }
.reasoning-icon { display: flex; width: 67px; height: 50px; position: relative; align-items: center; }
.reasoning-icon i { width: 39px; height: 39px; border: 1px solid var(--accent); border-radius: 50%; position: absolute; }
.reasoning-icon i:nth-child(2) { transform: translateX(20px); opacity: .6; }
.reasoning-icon i:nth-child(3) { transform: translate(10px, -13px); opacity: .3; }
.grid-icon { display: grid; grid-template-columns: 19px 19px; gap: 6px; }
.grid-icon i { width: 19px; height: 19px; border: 1px solid var(--key); border-radius: 3px; }
.grid-icon i:last-child { background: var(--key); opacity: .6; }
.build-icon { font-size: 50px; color: var(--number); font-weight: 300; line-height: 1; }
.fine-print { font-family: var(--mono); font-size: 9px; line-height: 1.7; color: var(--muted); margin: 17px 0 0; }
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.timeline { list-style: none; padding: 0 0 0 27px; margin: 0 0 0 6px; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding-block: 4px 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 10px; left: -32px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.timeline li:first-child::before { background: var(--accent); border-color: var(--accent); }
.timeline-date { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.current-tag { color: var(--accent); font-size: 11px; font-weight: 700; }
.timeline h3 { margin-bottom: 7px; font-size: 24px; }
.timeline-company { font-family: var(--sans); font-size: 15px; line-height: 1.8; color: var(--muted); }
.timeline-detail { max-width: 38ch; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.credentials { display: flex; flex-direction: column; gap: 14px; }
.credential-card { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 25px 28px; margin: 0; box-shadow: 0 8px 24px var(--shadow); }
.file-title { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.personal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.personal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 32px; margin: 0; min-width: 0; display: flex; flex-direction: column; box-shadow: 0 8px 32px var(--shadow); }
.card-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 20px; }
.card-heading h3 { margin: 0; font-size: 27px; }
.card-symbol { font-family: var(--mono); font-size: 25px; color: var(--accent); }
.music-card { background: var(--panel); }
.music-body { display: flex; flex-direction: column; gap: 24px; flex: 1; margin-block: 0 24px; }
.music-body > pre { min-width: 0; }
.record-sleeve { position: relative; isolation: isolate; display: grid; place-items: center; flex: 1; min-height: 200px; padding: 24px; border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at center, var(--glow), transparent 70%), var(--panel-alt); }
.sound-wave { position: absolute; inset: 20% 0; width: 100%; height: 60%; color: var(--accent); opacity: .3; z-index: -1; }
.record { width: 156px; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #0e1516 0 2px, #2d3838 3px 4px); display: grid; place-items: center; box-shadow: 0 12px 24px #0003; transform: rotate(-15deg); }
.record > span { width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--accent-bg); color: #ffffff; display: flex; flex-direction: column; justify-content: center; align-items: center; font-family: var(--sans); font-weight: 600; font-size: 23px; letter-spacing: -1px; gap: 6px; }
.record i { width: 6px; height: 6px; background: #ffffff; border-radius: 50%; }
.card-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 52px; font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink); background: var(--panel-alt); border: 1px solid var(--control); border-radius: var(--pico-border-radius); padding: 12px 16px; margin-top: auto; }
.card-link > span:first-child { min-width: 0; }
.card-link > span:last-child { font-size: 18px; line-height: 1; color: var(--accent); flex-shrink: 0; }
.repo-links { display: grid; justify-content: stretch; gap: 8px; margin-block: 16px 22px; }
.repo-links a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; min-height: 44px; border: 1px solid var(--control); border-radius: var(--pico-border-radius); background: var(--panel-alt); padding: 10px 12px; font-family: var(--sans); font-size: 14px; }
.repo-links a > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.video-card { padding: 0; overflow: hidden; }
.video-preview { position: relative; display: block; aspect-ratio: 2.15; overflow: hidden; background: #252d32; }
.video-preview svg { display: block; width: 100%; height: 100%; }
.video-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-preview::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #0c10129c); pointer-events: none; }
.play-icon { position: absolute; right: 12px; top: 12px; min-height: 44px; padding: 9px 14px; border: 1px solid #ffffff; border-radius: var(--pico-border-radius); display: flex; align-items: center; gap: 8px; background: var(--accent-bg); color: #ffffff; font-family: var(--sans); font-size: 14px; font-weight: 500; z-index: 1; }
.video-preview:hover .play-icon { background: var(--accent-hover); box-shadow: 0 0 0 2px #ffffff; }
.video-preview:focus-visible { outline-offset: -6px; }
.preview-label { position: absolute; bottom: 15px; left: 23px; right: 12px; width: fit-content; padding: 4px 8px; border-radius: 6px; background: #1d1d1fe6; font-family: var(--mono); font-size: 11px; letter-spacing: .5px; line-height: 1.7; color: #f5f5f7; z-index: 1; }
.video-content { padding: 28px 32px; display: flex; flex-direction: column; flex: 1; }
.video-content .json { margin-bottom: 24px; }
.contact { margin-top: 96px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(120deg, var(--panel), var(--panel-alt)); padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; box-shadow: 0 12px 40px var(--shadow); }
.contact .eyebrow { color: var(--accent); margin-bottom: 22px; }
.contact h2 { font-size: clamp(42px, 5vw, 68px); letter-spacing: -.055em; }
.contact-action { min-width: 0; width: 390px; max-width: 100%; }
.contact-action .json { margin-bottom: 20px; }
.contact-action .button { width: 100%; }
.instagram-link { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 12px 16px; border: 1px solid var(--control); border-radius: var(--pico-border-radius); background: var(--panel-alt); font-family: var(--sans); font-size: 15px; color: var(--ink); margin-top: 16px; }
.instagram-link svg { width: 18px; height: 18px; stroke: var(--muted); stroke-width: 1.5; }
.instagram-link small { display: block; font-size: 12px; margin-top: 5px; color: var(--accent); }
.instagram-link > span:last-child { margin-left: auto; font-size: 18px; line-height: 1; flex-shrink: 0; }
.language-transition[hidden] { display: none; }
.language-transition { position: fixed; top: var(--transition-top, 0); left: var(--transition-left, 16px); z-index: 30; width: min(340px, calc(100vw - 32px)); pointer-events: none; }
.transition-card { --motion-duration: .25s; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); padding: 20px; text-align: center; box-shadow: 0 24px 100px var(--shadow); animation: transition-in var(--motion-duration) ease-out both; }
.transition-card .eyebrow { font-size: 11px; color: var(--accent); }
.italian-icons { height: 135px; position: relative; margin-block: 15px; }
.pinch-icon { --motion-duration: .35s; position: absolute; left: calc(50% - 38px); top: 38px; font-size: 76px; line-height: 1; animation: pinch var(--motion-duration) ease-in-out infinite alternate; }
.pizza-icon { --motion-duration: .8s; position: absolute; left: 10px; top: 15px; font-size: 51px; animation: pizza var(--motion-duration) ease-in-out infinite; }
.moustache-icon { --motion-duration: .45s; position: absolute; width: 78px; height: 39px; left: 14px; bottom: 5px; color: var(--ink); animation: moustache var(--motion-duration) ease-in-out infinite alternate; }
.mandolin-icon { --motion-duration: .2s; position: absolute; width: 66px; height: 108px; right: 3px; top: 20px; transform-origin: 50% 85%; animation: strum var(--motion-duration) ease-in-out infinite alternate; }
.transition-title { font-size: 25px; letter-spacing: -.8px; margin: 0 0 15px; }
.transition-code { font-family: var(--mono); font-size: 12px; line-height: 1.8; color: var(--muted); margin: 0; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--sans); font-size: 12px; line-height: 1.7; color: var(--muted); padding-block: 32px 40px; padding-inline-end: 64px; }
.footer p { margin: 0; }
.footer a { white-space: nowrap; }
.back-to-top[hidden] { display: none; }
.back-to-top { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 15; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--control); border-radius: 50%; background: color-mix(in srgb, var(--panel) 94%, transparent); color: var(--ink); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 4px 16px var(--shadow); transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.back-to-top svg { width: 24px; height: 24px; }
.back-to-top:hover { border-color: var(--accent); background: var(--panel); color: var(--accent); }
.back-to-top:active { background: var(--panel-alt); }
.privacy-note { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; max-width: 100%; }
.privacy-info { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin: 0; padding: 12px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); box-shadow: none; }
.privacy-info svg { width: 16px; height: 16px; }
.privacy-info:hover { background: var(--panel-alt); color: var(--accent); }
.privacy-popover { position: fixed; inset: auto 16px 72px auto; width: min(320px, calc(100vw - 32px)); margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--panel) 98%, transparent); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 16px 40px #00000014, 0 3px 10px var(--shadow); opacity: 1; transform: translateY(0); transition: opacity .14s ease, transform .14s ease; }
.privacy-popover p { margin: 0; }
.privacy-popover-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.privacy-popover-header > div { flex: 1; min-width: 0; }
.privacy-mark { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; background: var(--panel-alt); color: var(--accent); }
.privacy-mark svg { width: 16px; height: 16px; }
.privacy-popover .privacy-popover-title { margin-bottom: 3px; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.1px; }
.privacy-popover .privacy-popover-status { color: var(--muted); font-size: 12px; line-height: 1.4; }
.privacy-popover a { justify-content: space-between; width: 100%; max-width: 100%; margin-top: 10px; padding: 8px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; white-space: normal; text-align: left; font-weight: 400; }
.privacy-popover a > span:last-child { font-size: 14px; opacity: .7; }
.privacy-popover a:hover { background: transparent; color: var(--accent); box-shadow: none; }
.privacy-popover a:is(:hover, :focus-visible) > span:last-child { opacity: 1; }
@supports (anchor-name: --privacy-info) {
  .privacy-info { anchor-name: --privacy-info; }
  .privacy-popover { position-anchor: --privacy-info; bottom: anchor(top); right: auto; left: clamp(16px, calc(anchor(right) - 320px), calc(100vw - 336px)); }
}
@starting-style {
  .privacy-popover:popover-open { opacity: 0; transform: translateY(6px); }
}
@keyframes transition-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pinch { from { transform: rotate(-13deg) translateY(4px); } to { transform: rotate(10deg) translateY(-5px); } }
@keyframes pizza { 0%, 100% { transform: rotate(-15deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-10px); } }
@keyframes moustache { from { transform: rotate(-5deg) scale(.95); } to { transform: rotate(5deg) scale(1.05); } }
@keyframes strum { from { transform: rotate(-14deg); } to { transform: rotate(-4deg); } }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .header { display: grid; grid-template-columns: 1fr; gap: 16px; }
  .header .brand { justify-self: start; }
  .navigation-menu > nav { justify-content: space-between; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .hero-links { max-width: 480px; }
  .profile-content { padding-inline: 22px; }
  .profile-json { font-size: 15px; }
  .work-card { padding: 20px; }
  .work-card .json { font-size: 10px; }
  .work-card h3 { font-size: 19px; }
  .music-body { gap: 20px; }
  .record { width: 136px; }
  .contact { padding-inline: 30px; gap: 24px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { position: relative; display: grid; grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .brand { min-height: 52px; }
  .brand-lockup { gap: 14px; }
  .brand-name { font-size: 12px; letter-spacing: 1.1px; }
  .navigation-menu > summary, .navigation-menu[open] > summary { position: absolute; top: 18px; right: 0; display: flex; }
  .navigation-menu > nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 14px 10px; max-height: calc(100dvh - 112px); padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 12px 40px #00000014, 0 3px 10px var(--shadow); overflow-y: auto; overscroll-behavior: contain; }
  .header .brand { justify-self: start; }
  .header .nav-link { min-height: 60px; padding: 8px 12px; justify-content: space-between; line-height: 1.4; text-align: left; }
  .header .nav-link > span:first-child { min-width: 0; }
  .language-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .language-switch[role="group"] { box-shadow: none; }
  .language-switch[role="group"] > button { margin: 0; padding: 8px 6px; font-size: 14px; box-shadow: none; }
  .language-switch[role="group"] > button:not(:first-child) { margin-inline-start: 0; }
  .language-switch button:focus-visible { outline-offset: -4px; }
  .language-switch button[aria-pressed="true"]:focus-visible { outline-color: #ffffff; }
  .theme-icon { left: 11px; top: 18px; width: 16px; height: 16px; }
  #theme-mode { min-width: 0; width: 100%; padding-left: 36px; padding-right: 28px; background-size: 14px; font-size: 16px; }
  .transition-card { padding: 16px; }
  .italian-icons { height: 112px; margin-block: 12px; }
  .transition-title { font-size: 23px; margin-bottom: 10px; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 40px; }
  .identity { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px 14px; align-items: center; }
  .identity-copy { display: contents; }
  .identity .portrait-frame { grid-column: 1; grid-row: 1; }
  .identity .eyebrow { grid-column: 2; grid-row: 1; min-width: 0; }
  .identity .profile-export { grid-column: 1 / -1; min-height: 52px; font-size: 14px; text-align: left; }
  .identity .profile-export:not(.profile-clone) { margin-top: 32px; }
  .portrait { width: 80px; height: 80px; padding: 4px; }
  .portrait-gesture { font-size: 64px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: .2px; }
  h1 { font-size: clamp(76px, 19vw, 108px); margin-block: 28px 22px; }
  .hero-line { font-size: 23px; letter-spacing: -.5px; }
  .hero-links { grid-template-columns: 1fr; max-width: none; }
  .profile-window { transform: none; }
  .profile-content { padding: 23px; }
  .window-bar, .window-footer { padding-inline: 23px; }
  .profile-export { width: 100%; justify-content: space-between; }
  .json, .profile-json { font-size: 14px; }
  .hero-bottom { font-size: 13px; padding-top: 0; gap: 15px; line-height: 1.8; }
  .hero-bottom > span { max-width: 45%; }
  .hero-bottom a { max-width: 50%; text-align: left; }
  .section { padding-top: 64px; }
  .section-top { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
  h2 { font-size: 34px; }
  .work-grid { grid-template-columns: 1fr; gap: 12px; }
  .work-card { padding: 23px; }
  .work-card h3 { font-size: 23px; }
  .work-card .json { font-size: 12px; }
  .card-top { height: 45px; margin-bottom: 22px; }
  .journey-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline li { padding-bottom: 29px; }
  .timeline h3 { font-size: 23px; }
  .personal-grid { grid-template-columns: 1fr; gap: 20px; }
  .personal-card { padding: 24px; }
  .card-heading h3 { font-size: 25px; }
  .music-body { gap: 16px; margin-block: 0 24px; }
  .record-sleeve { min-height: 176px; padding: 20px; }
  .record { width: 136px; }
  .record > span { font-size: 23px; }
  .video-card { padding: 0; }
  .video-content { padding: 24px; }
  .video-preview { aspect-ratio: 1.9; }
  .play-icon { gap: 6px; padding-inline: 10px; }
  .play-icon > span[data-i18n] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .contact { margin-top: 64px; padding: 28px 24px; flex-direction: column; align-items: flex-start; gap: 25px; }
  .contact h2 { font-size: clamp(42px, 10vw, 60px); }
  .contact-action { min-width: 0; width: 100%; }
  .footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 24px; }
  .footer > span { grid-column: 1; grid-row: 1; }
  .footer > .privacy-note { grid-column: 1; grid-row: 2; }
  @supports (anchor-name: --privacy-info) {
    .privacy-note { anchor-name: --privacy-note; }
    .privacy-popover { bottom: anchor(--privacy-note top); }
  }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .navigation-menu > nav { padding: 12px; }
  .brand-mark { font-size: 20px; }
  .profile-content { padding-inline: 17px; }
  .profile-json { font-size: 14px; }
  .window-bar, .window-footer { padding-inline: 17px; }
  .json:not(.profile-json) { padding-inline: 14px; }
  .card-heading h3 { font-size: 23px; }
  .card-symbol { font-size: 21px; }
  .repo-links a { font-size: 12px; }
  .button { padding-inline: 18px; gap: 22px; }
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition: none !important; }
html[data-motion="off"] #theme-mode::picker(select) { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  /* Pico forces 1ms animations; restore our timings while playback is enabled. */
  html[data-motion="on"] :is(.portrait-gesture-icon, .typing-cursor, .scroll-reveal, .transition-card, .pinch-icon, .pizza-icon, .moustache-icon, .mandolin-icon) { animation-duration: var(--motion-duration) !important; animation-delay: 0s !important; }
  html[data-motion="on"] :is(.portrait-gesture-icon, .typing-cursor, .pinch-icon, .pizza-icon, .moustache-icon, .mandolin-icon) { animation-iteration-count: infinite !important; }
  html:not([data-motion="on"]) { scroll-behavior: auto; }
  html:not([data-motion="on"]) *, html:not([data-motion="on"]) *::before, html:not([data-motion="on"]) *::after { animation: none !important; transition: none !important; }
  html:not([data-motion="on"]) #theme-mode::picker(select) { transition: none !important; }
  html:not([data-motion="on"]) .json.is-typing > code { opacity: 1; }
  html:not([data-motion="on"]) .typewriter.is-typing > [data-typewriter] { opacity: 1; }
  html:not([data-motion="on"]) .typing-overlay { display: none; }
}
