      *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

      :root {
        --bg: #f5f3ef;
        --bg2: #eceae4;
        --bg3: #e4e1da;
        --surface: #ffffff;
        --border: rgba(0, 0, 0, 0.08);
        --border-light: rgba(0, 0, 0, 0.14);
        --text: #1a1a1a;
        --text-dim: #4a4a4a;
        --text-muted: #8a8a8a;
        --accent: #2563eb;
        --accent-soft: rgba(37, 99, 235, 0.07);
        --accent2: #c2410c;
        --accent2-soft: rgba(194, 65, 12, 0.07);
        --green: #16a34a;
        --green-soft: rgba(22, 163, 74, 0.06);
        --red: #dc2626;
        --red-soft: rgba(220, 38, 38, 0.06);
        --grid-line: rgba(0, 0, 0, 0.07);
        --grid-line-strong: rgba(0, 0, 0, 0.13);
        --pencil: #3a3a3a;
        --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        --mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;
        --display: 'Inter', sans-serif;
      }

      html { scroll-behavior: smooth; }

      body {
        font-family: var(--sans);
        background: var(--bg);
        color: var(--text);
        overflow-x: hidden;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        background-image:
          linear-gradient(var(--grid-line) 1px, transparent 1px),
          linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
          linear-gradient(var(--grid-line-strong) 1px, transparent 1px),
          linear-gradient(90deg, var(--grid-line-strong) 1px, transparent 1px);
        background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
        background-attachment: fixed;
      }

      a { color: inherit; text-decoration: none; }
      strong { font-weight: 600; }

      /* ═══ SCROLLBAR ═══ */
      ::-webkit-scrollbar { width: 5px; }
      ::-webkit-scrollbar-track { background: var(--bg); }
      ::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }
      ::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.3); }

      /* ═══ NAV ═══ */
      nav {
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 100;
        padding: 0 2rem;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(245, 243, 239, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid transparent;
        transition: border-color 0.3s, background 0.3s;
      }
      nav.scrolled {
        border-bottom-color: var(--border);
        background: rgba(245, 243, 239, 0.97);
      }
      .nav-logo {
        font-family: var(--mono);
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text);
        letter-spacing: -0.02em;
      }
      .nav-logo span { color: var(--accent); }
      .nav-links {
        display: flex;
        gap: 0.25rem;
        list-style: none;
      }
      .nav-links a {
        font-size: 0.8rem;
        font-weight: 400;
        color: var(--text-muted);
        padding: 0.4rem 0.75rem;
        border-radius: 6px;
        transition: color 0.2s, background 0.2s;
      }
      .nav-links a:hover { color: var(--text); background: var(--surface); }
      .nav-links a.active { color: var(--accent); background: var(--accent-soft); }

      /* ═══ HERO ═══ */
      .hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 80px 2rem 4rem;
        position: relative;
        overflow: hidden;
      }

      .hero-glow {
        position: absolute;
        width: 600px; height: 600px;
        border-radius: 50%;
        filter: blur(150px);
        opacity: 0.08;
        pointer-events: none;
      }
      .hero-glow-1 { top: -200px; right: -100px; background: #93c5fd; }
      .hero-glow-2 { bottom: -200px; left: -100px; background: #fde68a; }

      .hero-inner {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 4rem;
        align-items: center;
      }

      .hero-content { position: relative; z-index: 1; }

      .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-family: var(--mono);
        font-size: 0.72rem;
        color: var(--accent);
        background: var(--accent-soft);
        padding: 0.35rem 0.85rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
        letter-spacing: 0.02em;
      }
      .hero-badge::before {
        content: '';
        width: 6px; height: 6px;
        background: var(--green);
        border-radius: 50%;
        animation: pulse 2s ease-in-out infinite;
      }
      @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.4; }
      }

      .hero h1 {
        font-family: var(--sans);
        font-size: clamp(3rem, 6vw, 4.5rem);
        font-weight: 700;
        line-height: 1.08;
        letter-spacing: -0.03em;
        margin-bottom: 1.25rem;
      }
      .hero h1 .accent { color: var(--accent); }
      .hero h1 .dim {
        color: var(--text-dim);
        font-weight: 300;
      }

      .hero-tagline {
        font-size: 1.15rem;
        color: var(--text-dim);
        line-height: 1.65;
        max-width: 540px;
        margin-bottom: 2rem;
      }

      .hero-roles {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 2.5rem;
      }
      .role-tag {
        font-family: var(--mono);
        font-size: 0.68rem;
        letter-spacing: 0.02em;
        padding: 0.35rem 0.75rem;
        border-radius: 6px;
        border: 1px solid var(--border);
        color: var(--text-dim);
        transition: all 0.25s;
      }
      .role-tag:hover { border-color: var(--accent); color: var(--accent); }
      .role-tag[data-color="purple"] { border-color: rgba(124, 58, 237, 0.25); color: #7c3aed; }
      .role-tag[data-color="amber"] { border-color: rgba(217, 119, 6, 0.25); color: #b45309; }
      .role-tag[data-color="green"] { border-color: rgba(22, 163, 74, 0.25); color: #16a34a; }
      .role-tag[data-color="red"] { border-color: rgba(220, 38, 38, 0.25); color: #dc2626; }
      .role-tag[data-color="blue"] { border-color: rgba(37, 99, 235, 0.25); color: #2563eb; }

      .hero-actions {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
      }

      .btn {
        font-family: var(--mono);
        font-size: 0.75rem;
        font-weight: 500;
        padding: 0.55rem 1.15rem;
        border-radius: 2px;
        border: 1px solid var(--border-light);
        color: var(--text);
        background: transparent;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        cursor: pointer;
        letter-spacing: 0.03em;
        text-transform: uppercase;
      }
      .btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
      .btn-primary {
        background: var(--accent);
        border-color: var(--accent);
        color: #fff;
      }
      .btn-primary:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
      }

      .hero-photo {
        position: relative;
        z-index: 1;
      }
      .hero-photo img {
        width: 100%;
        border-radius: 4px;
        object-fit: cover;
        aspect-ratio: 3/4;
        filter: grayscale(15%) contrast(1.05);
        mix-blend-mode: normal;
      }
      .hero-photo::after {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: 4px;
        border: 1px solid var(--border-light);
        pointer-events: none;
      }

      /* ═══ SECTION SYSTEM ═══ */
      section { position: relative; }

      .section-divider {
        max-width: 1200px;
        margin: 0 auto;
        height: 1px;
        background: var(--border-light);
        position: relative;
      }
      .section-divider::before, .section-divider::after {
        content: '';
        position: absolute;
        top: -3px;
        width: 7px; height: 7px;
        border: 1px solid var(--border-light);
        background: var(--bg);
      }
      .section-divider::before { left: 0; }
      .section-divider::after { right: 0; }

      .s-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 6rem 2rem;
      }

      .s-header {
        margin-bottom: 3.5rem;
      }

      .s-label {
        font-family: var(--mono);
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 0.75rem;
      }

      .s-title {
        font-family: var(--sans);
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 700;
        letter-spacing: -0.03em;
        line-height: 1.1;
        color: var(--text);
      }
      .s-title .dim { color: var(--text-muted); font-weight: 300; }

      .s-subtitle {
        font-size: 1.05rem;
        color: var(--text-dim);
        line-height: 1.65;
        max-width: 600px;
        margin-top: 1rem;
      }

      /* ═══ ABOUT ═══ */
      #about { background: rgba(245, 243, 239, 0.55); }

      .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
      }

      .about-prose {
        font-size: 1.05rem;
        line-height: 1.8;
        color: var(--text-dim);
      }
      .about-prose p + p { margin-top: 1.25rem; }
      .about-prose strong { color: var(--text); }

      .about-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        background: var(--border);
        border: 1px solid var(--border-light);
        border-radius: 2px;
        overflow: hidden;
      }
      .stat-card {
        background: var(--bg2);
        padding: 1.5rem;
        text-align: center;
        transition: background 0.25s;
      }
      .stat-card:hover { background: var(--surface); }
      .stat-num {
        font-family: var(--sans);
        font-size: 2rem;
        font-weight: 700;
        color: var(--text);
        line-height: 1;
        margin-bottom: 0.3rem;
      }
      .stat-num .accent { color: var(--accent); }
      .stat-label {
        font-size: 0.75rem;
        color: var(--text-muted);
        letter-spacing: 0.02em;
      }

      .about-aside {
        margin-top: 2rem;
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid var(--border-light);
        border-radius: 2px;
        padding: 1.5rem;
        font-size: 0.92rem;
        line-height: 1.7;
        color: var(--text-dim);
        position: relative;
        overflow: hidden;
      }
      .about-aside::before {
        content: '';
        position: absolute;
        top: 0; left: 0;
        width: 2px; height: 100%;
        background: var(--accent);
      }
      .about-aside strong { color: var(--text); }

      /* ═══ WORK ═══ */
      #work { background: rgba(236, 234, 228, 0.72); }

      .work-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
      }

      .work-card {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid var(--border);
        border-radius: 2px;
        padding: 1.35rem;
        transition: border-color 0.3s, transform 0.3s;
        position: relative;
        overflow: hidden;
      }
      .work-card:hover {
        border-color: var(--border-light);
        transform: translateY(-2px);
      }
      .work-card.featured {
        grid-column: span 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
      }
      .work-card.wide {
        grid-column: span 3;
      }

      .work-card-tag {
        font-family: var(--mono);
        font-size: 0.6rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 0.2rem 0.5rem;
        border-radius: 1px;
        display: inline-block;
        margin-bottom: 0.75rem;
        border: 1px solid;
      }
      .work-card-tag.architect   { border-color: rgba(37,99,235,0.25); color: #2563eb; background: rgba(37,99,235,0.06); }
      .work-card-tag.research    { border-color: rgba(220,38,38,0.25); color: #dc2626; background: rgba(220,38,38,0.06); }
      .work-card-tag.teaching    { border-color: rgba(217,119,6,0.25); color: #b45309; background: rgba(217,119,6,0.06); }
      .work-card-tag.graphics    { border-color: rgba(22,163,74,0.25); color: #16a34a; background: rgba(22,163,74,0.06); }
      .work-card-tag.healthcare  { border-color: rgba(147,51,234,0.3); color: #9333ea; background: rgba(147,51,234,0.07); }

      .work-card h3 {
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: -0.02em;
        margin-bottom: 0.4rem;
        line-height: 1.25;
      }
      .work-card h3 a { transition: color 0.2s; }
      .work-card h3 a:hover { color: var(--accent); }
      .work-card h3 .arrow {
        font-size: 0.9rem;
        opacity: 0;
        transition: opacity 0.2s, transform 0.2s;
        display: inline-block;
      }
      .work-card:hover h3 .arrow { opacity: 1; transform: translate(2px, -2px); }

      .work-card p {
        font-size: 0.82rem;
        line-height: 1.6;
        color: var(--text-dim);
      }

      .work-card-tech {
        margin-top: 1.25rem;
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
      }
      .tech-tag {
        font-family: var(--mono);
        font-size: 0.58rem;
        padding: 0.18rem 0.45rem;
        border-radius: 1px;
        background: rgba(0, 0, 0, 0.03);
        color: var(--text-muted);
        border: 1px solid var(--border);
        letter-spacing: 0.02em;
      }

      .work-card-highlight {
        font-family: var(--mono);
        font-size: 0.72rem;
        color: var(--green);
        margin-top: 0.75rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
      }

      /* ═══ PROJECTS ═══ */
      #projects { background: rgba(245, 243, 239, 0.55); }

      .projects-grid {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
        scrollbar-color: var(--border-light) transparent;
      }
      .projects-grid::-webkit-scrollbar { height: 4px; }
      .projects-grid::-webkit-scrollbar-track { background: transparent; }
      .projects-grid::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

      .project-card {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid var(--border);
        border-radius: 2px;
        padding: 1.15rem;
        transition: border-color 0.25s, transform 0.25s;
        min-width: 240px;
        max-width: 260px;
        flex-shrink: 0;
        scroll-snap-align: start;
      }
      .project-card:hover {
        border-color: var(--border-light);
        transform: translateY(-2px);
      }

      .project-card-num {
        font-family: var(--mono);
        font-size: 0.6rem;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
      }

      .project-card h3 {
        font-size: 0.92rem;
        font-weight: 600;
        margin-bottom: 0.35rem;
        letter-spacing: -0.01em;
      }
      .project-card h3 a { transition: color 0.2s; }
      .project-card h3 a:hover { color: var(--accent); }

      .project-card p {
        font-size: 0.85rem;
        line-height: 1.65;
        color: var(--text-muted);
      }

      .project-card-stack {
        margin-top: 0.75rem;
        font-family: var(--mono);
        font-size: 0.6rem;
        color: var(--text-muted);
        opacity: 0.6;
      }

      /* ═══ CAREER ═══ */
      #career { background: rgba(236, 234, 228, 0.72); }

      .career-timeline {
        position: relative;
        padding-left: 2rem;
      }
      .career-timeline::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        background: var(--border);
      }

      .career-entry {
        position: relative;
        padding: 0 0 2.5rem 2rem;
      }
      .career-entry:last-child { padding-bottom: 0; }

      .career-entry::before {
        content: '';
        position: absolute;
        left: -2rem;
        top: 0.5rem;
        width: 9px; height: 9px;
        border-radius: 50%;
        background: var(--border);
        border: 2px solid var(--bg);
        transition: background 0.3s;
      }
      .career-entry:hover::before { background: var(--accent); }

      .career-entry-company {
        font-weight: 600;
        font-size: 1.05rem;
        margin-bottom: 0.15rem;
      }

      .career-entry-role {
        font-family: var(--mono);
        font-size: 0.68rem;
        color: var(--accent);
        letter-spacing: 0.02em;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
      }

      .career-entry p {
        font-size: 0.9rem;
        line-height: 1.7;
        color: var(--text-dim);
        max-width: 600px;
      }

      .career-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 4rem;
        align-items: start;
      }

      .career-sidebar {
        position: sticky;
        top: 80px;
      }

      .award-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.5rem;
        position: relative;
        overflow: hidden;
      }
      .award-card::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), var(--accent2));
      }
      .award-card-label {
        font-family: var(--mono);
        font-size: 0.62rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--accent2);
        margin-bottom: 0.75rem;
      }
      .award-card-title {
        font-weight: 600;
        font-size: 1.05rem;
        line-height: 1.35;
        margin-bottom: 0.4rem;
      }
      .award-card-sub {
        font-size: 0.82rem;
        color: var(--text-muted);
      }

      .personal-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1.5rem;
        margin-top: 1rem;
      }
      .personal-card h4 {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.6rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
      }
      .personal-card p {
        font-size: 0.85rem;
        color: var(--text-dim);
        line-height: 1.65;
      }

      .media-stack {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
      }
      .media-item {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid var(--border);
      }
      .media-item video,
      .media-item img {
        width: 100%;
        display: block;
        object-fit: cover;
        aspect-ratio: 16/9;
        filter: grayscale(15%);
        transition: filter 0.4s, transform 0.5s;
      }
      .media-item:hover video,
      .media-item:hover img {
        filter: grayscale(0%);
        transform: scale(1.03);
      }
      .media-label {
        position: absolute;
        bottom: 0.5rem;
        left: 0.5rem;
        font-family: var(--mono);
        font-size: 0.6rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(8px);
        color: var(--text-dim);
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
      }

      /* ═══ CONTACT ═══ */
      #contact { background: rgba(245, 243, 239, 0.55); }

      .contact-layout {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: end;
        gap: 4rem;
      }

      .contact-heading {
        font-size: clamp(2.5rem, 6vw, 4.5rem);
        font-weight: 700;
        letter-spacing: -0.03em;
        line-height: 1.05;
      }
      .contact-heading .accent { color: var(--accent); }

      .contact-sub {
        margin-top: 1rem;
        font-size: 1.05rem;
        color: var(--text-dim);
      }

      .contact-links-list {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        align-items: flex-end;
      }
      .contact-link {
        font-family: var(--mono);
        font-size: 0.78rem;
        color: var(--text-dim);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        transition: all 0.2s;
      }
      .contact-link:hover {
        color: var(--text);
        background: var(--surface);
      }
      .contact-link svg {
        width: 16px; height: 16px;
        opacity: 0.5;
      }

      /* ═══ FOOTER ═══ */
      footer {
        border-top: 1px solid var(--border);
        padding: 1.5rem 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
      }
      .footer-name {
        font-family: var(--mono);
        font-size: 0.72rem;
        color: var(--text-muted);
      }
      .footer-note {
        font-size: 0.78rem;
        color: var(--text-muted);
        font-style: italic;
      }
      .footer-note em { color: var(--accent); font-style: normal; }

      /* ═══ SHOWCASE ═══ */
      /* ═══ WORK GROUP LABELS ═══ */
      .work-group-label {
        font-family: var(--mono);
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--text-dim);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 2.5rem 0 1.25rem;
      }
      .work-group-label::before {
        content: '—';
        color: var(--accent);
        letter-spacing: 0;
        flex: none;
      }
      .work-group-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border-light);
      }
      .work-group-label:first-of-type { margin-top: 0.5rem; }

      /* ═══ SHOWCASE TILES ═══ */
      .stile-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 260px;
        grid-auto-rows: 210px;
        gap: 0.75rem;
      }
      /* Featured tile: 2 cols × 2 rows */
      .stile-featured { grid-column: span 2; grid-row: span 2; }
      .stile {
        position: relative;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 3px;
        cursor: pointer;
        transition: border-color 0.3s, transform 0.2s;
        background: #111113;
        text-decoration: none;
        display: block;
      }
      .stile:hover { border-color: var(--border-light); transform: translateY(-2px); }
      .stile::before {
        content: ''; position: absolute;
        top: 0; left: 0; right: 0; height: 2px; z-index: 2;
      }
      .stile-indigo { background: linear-gradient(135deg,#1e2a4a 0%,#0d1117 100%); }
      .stile-indigo::before  { background: #2563eb; }
      .stile-green  { background: linear-gradient(135deg,#0a2a1a 0%,#0d1117 100%); }
      .stile-green::before   { background: #16a34a; }
      .stile-cyan   { background: linear-gradient(135deg,#061e26 0%,#0d1117 100%); }
      .stile-cyan::before    { background: #0891b2; }
      .stile-emerald{ background: linear-gradient(135deg,#0a2018 0%,#0d1117 100%); }
      .stile-emerald::before { background: #059669; }
      .stile-violet::before  { background: #7c3aed; }
      .stile-amber::before   { background: #d97706; }
      .stile-rose   { background: linear-gradient(135deg,#1a0a1e 0%,#0d0b14 100%); }
      .stile-rose::before    { background: #9333ea; }

      /* ── Una Voz banner tile ── */
      .stile-voz {
        grid-column: span 3;
      }
      .voz-orb {
        position: absolute;
        left: 90px;
        top: 50%;
        transform: translateY(-50%);
        width: 140px;
        height: 140px;
        z-index: 2;
        pointer-events: none;
      }
      .voz-ring {
        position: absolute;
        border-radius: 50%;
        animation: voz-breathe 3.5s ease-in-out infinite;
      }
      .voz-ring:nth-child(1) { inset: 30px; border: 1px solid rgba(147,51,234,0.55); animation-delay: 0s; }
      .voz-ring:nth-child(2) { inset: 12px; border: 1px solid rgba(147,51,234,0.28); animation-delay: 0.5s; }
      .voz-ring:nth-child(3) { inset: -6px;  border: 1px solid rgba(147,51,234,0.12); animation-delay: 1s; }
      .voz-orb-core {
        position: absolute;
        inset: 44px;
        border-radius: 50%;
        background: rgba(147,51,234,0.1);
        border: 1px solid rgba(147,51,234,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .voz-orb-core svg { width: 15px; height: 15px; stroke: rgba(192,132,252,0.9); }
      @keyframes voz-breathe {
        0%, 100% { opacity: 1; transform: scale(1); }
        50%       { opacity: 0.55; transform: scale(1.06); }
      }
      .voz-preview {
        position: absolute;
        right: 0; top: 0;
        width: 50%; height: 100%;
        object-fit: cover;
        object-position: left center;
        filter: brightness(0.38);
        transition: filter 0.4s;
      }
      .stile-voz:hover .voz-preview { filter: brightness(0.55); }
      .voz-fade {
        position: absolute;
        right: 0; top: 0;
        width: 68%; height: 100%;
        background: linear-gradient(to right, #1a0a1e 0%, #1a0a1e 10%, transparent 65%);
        z-index: 1;
      }
      .voz-content {
        position: absolute;
        left: 245px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        max-width: 340px;
      }
      .voz-eyebrow {
        font-family: var(--mono);
        font-size: 0.5rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(192,132,252,0.6);
        margin-bottom: 0.5rem;
      }
      @media (max-width: 640px) {
        .stile-voz { }
        .voz-orb { left: 50%; transform: translate(-50%, -65%); width: 100px; height: 100px; }
        .voz-ring:nth-child(1) { inset: 20px; }
        .voz-ring:nth-child(2) { inset: 8px; }
        .voz-ring:nth-child(3) { inset: -4px; }
        .voz-orb-core { inset: 30px; }
        .voz-preview { width: 100%; filter: brightness(0.22); }
        .voz-fade { display: none; }
        .voz-content { left: 1rem; top: auto; bottom: 1rem; transform: none; max-width: calc(100% - 2rem); }
        .voz-eyebrow { display: none; }
      }

      /* media bg */
      .stile-media {
        position: absolute; inset: 0;
        width: 100%; height: 100%; object-fit: cover;
        filter: brightness(0.5);
        transition: filter 0.4s, transform 0.5s;
      }
      .stile:hover .stile-media { filter: brightness(0.7); transform: scale(1.04); }
      /* large decorative glyph for dark tiles */
      .stile-glyph {
        position: absolute; top: 50%; left: 50%;
        transform: translate(-50%,-60%);
        font-size: 5rem; opacity: 0.07;
        pointer-events: none; user-select: none;
        transition: opacity 0.3s;
      }
      .stile:hover .stile-glyph { opacity: 0.12; }
      /* overlay gradient */
      .stile-overlay {
        position: absolute; inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
        z-index: 1;
      }
      /* content */
      .stile-content {
        position: absolute; bottom: 0; left: 0; right: 0;
        padding: 1rem 1.1rem; z-index: 2;
      }
      .stile-title {
        font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
        color: white; margin-bottom: 0.2rem; letter-spacing: -0.01em;
      }
      .stile-desc {
        font-size: 0.63rem; color: rgba(255,255,255,0.5);
        line-height: 1.45; margin-bottom: 0.45rem;
      }
      .stile-tags { display: flex; flex-wrap: wrap; gap: 0.2rem; margin-bottom: 0.45rem; }
      .stile-tag {
        font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.5px;
        padding: 0.15rem 0.4rem;
        border: 1px solid rgba(255,255,255,0.16); border-radius: 2px;
        color: rgba(255,255,255,0.55);
      }
      .stile-cta {
        font-family: var(--mono); font-size: 0.52rem; font-weight: 600;
        letter-spacing: 1.5px; text-transform: uppercase;
        color: rgba(255,255,255,0.3); transition: color 0.2s;
      }
      .stile:hover .stile-cta { color: white; }
      /* badge */
      .stile-badge {
        position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2;
        font-family: var(--mono); font-size: 0.47rem; font-weight: 600;
        letter-spacing: 1.5px; text-transform: uppercase;
        padding: 0.18rem 0.45rem; border-radius: 2px;
      }
      .stile-badge.live {
        background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.35);
        color: #22c55e;
      }
      .stile-badge.ext {
        background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
        color: rgba(255,255,255,0.45);
      }
      /* personal strip */
      .stile-strip {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        margin-top: 0.75rem;
      }
      .stile-strip .stile { aspect-ratio: 16/9; cursor: default; }
      .stile-strip .stile:hover { transform: none; }

      /* ═══ MODAL ═══ */
      .demo-modal {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
      }
      .demo-modal.open { display: flex; flex-direction: column; }
      .demo-modal-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.6rem 1.25rem;
        background: #1a1a1a;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
      }
      .demo-modal-bar h3 {
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
      }
      .demo-modal-bar .modal-tags { display: flex; gap: 0.3rem; align-items: center; }
      .demo-modal-close {
        background: none;
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #9a9aa0;
        width: 32px; height: 32px;
        border-radius: 2px;
        cursor: pointer;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s;
      }
      .demo-modal-close:hover { border-color: #60a5fa; color: #60a5fa; }
      .demo-modal-bar .tech-tag {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.12);
        color: #9a9aa0;
      }
      .demo-modal-body {
        flex: 1;
        display: flex;
        min-height: 0;
        overflow: hidden;
        background: #1a1a1a;
      }

      /* legacy bento-desc kept for safety */
      .bento-desc {
        display: block;
        font-size: 0.6rem;
        color: rgba(255,255,255,0.6);
        line-height: 1.3;
      }

      /* ═══ ANIMATIONS ═══ */
      .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
      }
      .reveal.in { opacity: 1; transform: translateY(0); }
      .d1 { transition-delay: 0.05s; }
      .d2 { transition-delay: 0.1s; }
      .d3 { transition-delay: 0.15s; }
      .d4 { transition-delay: 0.2s; }
      .d5 { transition-delay: 0.25s; }
      .d6 { transition-delay: 0.3s; }

      @media (prefers-reduced-motion: reduce) {
        .reveal { opacity: 1; transform: none; transition: none; }
      }

      /* ═══ RESPONSIVE ═══ */
      @media (max-width: 1024px) {
        .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
        .hero-photo { max-width: 280px; }
        .about-grid { grid-template-columns: 1fr; gap: 2rem; }
        .work-grid { grid-template-columns: repeat(2, 1fr); }
        .work-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
        .work-card.wide { grid-column: span 2; }
        .stile-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 220px; grid-auto-rows: 190px; }
        .stile-voz { grid-column: span 2; }
        .stile-featured { grid-column: span 2; grid-row: span 1; }
        .stile-strip { grid-template-columns: repeat(4, 1fr); }
        .project-card { min-width: 220px; }
        .demo-modal-body { flex-direction: column !important; }
        .demo-modal-body > div:last-child {
          width: 100% !important;
          border-left: none !important;
          border-top: 1px solid rgba(255,255,255,0.08);
          max-height: 220px;
          overflow-y: auto;
          flex-shrink: 0 !important;
        }
        .demo-modal-body > div:first-child { min-height: 55vh; }
        .career-layout { grid-template-columns: 1fr; gap: 2rem; }
        .career-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
        .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
        .contact-links-list { align-items: flex-start; }
      }

      @media (max-width: 640px) {
        nav { padding: 0 1rem; }
        .nav-links { gap: 0; overflow-x: auto; scrollbar-width: none; }
        .nav-links::-webkit-scrollbar { display: none; }
        .nav-links a { padding: 0.4rem 0.5rem; font-size: 0.72rem; white-space: nowrap; }
        .hero { padding: 80px 1rem 3rem; }
        .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
        .s-inner { padding: 4rem 1rem; }
        .work-grid { grid-template-columns: 1fr; }
        .work-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
        .work-card.wide { grid-column: span 1; }
        .work-card { padding: 1.15rem; }
        .work-card h3 { font-size: 1rem; }
        .work-card-tech { gap: 0.3rem; }
        .tech-tag { font-size: 0.55rem; padding: 0.18rem 0.4rem; }
        .project-card { min-width: 200px; max-width: 220px; }
        .stile-grid { grid-template-columns: 1fr; grid-template-rows: 210px; grid-auto-rows: 200px; }
        .stile-voz { grid-column: span 1; }
        .stile-featured { grid-column: span 1; grid-row: span 1; }
        .stile-strip { grid-template-columns: repeat(2, 1fr); }
        .demo-modal-body { flex-direction: column !important; }
        .demo-modal-body > div:last-child {
          width: 100% !important;
          border-left: none !important;
          border-top: 1px solid rgba(255,255,255,0.08);
          max-height: 180px;
          overflow-y: auto;
          flex-shrink: 0 !important;
        }
        .demo-modal-body > div:first-child { min-height: 50vh; }
        .demo-modal-bar { padding: 0.5rem 0.75rem; }
        .demo-modal-bar h3 { font-size: 0.7rem; }
        .modal-tags .tech-tag { font-size: 0.5rem; }
        .career-sidebar { grid-template-columns: 1fr; }
        footer { flex-direction: column; gap: 0.4rem; text-align: center; }
        .about-stats { grid-template-columns: 1fr 1fr; }
      }

      /* ═══ NAV MOBILE TOGGLE ═══ */
      .nav-toggle {
        display: none;
        background: none;
        border: none;
        color: var(--text);
        cursor: pointer;
        padding: 0.5rem;
      }
      .nav-toggle svg { width: 20px; height: 20px; }

      @media (max-width: 640px) {
        .nav-toggle { display: block; }
        .nav-links {
          position: fixed;
          top: 60px; left: 0; right: 0;
          background: var(--bg);
          border-bottom: 1px solid var(--border);
          flex-direction: column;
          padding: 1rem;
          display: none;
        }
        .nav-links.open { display: flex; }
        .nav-links a { padding: 0.6rem 0.75rem; font-size: 0.85rem; }
      }
