/*
 * leandercb.dev — Portfolio
 * Author: Leander Cibi
 * Palette: --bg #faf5ec · --accent #ec5a37 (coral) · --pine #1b3a30 · --amber #f0b53d
 * Fonts: Instrument Serif · Inter Tight · JetBrains Mono · Caveat
 *
 * Table of contents:
 *  1. Variables & reset
 *  2. Cursor follower
 *  3. Top pill nav
 *  4. Hero
 *  5. Quick stats strip
 *  6. Marquee
 *  7. Section base styles
 *  8. Project windows (macOS chrome)
 *  9. SwingPick live widget
 * 10. DB-Agent terminal
 * 11. Cere-bro chat preview
 * 12. Carousel (auto-rotating)
 * 13. Experience timeline
 * 14. Skills panel
 * 15. Right Now dashboard
 * 16. Notes strip
 * 17. Reel (phone-aspect tiles)
 * 18. About section
 * 19. Cinephile (dark pine)
 * 20. Contact
 * 21. Footer
 * 22. Scroll reveal animation
 * 23. Responsive (mobile overrides)
 */

  :root {
    --bg:        #faf5ec;
    --bg-2:      #f3ecdb;
    --bg-3:      #ede4cd;
    --ink:       #1a1814;
    --ink-2:     #4a443a;
    --muted:     #807a6d;
    --line:      #e6dec9;
    --line-2:    #d5cbb1;
    --accent:    #ec5a37;
    --accent-2:  #fde7df;
    --pine:      #1b3a30;
    --amber:     #f0b53d;
    --green:     #1f7a4c;
    --red:       #c93a3a;
    --cream:     #ffffff;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter Tight", system-ui, sans-serif;
    font-size: 17px; line-height: 1.55;
    font-feature-settings: "ss01","cv11","kern";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  ::selection { background: var(--accent); color: var(--cream); }
  a { color: inherit; text-decoration: none; }

  /* ── Cursor follower ── */
  .cursor-dot {
    position: fixed; top: 0; left: 0; z-index: 9999;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    transform: translate(-50%,-50%) scale(0);
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s;
    mix-blend-mode: multiply;
    opacity: 0;
  }
  .cursor-dot.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  .cursor-dot.big  { transform: translate(-50%,-50%) scale(4.4); opacity: 0.7; }
  @media (hover: none), (max-width: 900px) { .cursor-dot { display: none; } }

  /* ── TOP PILL NAV (Showroom-style banner) ── */
  nav.top {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
    z-index: 100;
    display: flex; align-items: center; gap: 4px;
    padding: 6px 8px 6px 16px;
    background: rgba(26,24,20,0.92);
    backdrop-filter: blur(14px) saturate(1.2);
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 16px 36px -16px rgba(26,24,20,0.35);
  }
  nav.top .brand {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--bg);
    font-family: "Instrument Serif", serif;
    font-size: 19px;
    padding-right: 12px;
    border-right: 1px solid rgba(255,255,255,0.12);
    margin-right: 6px;
  }
  nav.top .brand .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(236,90,55,0.22);
  }
  nav.top .brand em { font-style: italic; color: var(--accent); }
  nav.top .links { display: flex; gap: 2px; }
  nav.top .links a {
    padding: 7px 14px;
    font-size: 13.5px;
    color: rgba(250,245,236,0.78);
    border-radius: 100px;
    transition: background 0.18s, color 0.18s;
  }
  nav.top .links a:hover { background: rgba(255,255,255,0.08); color: var(--bg); }
  nav.top .cta {
    margin-left: 4px;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--bg) !important;
    border-radius: 100px;
    font-size: 13.5px;
    transition: transform 0.18s, background 0.18s;
  }
  nav.top .cta:hover { background: var(--bg); color: var(--ink) !important; transform: translateY(-1px); }
  @media (max-width: 900px) {
    nav.top { top: 10px; padding: 5px 6px 5px 12px; }
    nav.top .links { display: none; }
    nav.top .brand { font-size: 16px; padding-right: 10px; margin-right: 4px; }
  }

  /* ── HERO ── */
  .hero {
    min-height: 100vh;
    padding: 130px 32px 60px;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1320px; margin: 0 auto;
    position: relative;
  }
  .hero .hi {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 14px;
  }
  .hero .hi .wave {
    display: inline-block; transform-origin: 70% 70%;
    animation: wave 2.6s ease-in-out infinite;
  }
  @keyframes wave {
    0%,60%,100% { transform: rotate(0); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
  }
  .hero h1 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(56px, 7.4vw, 112px);
    line-height: 0.95;
    letter-spacing: -0.025em;
  }
  .hero h1 em { font-style: italic; color: var(--accent); }
  .hero h1 .pop {
    background: var(--accent-2);
    padding: 0 14px 4px;
    border-radius: 8px;
    display: inline-block;
    transform: rotate(-0.6deg);
  }
  .hero .lede {
    margin-top: 30px;
    max-width: 560px;
    font-size: 19px;
    color: var(--ink-2);
  }
  .hero .lede b { color: var(--ink); font-weight: 500; }
  .hero .lede em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    color: var(--accent);
    font-size: 21px;
  }
  .hero .pills {
    margin-top: 34px;
    display: flex; flex-wrap: wrap; gap: 10px;
  }
  .pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 13.5px;
    color: var(--ink-2);
    transition: transform 0.18s, border-color 0.18s;
  }
  .pill:hover { transform: translateY(-2px); border-color: var(--line-2); }
  .pill .ping {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    position: relative;
  }
  .pill .ping::after {
    content: ""; position: absolute; inset: 0;
    border-radius: 50%; background: var(--green);
    opacity: 0.4;
    animation: ping 1.8s ease-out infinite;
  }
  @keyframes ping {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(3); opacity: 0; }
  }

  /* ── Tilted portrait (straightens on hover) ── */
  .portrait-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    max-width: 440px;
    margin: 0 auto;
  }
  .portrait {
    width: 100%; height: 100%;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 28px 60px -28px rgba(120,70,40,0.4),
                0 6px 18px -6px rgba(120,70,40,0.18);
    transform: rotate(-4.5deg);
    transition: transform 0.55s cubic-bezier(0.2,0.85,0.2,1), box-shadow 0.55s;
    background:
      radial-gradient(circle at 30% 25%, #f4c4a9 0%, transparent 45%),
      radial-gradient(circle at 70% 70%, #e89473 0%, transparent 55%),
      linear-gradient(135deg, #b06a4a 0%, #7d4a32 100%);
  }
  .portrait:hover {
    transform: rotate(0deg) scale(1.01);
    box-shadow: 0 36px 80px -28px rgba(120,70,40,0.45);
  }
  .portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .portrait .frame-meta {
    position: absolute; top: 14px; left: 16px; right: 16px;
    display: flex; justify-content: space-between;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    color: rgba(255,250,240,0.7);
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .portrait .frame-meta .rec { color: var(--accent); }
  .portrait .frame-meta .rec::before {
    content: "● "; animation: blink 1.6s ease-in-out infinite;
  }
  @keyframes blink { 50% { opacity: 0.3; } }
  .portrait .corner-label {
    position: absolute;
    bottom: 16px; left: 18px;
    color: rgba(255,250,240,0.85);
    font-family: "Inter Tight", sans-serif;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  .portrait .corner-label b { font-weight: 600; }
  .portrait-arrow {
    position: absolute;
    top: -22px; right: -38px;
    transform: rotate(-12deg);
    font-family: "Caveat", cursive;
    font-size: 26px;
    color: var(--accent);
    line-height: 1.1;
    text-align: center;
    pointer-events: none;
  }
  .portrait-arrow svg {
    display: block;
    width: 78px;
    margin: 4px auto 0;
    transform: rotate(78deg);
  }
  .portrait-hint {
    position: absolute;
    bottom: -36px; left: 50%;
    transform: translateX(-50%);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* ── QUICK STATS STRIP ── */
  .stats-strip {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    margin-top: 24px;
  }
  .stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
  }
  .stat {
    padding: 22px 24px;
    border-right: 1px solid var(--line);
    position: relative;
  }
  .stat:last-child { border-right: none; }
  .stat .k {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .stat .v {
    font-family: "Instrument Serif", serif;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .stat .v em { color: var(--accent); font-style: italic; }
  .stat .v sup { font-size: 18px; color: var(--muted); vertical-align: super; margin-left: 2px; }
  .stat .sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
  }
  @media (max-width: 900px) {
    .stats-inner { grid-template-columns: 1fr; }
    .stat { border-right: none; border-bottom: 1px solid var(--line); }
    .stat:last-child { border-bottom: none; }
  }

  /* ── MARQUEE ── */
  .marquee {
    background: var(--ink);
    color: var(--bg);
    padding: 18px 0;
    overflow: hidden;
    margin-top: 70px;
  }
  .marquee-track {
    display: flex; gap: 56px; white-space: nowrap;
    animation: scroll 42s linear infinite;
    font-family: "Instrument Serif", serif;
    font-size: 28px;
  }
  .marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
  .marquee-track span::after { content: "✦"; color: var(--accent); }
  .marquee-track em { font-style: italic; color: var(--accent); }
  @keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ── Sections ── */
  section { padding: 110px 32px; max-width: 1320px; margin: 0 auto; }
  .sec-head {
    display: flex; justify-content: space-between; align-items: end;
    gap: 40px; flex-wrap: wrap; margin-bottom: 52px;
  }
  .sec-head .eb {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-weight: 500;
  }
  .sec-head .eb::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
  }
  .sec-head h2 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(40px, 5.4vw, 76px);
    line-height: 1.0;
    letter-spacing: -0.022em;
    max-width: 19ch;
  }
  .sec-head h2 em { font-style: italic; color: var(--accent); }
  .sec-head .sec-aside {
    max-width: 340px;
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 1.6;
  }

  /* ── WORK: macOS-window project tiles ── */
  .work-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
  }
  .work-grid .col { display: flex; flex-direction: column; gap: 28px; }

  .app-window {
    background: var(--cream);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 22px 44px -22px rgba(50,30,15,0.18);
    transition: transform 0.4s cubic-bezier(0.2,0.85,0.2,1), box-shadow 0.4s;
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
  }
  .app-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 36px 70px -28px rgba(50,30,15,0.28);
  }
  .app-titlebar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #f6f0e2 0%, #eee5cf 100%);
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .traffic { display: flex; gap: 6px; }
  .traffic span {
    width: 12px; height: 12px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
  }
  .traffic .r { background: #fc5d57; }
  .traffic .y { background: #fdbc2f; }
  .traffic .g { background: #28c940; }
  .app-title {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    color: var(--ink-2);
    letter-spacing: 0.04em;
  }
  .app-title b { color: var(--ink); font-weight: 500; }
  .app-body {
    flex: 1;
    position: relative;
    overflow: hidden;
  }
  .app-canvas {
    aspect-ratio: 16/10;
    position: relative;
    background: var(--bg-2);
    overflow: hidden;
  }
  .app-canvas .canvas-bg {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 42px;
    color: rgba(0,0,0,0.18);
  }
  .canvas-pratyek { background: linear-gradient(135deg, #1a1f3a 0%, #2c3a5e 100%); }
  .canvas-pratyek .canvas-bg {
    color: rgba(255,255,255,0.45);
    background-image:
      radial-gradient(circle at 28% 38%, rgba(236,90,55,0.55) 0%, transparent 35%),
      radial-gradient(circle at 72% 66%, rgba(120,180,255,0.45) 0%, transparent 35%);
  }
  .canvas-cerebro { background: linear-gradient(135deg, #f7e6d4 0%, #e8c9a3 100%); }
  .canvas-cerebro .canvas-bg { color: rgba(50,30,15,0.32); }
  .canvas-dbagent { background: linear-gradient(135deg, #1a1814 0%, #3a342b 100%); }
  .canvas-dbagent .canvas-bg { color: rgba(255,255,255,0.42); }
  .canvas-swingpick { background: linear-gradient(135deg, #0c3424 0%, #155c41 100%); }

  .app-meta {
    padding: 22px 24px 26px;
  }
  .app-meta .row1 {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 8px;
  }
  .app-meta h3 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.04;
    letter-spacing: -0.018em;
  }
  .app-meta .yr {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
  }
  .app-meta .sub {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    color: var(--accent);
    font-size: 17.5px;
    margin-bottom: 12px;
  }
  .app-meta p {
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.6;
  }
  .app-meta .tags {
    margin-top: 16px;
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .app-meta .tags span {
    font-size: 11.5px;
    padding: 3px 10px;
    background: var(--bg-2);
    border-radius: 100px;
    color: var(--ink-2);
  }
  .app-meta .arrow {
    margin-top: 18px;
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink);
    font-weight: 500;
    font-size: 14px;
    transition: gap 0.2s, color 0.2s;
  }
  .app-window:hover .arrow { gap: 12px; color: var(--accent); }

  /* SwingPick live widget — embedded inside the canvas */
  .swp-widget {
    position: absolute; inset: 0;
    padding: 18px 18px 14px;
    color: var(--bg);
    font-family: "Inter Tight", sans-serif;
    display: flex; flex-direction: column;
  }
  .swp-widget .swp-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
  }
  .swp-widget .swp-head .swp-title {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 18px;
    color: var(--bg);
  }
  .swp-widget .swp-head .swp-regime {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(240,181,61,0.22);
    color: var(--amber);
    border: 1px solid rgba(240,181,61,0.4);
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .swp-widget .swp-rows {
    flex: 1;
    display: flex; flex-direction: column;
    gap: 5px;
  }
  .swp-row {
    display: grid;
    grid-template-columns: 36px 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 12.5px;
  }
  .swp-row .swp-tick {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: rgba(250,245,236,0.6);
  }
  .swp-row .swp-name {
    font-weight: 500;
    color: var(--bg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .swp-row .swp-score {
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    color: rgba(250,245,236,0.8);
  }
  .swp-row .swp-action {
    font-size: 10.5px;
    padding: 3px 9px;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.04em;
  }
  .swp-row .swp-action.buy {
    background: rgba(31,122,76,0.28);
    color: #6ee5a0;
    border: 1px solid rgba(110,229,160,0.4);
  }
  .swp-row .swp-action.watch {
    background: rgba(240,181,61,0.18);
    color: var(--amber);
    border: 1px solid rgba(240,181,61,0.36);
  }
  .swp-widget .swp-foot {
    margin-top: 10px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 10.5px;
    font-family: "JetBrains Mono", monospace;
    color: rgba(250,245,236,0.55);
  }
  .swp-widget .swp-foot .disclaim {
    color: rgba(255,170,150,0.85);
    letter-spacing: 0.02em;
  }
  .swp-widget .swp-foot .dot-live {
    display: inline-flex; align-items: center; gap: 6px;
  }
  .swp-widget .swp-foot .dot-live::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: #6ee5a0;
    box-shadow: 0 0 0 4px rgba(110,229,160,0.2);
  }

  /* DB-Agent demo terminal */
  .dba-term {
    position: absolute; inset: 0;
    padding: 16px 18px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    color: rgba(250,245,236,0.85);
    line-height: 1.55;
    overflow: hidden;
  }
  .dba-term .prompt { color: var(--accent); }
  .dba-term .ans { color: rgba(250,245,236,0.6); }
  .dba-term .ok { color: #6ee5a0; }
  .dba-term .hl { color: var(--amber); }

  /* Cere-bro chat preview */
  .cb-chat {
    position: absolute; inset: 0;
    padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 12px;
  }
  .cb-msg {
    padding: 8px 12px;
    border-radius: 14px;
    max-width: 82%;
    font-family: "Inter Tight", sans-serif;
    line-height: 1.4;
    background: var(--cream);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 2px 6px -2px rgba(0,0,0,0.05);
  }
  .cb-msg.me {
    align-self: flex-end;
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
  }
  .cb-msg .who {
    font-size: 9.5px; letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 3px;
  }

  /* Pratyek schema graph mini */
  .pty-graph {
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 30% 35%, rgba(236,90,55,0.32) 0%, transparent 30%),
      radial-gradient(circle at 70% 60%, rgba(120,180,255,0.32) 0%, transparent 32%);
  }

  /* ── RIGHT NOW dashboard ── */
  .now {
    background: var(--ink);
    color: var(--bg);
    border-radius: 24px;
    padding: 44px 40px 46px;
    margin: 20px 0;
  }
  .now .now-head {
    display: flex; justify-content: space-between; align-items: end;
    gap: 24px; flex-wrap: wrap;
    margin-bottom: 32px;
  }
  .now .now-head .eb {
    color: rgba(250,245,236,0.6);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-flex; align-items: center; gap: 10px;
  }
  .now .now-head .eb::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: #6ee5a0;
    box-shadow: 0 0 0 4px rgba(110,229,160,0.18);
  }
  .now .now-head h3 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.018em;
    color: var(--bg);
  }
  .now .now-head h3 em { font-style: italic; color: var(--accent); }
  .now .now-head .meta-line {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: rgba(250,245,236,0.5);
    letter-spacing: 0.08em;
  }
  .now-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  @media (max-width: 900px) { .now-grid { grid-template-columns: 1fr 1fr; } }
  .now-card {
    padding: 18px 18px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    min-height: 168px;
    display: flex; flex-direction: column;
    transition: border-color 0.3s, transform 0.3s;
  }
  .now-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
  .now-card .nc-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(250,245,236,0.55);
  }
  .now-card .nc-head b { color: var(--bg); font-weight: 500; }
  .now-card .nc-body {
    flex: 1;
    display: flex; flex-direction: column;
  }
  .now-card .nc-title {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 21px;
    line-height: 1.18;
    color: var(--bg);
  }
  .now-card .nc-sub {
    margin-top: 8px;
    font-size: 13px;
    color: rgba(250,245,236,0.65);
    line-height: 1.5;
  }
  .now-card .nc-foot {
    margin-top: auto;
    padding-top: 14px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: rgba(250,245,236,0.4);
  }
  .now-card .stars { color: var(--amber); letter-spacing: 0.05em; }
  .now-card .nc-commit {
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    color: rgba(250,245,236,0.78);
    line-height: 1.5;
  }
  .now-card .nc-commit .sha { color: var(--accent); }

  /* ── NOTES strip (Small things) ── */
  .notes-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .note {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 22px;
    transition: transform 0.3s, border-color 0.3s;
  }
  .note:hover { transform: translateY(-3px); border-color: var(--accent); }
  .note .kicker {
    font-size: 10.5px;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .note h5 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -0.012em;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .note p {
    font-size: 13.5px;
    color: var(--muted);
  }
  .note-status {
    margin-top: 14px;
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .note-status::before {
    content: "";
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--muted);
    opacity: 0.5;
  }
  @media (max-width: 900px) { .notes-strip { grid-template-columns: 1fr 1fr; } }

  /* ── REEL (smaller, phone-aspect) ── */
  .reel-section {
    background: var(--ink);
    color: var(--bg);
    padding: 100px 32px 110px;
    margin: 90px 0;
  }
  .reel-inner { max-width: 1320px; margin: 0 auto; }
  .reel-section .sec-head h2 { color: var(--bg); }
  .reel-section .sec-head h2 em { color: var(--accent); }
  .reel-section .sec-head .eb { color: rgba(250,245,236,0.7); }
  .reel-section .sec-head .sec-aside { color: rgba(250,245,236,0.7); }

  /* Phone-aspect reels — kept smaller because phone footage */
  .reel-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  @media (max-width: 900px) { .reel-row { grid-template-columns: 1fr 1fr; } }
  .reel-card {
    aspect-ratio: 9/14;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
  }
  .reel-card:hover { transform: translateY(-4px); border-color: var(--accent); }
  .reel-card .reel-bg {
    position: absolute; inset: 0;
    background:
      linear-gradient(135deg, rgba(236,90,55,0.32) 0%, transparent 60%),
      linear-gradient(225deg, rgba(45,90,77,0.5) 0%, transparent 60%);
  }
  .reel-card:nth-child(2) .reel-bg {
    background:
      linear-gradient(135deg, rgba(75,140,200,0.35) 0%, transparent 60%),
      linear-gradient(225deg, rgba(45,90,77,0.55) 0%, transparent 60%);
  }
  .reel-card:nth-child(3) .reel-bg {
    background:
      linear-gradient(135deg, rgba(243,201,122,0.5) 0%, transparent 60%),
      linear-gradient(225deg, rgba(176,74,37,0.5) 0%, transparent 60%);
  }
  .reel-card:nth-child(4) .reel-bg {
    background:
      linear-gradient(135deg, rgba(180,140,90,0.45) 0%, transparent 60%),
      linear-gradient(225deg, rgba(30,30,60,0.5) 0%, transparent 60%);
  }
  .reel-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  }
  .reel-card .reel-top {
    position: absolute; top: 12px; left: 14px; right: 14px;
    display: flex; justify-content: space-between;
    font-family: "JetBrains Mono", monospace;
    font-size: 9.5px;
    letter-spacing: 0.18em;
    color: rgba(250,245,236,0.7);
    text-transform: uppercase;
    z-index: 2;
  }
  .reel-card .reel-play {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.94);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    z-index: 2;
    transition: transform 0.2s, background 0.2s;
  }
  .reel-card:hover .reel-play { background: var(--accent); color: var(--bg); transform: translate(-50%,-50%) scale(1.08); }
  .reel-card .reel-meta {
    position: absolute; bottom: 16px; left: 14px; right: 14px;
    z-index: 2;
    color: var(--bg);
  }
  .reel-card .reel-meta .rm-title {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 17px;
    line-height: 1.15;
  }
  .reel-card .reel-meta .rm-info {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(250,245,236,0.7);
    letter-spacing: 0.04em;
  }

  /* ── ABOUT ── */
  .about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
  }
  @media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }
  .about-grid p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-2);
    margin-bottom: 18px;
  }
  .about-grid p b { color: var(--ink); font-weight: 500; }
  .about-grid p em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 19px;
    color: var(--accent);
  }
  .about-grid p:first-of-type::first-letter {
    font-family: "Instrument Serif", serif;
    font-size: 72px;
    float: left;
    line-height: 0.85;
    margin: 6px 14px 0 0;
    color: var(--accent);
  }
  .about-aside {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px 30px;
  }
  .about-aside h4 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
  }
  .about-aside h4 em { font-style: italic; color: var(--accent); }
  .about-aside dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px 16px;
  }
  .about-aside dt {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-top: 4px;
  }
  .about-aside dd {
    font-size: 15px;
    color: var(--ink-2);
  }
  .about-aside dd em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 16px;
    color: var(--ink);
  }
  .about-aside dd a {
    border-bottom: 1px solid var(--line-2);
    transition: color 0.2s, border-color 0.2s;
  }
  .about-aside dd a:hover { color: var(--accent); border-color: var(--accent); }

  /* Impact numbers strip inside about */
  .impact {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .impact .imp {
    padding: 22px 22px 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
  }
  .impact .imp::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
  }
  .impact .imp .label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .impact .imp .big {
    font-family: "Instrument Serif", serif;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .impact .imp .big em { color: var(--accent); font-style: italic; }
  .impact .imp .desc {
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-2);
  }
  @media (max-width: 900px) { .impact { grid-template-columns: 1fr; } }

  /* Skill ribbon */
  .ribbon {
    margin-top: 28px;
    padding: 20px 22px;
    background: var(--bg-3);
    border-radius: 14px;
    border: 1px solid var(--line);
  }
  .ribbon .r-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .ribbon .r-items {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .ribbon .r-items span {
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    padding: 4px 10px;
    background: var(--cream);
    border: 1px solid var(--line-2);
    border-radius: 100px;
    color: var(--ink-2);
  }
  .ribbon .r-items span em { font-style: normal; color: var(--accent); font-weight: 500; }

  /* ── CINEPHILE SECTION (at the end) ── */
  .cinephile {
    background: var(--pine);
    color: var(--bg);
    border-radius: 28px;
    padding: 64px 48px 60px;
    margin: 20px 0 0;
    position: relative;
    overflow: hidden;
  }
  .cinephile::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 14px;
    background-image: repeating-linear-gradient(
      90deg, var(--bg) 0 14px, transparent 14px 28px
    );
    background-size: 28px 14px;
    background-position: 0 0;
  }
  .cinephile::after {
    content: "";
    position: absolute; bottom: 0; left: 0; right: 0; height: 14px;
    background-image: repeating-linear-gradient(
      90deg, var(--bg) 0 14px, transparent 14px 28px
    );
  }
  .cinephile .cin-head {
    display: flex; justify-content: space-between; align-items: end;
    gap: 30px; flex-wrap: wrap;
    margin-bottom: 36px;
  }
  .cinephile .cin-head .eb {
    color: rgba(250,245,236,0.6);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .cinephile .cin-head h3 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(32px, 4.2vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.022em;
    color: var(--bg);
    max-width: 18ch;
  }
  .cinephile .cin-head h3 em { font-style: italic; color: var(--amber); }
  .cinephile .cin-head .ic-aside {
    max-width: 320px;
    color: rgba(250,245,236,0.75);
    font-size: 14.5px;
    line-height: 1.6;
  }
  .cin-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
  }
  @media (max-width: 900px) {
    .cin-grid { grid-template-columns: 1fr; }
    /* Hide punch-hole circles on mobile — they overflow at narrow widths */
    .ticket::before, .ticket::after { display: none; }
    .cinephile { padding: 40px 20px 48px; }
    .cinephile::before, .cinephile::after {
      background-size: 20px 12px;
      height: 12px;
    }
  }

  .ticket {
    background: var(--bg);
    color: var(--ink);
    border-radius: 16px;
    padding: 26px 30px 28px;
    position: relative;
    box-shadow: 0 24px 60px -28px rgba(0,0,0,0.45);
  }
  .ticket::before, .ticket::after {
    content: "";
    position: absolute;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--pine);
    top: 50%; transform: translateY(-50%);
  }
  .ticket::before { left: -8px; }
  .ticket::after { right: -8px; }
  .ticket .t-row {
    display: flex; justify-content: space-between; align-items: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .ticket .t-row .gate { color: var(--accent); }
  .ticket h4 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 38px;
    line-height: 1.02;
    letter-spacing: -0.022em;
    margin-bottom: 6px;
  }
  .ticket h4 em { font-style: italic; color: var(--accent); }
  .ticket .director {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 17px;
    color: var(--ink-2);
    margin-bottom: 18px;
  }
  .ticket .rating {
    color: var(--amber);
    font-size: 20px;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
  }
  .ticket .review {
    font-size: 14.5px;
    color: var(--ink-2);
    line-height: 1.55;
    border-top: 1px dashed var(--line-2);
    padding-top: 16px;
  }
  .ticket .review b { color: var(--ink); font-weight: 500; }
  .ticket .t-foot {
    margin-top: 18px;
    display: flex; justify-content: space-between;
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: 0.1em;
  }
  .ticket .t-foot a { color: var(--accent); border-bottom: 1px solid var(--accent); }

  .cin-side {
    display: flex; flex-direction: column; gap: 14px;
  }
  .cin-stat {
    padding: 16px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
  }
  .cin-stat .lab {
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px;
    color: rgba(250,245,236,0.55);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .cin-stat .val {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 22px;
    color: var(--bg);
    line-height: 1.2;
  }
  .cin-stat .val .num { color: var(--amber); font-style: normal; font-size: 26px; margin-right: 6px; }
  .cin-stat .sub-l {
    margin-top: 4px;
    font-size: 12.5px;
    color: rgba(250,245,236,0.62);
  }
  .cin-stat .stars { color: var(--amber); margin-right: 6px; }

  /* ── CONTACT ── */
  .contact {
    padding: 140px 32px 110px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
  }
  .contact .smile {
    font-family: "Caveat", cursive;
    color: var(--accent);
    font-size: 30px;
    margin-bottom: 18px;
  }
  .contact h2 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(48px, 7vw, 104px);
    line-height: 1.0;
    letter-spacing: -0.025em;
  }
  .contact h2 em { font-style: italic; color: var(--accent); }
  .contact h2 a {
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
    transition: color 0.2s, border-color 0.2s;
  }
  .contact h2 a:hover { color: var(--ink); border-bottom-color: var(--ink); }
  .contact .meta {
    margin-top: 38px;
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--line);
    padding: 24px 32px;
    max-width: 1320px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    color: var(--muted);
    font-size: 13px;
  }
  footer .ll a {
    margin-right: 16px;
    transition: color 0.2s;
  }
  footer .ll a:hover { color: var(--accent); }
  footer .domain {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: var(--ink-2);
  }

  /* ── EXPERIENCE (timeline) ── */
  .exp-wrap {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
  }
  @media (max-width: 900px) { .exp-wrap { grid-template-columns: 1fr; } }
  .exp-col-l {
    position: sticky; top: 96px; align-self: start;
  }
  @media (max-width: 900px) { .exp-col-l { position: static; } }
  .exp-col-l .stamp {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .exp-col-l .stamp .yr {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 44px;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
    display: block;
    margin-top: 2px;
    text-transform: none;
  }
  .exp-col-l .stamp .yr small {
    font-size: 18px;
    color: var(--muted);
    font-style: normal;
    margin-left: 4px;
  }
  .exp-col-l .quote {
    margin-top: 14px;
    padding-left: 16px;
    border-left: 2px solid var(--accent);
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 17px;
    color: var(--ink-2);
    line-height: 1.4;
    max-width: 220px;
  }

  .exp-list {
    position: relative;
    padding-left: 26px;
  }
  .exp-list::before {
    content: "";
    position: absolute;
    left: 6px; top: 12px; bottom: 12px;
    width: 1px;
    background: var(--line-2);
  }
  .exp-item {
    position: relative;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px 30px 28px;
    margin-bottom: 22px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  }
  .exp-item:hover {
    border-color: var(--line-2);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -18px rgba(80,40,20,0.14);
  }
  .exp-item::before {
    content: "";
    position: absolute;
    left: -25px; top: 36px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 3px var(--accent-2);
  }
  .exp-item.current::before { background: var(--accent); }
  .exp-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
    gap: 16px;
    margin-bottom: 4px;
  }
  .exp-head .co {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 26px;
    letter-spacing: -0.012em;
  }
  .exp-head .co em { font-style: italic; color: var(--accent); }
  .exp-head .dates {
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .exp-head .dates b { color: var(--ink); font-weight: 500; }
  .exp-role {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 10px;
  }
  .exp-role .where {
    color: var(--ink-2);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    margin-left: 4px;
  }
  .exp-hook {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 19px;
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1.35;
  }
  .exp-body p {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.65;
    margin-bottom: 12px;
    max-width: 60ch;
  }
  .exp-body p b { color: var(--ink); font-weight: 500; }
  .exp-body p em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    color: var(--accent);
    font-size: 16.5px;
  }
  .exp-metrics {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 14px;
    margin-bottom: 14px;
  }
  .exp-metric {
    display: inline-flex; align-items: baseline; gap: 8px;
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 13px;
    color: var(--ink-2);
  }
  .exp-metric .n {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    color: var(--accent);
    font-size: 19px;
    line-height: 1;
  }
  .exp-metric .n sup { font-size: 11px; vertical-align: super; color: var(--muted); font-style: normal; margin-left: 1px; }
  .exp-tags {
    display: flex; flex-wrap: wrap; gap: 5px;
    margin-top: 10px;
  }
  .exp-tags span {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    padding: 3px 9px;
    background: var(--bg-2);
    border-radius: 100px;
    color: var(--ink-2);
  }

  .exp-sub {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px dashed var(--line-2);
  }
  .exp-sub .exp-role { margin-bottom: 6px; }

  .edu-card {
    margin-top: 8px;
    padding: 16px 22px;
    background: var(--bg-2);
    border-radius: 12px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; flex-wrap: wrap;
    font-size: 14px;
    color: var(--ink-2);
  }
  .edu-card .edu-l b {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--ink);
    margin-right: 8px;
  }
  .edu-card .edu-r {
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.06em;
  }

  /* ── SKILLS (grouped panel) ── */
  .skills-panel {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px 40px 40px;
  }
  .skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 48px;
  }
  @media (max-width: 900px) { .skills-grid { grid-template-columns: 1fr; gap: 22px; } }
  .skill-group {
    display: flex; flex-direction: column;
  }
  .skill-group .sg-lab {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .skill-group .sg-lab::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
  }
  .skill-group .sg-items {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .skill-group .sg-items span {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    padding: 4px 11px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 100px;
    color: var(--ink-2);
    transition: border-color 0.18s, transform 0.18s;
  }
  .skill-group .sg-items span:hover { border-color: var(--accent); transform: translateY(-1px); }
  .skill-group .sg-items span em { font-style: normal; color: var(--accent); font-weight: 500; }
  .skills-foot {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
  }
  .skills-foot em {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    color: var(--accent);
    font-size: 15px;
  }

  /* ── CAROUSELS (Cere-bro / Pratyek / DB-Agent) ── */
  .carousel {
    position: absolute; inset: 0;
    overflow: hidden;
  }
  .carousel .slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
  }
  .carousel .slide.active { opacity: 1; pointer-events: auto; }
  .carousel .dots {
    position: absolute;
    bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 6px;
    z-index: 5;
  }
  .carousel .dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.32);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
  }
  .carousel .dots span.on {
    background: rgba(255,255,255,0.95);
    transform: scale(1.15);
  }

  /* — Cere-bro slides — */
  .cb-slide {
    padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 12px;
    background: linear-gradient(135deg, #f7e6d4 0%, #e8c9a3 100%);
  }
  .cb-slide.chat .cb-msg {
    padding: 8px 12px; border-radius: 14px; max-width: 82%;
    font-family: "Inter Tight", sans-serif;
    line-height: 1.4;
    background: var(--cream);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 2px 6px -2px rgba(0,0,0,0.05);
  }
  .cb-slide.chat .cb-msg.me {
    align-self: flex-end;
    background: var(--accent); color: var(--bg);
    border-color: var(--accent);
  }
  .cb-slide.chat .cb-msg .who {
    font-size: 9.5px; letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.55;
    margin-bottom: 3px;
  }
  /* Notion-style dashboard slide */
  .cb-slide.dash {
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cb-slide.dash .dash-card {
    background: rgba(255,255,255,0.85);
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.06);
  }
  .cb-slide.dash .dash-card .dc-l {
    font-family: "JetBrains Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .cb-slide.dash .dash-card .dc-v {
    font-family: "Instrument Serif", serif;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.012em;
    color: var(--ink);
  }
  .cb-slide.dash .dash-card .dc-v em { color: var(--accent); font-style: italic; }
  .cb-slide.dash .dash-card .dc-s {
    margin-top: 4px;
    font-size: 10.5px;
    color: var(--muted);
  }
  .cb-slide.dash .dash-grade {
    grid-column: 1 / -1;
    background: var(--ink);
    color: var(--bg);
    padding: 10px 14px;
    border-radius: 10px;
    display: flex; justify-content: space-between; align-items: center;
  }
  .cb-slide.dash .dash-grade .gl {
    font-family: "JetBrains Mono", monospace;
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(250,245,236,0.6);
  }
  .cb-slide.dash .dash-grade .gv {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 20px;
    color: var(--accent);
  }
  /* Food log slide */
  .cb-slide.food {
    padding: 14px 16px;
    display: flex; flex-direction: column;
  }
  .cb-slide.food .fhead {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(50,30,15,0.5);
    margin-bottom: 8px;
  }
  .cb-slide.food .ftitle {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 19px;
    color: rgba(50,30,15,0.85);
    margin-bottom: 10px;
  }
  .cb-slide.food .food-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 10px;
    background: rgba(255,255,255,0.75);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 5px;
    font-size: 11.5px;
    color: var(--ink);
  }
  .cb-slide.food .food-row .fn {
    color: var(--ink-2);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
  }
  .cb-slide.food .food-foot {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed rgba(50,30,15,0.18);
    display: flex; justify-content: space-between;
    font-size: 11px;
    color: rgba(50,30,15,0.7);
  }
  .cb-slide.food .food-foot b { color: rgba(50,30,15,0.95); }
  /* Tools registry slide */
  .cb-slide.tools {
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 6px;
  }
  .cb-slide.tools .thead {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(50,30,15,0.5);
    margin-bottom: 4px;
  }
  .cb-slide.tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .cb-slide.tools .tool {
    padding: 7px 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    font-size: 11px;
    color: var(--ink);
    font-family: "JetBrains Mono", monospace;
    display: flex; align-items: center; gap: 6px;
  }
  .cb-slide.tools .tool::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
  }
  .cb-slide.tools .tool.dim::before { background: rgba(50,30,15,0.3); }

  /* — Pratyek slides — */
  .pty-slide {
    padding: 14px 16px;
    background: linear-gradient(135deg, #1a1f3a 0%, #2c3a5e 100%);
    color: rgba(255,255,255,0.92);
    font-size: 11.5px;
    display: flex; flex-direction: column;
  }
  .pty-slide.schema {
    align-items: center; justify-content: center;
  }
  .pty-slide.schema .schema-blobs {
    position: absolute; inset: 0;
    background:
      radial-gradient(circle at 28% 38%, rgba(236,90,55,0.55) 0%, transparent 35%),
      radial-gradient(circle at 72% 66%, rgba(120,180,255,0.45) 0%, transparent 35%);
  }
  .pty-slide.schema .schema-label {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 32px;
    color: rgba(255,255,255,0.5);
  }
  .pty-slide.schema svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  /* Feed slide */
  .pty-slide.feed .ptf-head {
    display: flex; justify-content: space-between; align-items: center;
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 10px;
  }
  .pty-slide.feed .feed-row {
    display: flex; gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .pty-slide.feed .feed-row:last-of-type { border-bottom: none; }
  .pty-slide.feed .feed-row .badge {
    flex: 0 0 auto;
    padding: 2px 7px;
    border-radius: 100px;
    font-size: 9.5px;
    font-family: "JetBrains Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    height: fit-content;
  }
  .pty-slide.feed .feed-row .badge.a { background: rgba(236,90,55,0.22); color: #ffb097; border: 1px solid rgba(236,90,55,0.4); }
  .pty-slide.feed .feed-row .badge.b { background: rgba(120,180,255,0.18); color: #aecdff; border: 1px solid rgba(120,180,255,0.4); }
  .pty-slide.feed .feed-row .badge.c { background: rgba(240,181,61,0.2); color: #f0d77a; border: 1px solid rgba(240,181,61,0.36); }
  .pty-slide.feed .feed-row .ftxt {
    flex: 1;
    font-size: 11.5px;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
  }
  .pty-slide.feed .feed-row .ftxt b { color: white; font-weight: 500; }
  .pty-slide.feed .feed-row .ftime {
    font-family: "JetBrains Mono", monospace;
    font-size: 9.5px;
    color: rgba(255,255,255,0.4);
    margin-left: 4px;
  }
  /* Entity panel slide */
  .pty-slide.entity {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding: 14px;
  }
  .pty-slide.entity .ent-side {
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    padding: 10px 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 9.5px;
    color: rgba(255,255,255,0.7);
  }
  .pty-slide.entity .ent-side .esh {
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .pty-slide.entity .ent-side .esi {
    padding: 3px 0;
    color: rgba(255,255,255,0.78);
  }
  .pty-slide.entity .ent-side .esi.on { color: #ffb097; }
  .pty-slide.entity .ent-main h5 {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-weight: 400;
    font-size: 19px;
    line-height: 1.1;
    margin-bottom: 6px;
    color: white;
  }
  .pty-slide.entity .ent-main p {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
  }
  .pty-slide.entity .ent-tags {
    display: flex; flex-wrap: wrap; gap: 4px;
  }
  .pty-slide.entity .ent-tags span {
    font-family: "JetBrains Mono", monospace;
    font-size: 9.5px;
    padding: 2px 7px;
    border-radius: 100px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.08);
  }
  /* Workbench query slide */
  .pty-slide.work .wh {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
  }
  .pty-slide.work .wq {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: 16px;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  .pty-slide.work .wq em { color: #ffb097; }
  .pty-slide.work .wbar {
    height: 22px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    font-size: 10px;
    display: flex; align-items: center; padding: 0 10px;
    color: rgba(255,255,255,0.78);
    font-family: "JetBrains Mono", monospace;
  }
  .pty-slide.work .wbar::before {
    content: "";
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(236,90,55,0.55), rgba(236,90,55,0.2));
    width: var(--w, 60%);
  }
  .pty-slide.work .wbar span { position: relative; z-index: 1; }
  .pty-slide.work .wbar .pct {
    margin-left: auto;
    color: rgba(255,255,255,0.5);
  }

  /* — DB-Agent slides — */
  .dba-slide {
    padding: 16px 18px;
    font-family: "JetBrains Mono", monospace;
    font-size: 11.5px;
    color: rgba(250,245,236,0.85);
    line-height: 1.55;
    background: linear-gradient(135deg, #1a1814 0%, #3a342b 100%);
  }
  .dba-slide .dba-prompt { color: var(--accent); }
  .dba-slide .dba-ans { color: rgba(250,245,236,0.6); }
  .dba-slide .dba-ok { color: #6ee5a0; }
  .dba-slide .dba-hl { color: var(--amber); }
  /* Results table slide */
  .dba-slide.table .tbl {
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
  }
  .dba-slide.table .tbl .row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    align-items: center;
  }
  .dba-slide.table .tbl .row:last-child { border-bottom: none; }
  .dba-slide.table .tbl .row.head {
    background: rgba(255,255,255,0.06);
    color: rgba(250,245,236,0.5);
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .dba-slide.table .tbl .row .n {
    text-align: right;
    color: var(--amber);
  }
  /* Schema picker slide */
  .dba-slide.schema {
    padding: 16px 18px;
  }
  .dba-slide.schema h6 {
    font-family: "Inter Tight", sans-serif;
    font-weight: 600;
    font-size: 11.5px;
    color: rgba(250,245,236,0.7);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .dba-slide.schema .schema-row {
    padding: 7px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    margin-bottom: 5px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px;
    color: rgba(250,245,236,0.8);
  }
  .dba-slide.schema .schema-row.pinned {
    border-color: var(--accent);
    background: rgba(236,90,55,0.12);
    color: white;
  }
  .dba-slide.schema .schema-row .col-meta {
    font-size: 9.5px;
    color: rgba(250,245,236,0.45);
  }
  .dba-slide.schema .schema-row .pin-flag {
    color: var(--accent);
    font-size: 9.5px;
    letter-spacing: 0.08em;
  }
  /* Slack delivery slide */
  .dba-slide.slack {
    padding: 14px 18px;
    background: linear-gradient(135deg, #1a1814 0%, #2a261f 100%);
  }
  .dba-slide.slack .slack-h {
    display: flex; align-items: center; gap: 8px;
    color: rgba(250,245,236,0.6);
    margin-bottom: 10px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .dba-slide.slack .slack-msg {
    background: rgba(255,255,255,0.04);
    border-left: 3px solid #36c5f0;
    padding: 10px 14px;
    border-radius: 4px;
    font-family: "Inter Tight", sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(250,245,236,0.85);
  }
  .dba-slide.slack .slack-msg .author {
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 8px;
  }
  .dba-slide.slack .slack-msg .author .bot {
    font-size: 9px;
    background: rgba(255,255,255,0.1);
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(250,245,236,0.6);
  }
  .dba-slide.slack .slack-msg .author .ts {
    font-size: 10px;
    color: rgba(250,245,236,0.4);
    margin-left: 4px;
    font-weight: 400;
  }
  .dba-slide.slack .slack-msg code {
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px;
    color: var(--amber);
    background: rgba(255,255,255,0.06);
    padding: 1px 5px;
    border-radius: 3px;
  }

  /* ── REVEAL ── */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001s !important;
      transition-duration: 0.001s !important;
    }
    .reveal { opacity: 1; transform: none; }
  }

  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 40px; padding: 100px 20px 40px; }
    .portrait-wrap { max-width: 320px; }
    .portrait { transform: rotate(-3deg); }
    section { padding: 70px 20px; }
    .work-grid { grid-template-columns: 1fr; }
    .stats-strip { padding: 0 20px; }
    .reel-section { padding: 60px 20px; }
    .now { padding: 32px 24px; }
    .cinephile { padding: 48px 24px 56px; }
    .contact { padding: 80px 20px; }
    .impact { grid-template-columns: 1fr; }
  }
