    /* ─── THEME ─────────────────────────────────── */
    :root {
      --bg:      #0d0b09;
      --bg2:     #141210;
      --bg3:     #1c1915;
      --border:  rgba(245, 158, 11, 0.1);
      --border2: rgba(245, 158, 11, 0.28);
      --accent:  #f59e0b;
      --accent2: #fbbf24;
      --adim:    rgba(245, 158, 11, 0.1);
      --aglow:   rgba(245, 158, 11, 0.22);
      --purple:  #818cf8;
      --rose:    #fb7185;
      --green:   #4ade80;
      --t1:      #f5f0ea;
      --t2:      #b09060;
      --t3:      #6b5236;
      --mono:    'JetBrains Mono', monospace;
      --sans:    'Space Grotesk', system-ui, sans-serif;
      --sidebar: 224px;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; overflow-x: hidden; }
    body {
      background: var(--bg);
      color: var(--t1);
      font-family: var(--sans);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      line-height: 1.6;
      max-width: 100vw;
    }

    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--bg2); }
    ::-webkit-scrollbar-thumb { background: var(--t3); border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--accent); }

    /* ─── SCROLL PROGRESS ───────────────────────── */
    #sp {
      position: fixed; top: 0; left: 0;
      height: 2px; width: 0%;
      background: linear-gradient(90deg, #f59e0b, #fb923c, #f59e0b);
      background-size: 200% 100%;
      animation: spShimmer 2.5s linear infinite;
      z-index: 9999; pointer-events: none;
      transition: width 0.08s linear;
    }
    @keyframes spShimmer {
      0%   { background-position: 0% 50%; }
      100% { background-position: 200% 50%; }
    }

    /* ─── BACK TO TOP ────────────────────────────── */
    #back-to-top {
      position: fixed; bottom: 1.5rem; right: 1.5rem;
      width: 2.75rem; height: 2.75rem;
      background: var(--bg2); border: 1px solid var(--border2);
      border-radius: 50%;
      color: var(--accent);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; z-index: 900;
      opacity: 0; visibility: hidden; transform: translateY(8px);
      transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.15s, color 0.15s;
      box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    #back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
    #back-to-top:hover { background: var(--adim); color: var(--accent2); border-color: var(--accent); }
    #back-to-top svg { width: 1.25rem; height: 1.25rem; }

    /* ─── SIDEBAR ────────────────────────────────── */
    .sidebar {
      position: fixed; top: 0; left: 0;
      width: var(--sidebar); height: 100vh;
      display: flex; flex-direction: column;
      background: var(--bg2);
      border-right: 1px solid var(--border);
      padding: 2rem 1.5rem;
      z-index: 100;
      overflow-y: auto;
    }

    .sidebar-brand { margin-bottom: 2.5rem; }
    .brand-initials {
      display: block; font-family: var(--mono);
      font-size: 1.5rem; font-weight: 600;
      color: var(--accent); letter-spacing: -0.03em; line-height: 1;
    }
    .brand-sub {
      display: block; font-size: 0.72rem; color: var(--t3);
      text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.35rem;
      font-family: var(--mono);
    }

    .sidebar-nav { display: flex; flex-direction: column; gap: 0.2rem; }
    .snav-link {
      display: flex; align-items: center; gap: 0.65rem;
      font-size: 0.78rem; font-weight: 500; color: var(--t3);
      text-decoration: none; padding: 0.42rem 0.6rem;
      border-radius: 0.4rem; transition: color 0.15s, background 0.15s;
      letter-spacing: 0.01em;
    }
    .snav-link::before {
      content: ''; width: 5px; height: 5px; border-radius: 50%;
      background: var(--t3); flex-shrink: 0;
      transition: background 0.15s, transform 0.18s;
    }
    .snav-link:hover, .snav-link.active { color: var(--t1); background: var(--adim); }
    .snav-link:hover::before, .snav-link.active::before { background: var(--accent); transform: scale(1.5); }
    .snav-link.active { color: var(--accent); }

    .sidebar-bottom {
      margin-top: auto;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border);
    }

    .status-row {
      display: flex; align-items: center; gap: 0.5rem;
      font-family: var(--mono); font-size: 0.72rem; color: var(--t3);
      margin-bottom: 0.35rem;
    }
    .sdot {
      width: 5px; height: 5px; border-radius: 50%;
      background: var(--green); animation: sdotPulse 2.2s ease-in-out infinite;
    }
    @keyframes sdotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

    .sidebar-socials { display: flex; gap: 0.75rem; margin-top: 1.1rem; }
    .sidebar-socials a { color: var(--t3); transition: color 0.15s; }
    .sidebar-socials a:hover { color: var(--accent); }

    /* ─── MOBILE NAV BAR ────────────────────────── */
    .mobile-nav {
      display: none; position: fixed; top: 0; left: 0; right: 0; height: 54px;
      background: rgba(13, 11, 9, 0.96); border-bottom: 1px solid var(--border);
      backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      z-index: 200; align-items: center; justify-content: space-between;
      padding: 0 1.25rem;
    }
    .mobile-brand { font-family: var(--mono); font-size: 0.9rem; font-weight: 600; color: var(--accent); }
    .mobile-toggle {
      background: none; border: none; cursor: pointer; color: var(--t1); padding: 0.35rem;
      display: flex; align-items: center; justify-content: center;
      border-radius: 0.35rem; transition: background 0.15s;
    }
    .mobile-toggle:hover { background: var(--adim); }

    /* ─── DRAWER OVERLAY ─────────────────────────── */
    #drawer-overlay {
      position: fixed; inset: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
      z-index: 249; opacity: 0; pointer-events: none;
      transition: opacity 0.3s ease;
    }
    #drawer-overlay.open { opacity: 1; pointer-events: all; }

    /* ─── RIGHT DRAWER ───────────────────────────── */
    #mobile-menu {
      position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
      background: var(--bg2); border-left: 1px solid var(--border);
      z-index: 250; display: flex; flex-direction: column;
      transform: translateX(100%);
      transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    }
    #mobile-menu.open { transform: translateX(0); }

    .drawer-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .drawer-brand { font-family: var(--mono); font-size: 0.85rem; font-weight: 600; color: var(--accent); }
    .drawer-brand span { display: block; font-size: 0.65rem; color: var(--t3); font-weight: 400; margin-top: 0.15rem; }
    .drawer-close {
      background: none; border: none; cursor: pointer; color: var(--t3);
      padding: 0.35rem; border-radius: 0.3rem;
      transition: color 0.15s, background 0.15s; display: flex;
    }
    .drawer-close:hover { color: var(--t1); background: var(--bg3); }

    .drawer-nav {
      flex: 1; overflow-y: auto; padding: 1rem 1rem;
      display: flex; flex-direction: column; gap: 0.15rem;
    }
    .drawer-nav a {
      font-size: 0.95rem; font-weight: 500; color: var(--t2);
      text-decoration: none; padding: 0.75rem 1rem; border-radius: 0.5rem;
      display: flex; align-items: center; gap: 0.75rem;
      transition: color 0.15s, background 0.15s; letter-spacing: 0.01em;
    }
    .drawer-nav a::before {
      content: ''; width: 5px; height: 5px; border-radius: 50%;
      background: var(--t3); flex-shrink: 0; transition: background 0.15s;
    }
    .drawer-nav a:hover { color: var(--accent); background: var(--adim); }
    .drawer-nav a:hover::before { background: var(--accent); }

    .drawer-bottom {
      padding: 1.25rem 1.5rem; border-top: 1px solid var(--border);
      flex-shrink: 0;
    }
    .drawer-status {
      display: flex; align-items: center; gap: 0.5rem;
      font-family: var(--mono); font-size: 0.7rem; color: var(--t3);
      margin-bottom: 0.4rem;
    }
    .drawer-socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
    .drawer-socials a { color: var(--t3); transition: color 0.15s; }
    .drawer-socials a:hover { color: var(--accent); }

    /* ─── MAIN CONTENT ───────────────────────────── */
    .main-content { margin-left: var(--sidebar); min-width: 0; max-width: 100%; }

    /* ─── SECTION ────────────────────────────────── */
    .sec {
      padding: 6rem 4.5rem;
      border-bottom: 1px solid var(--border);
      position: relative; overflow: hidden;
    }
    .sec-label {
      font-family: var(--mono); font-size: 0.64rem; font-weight: 500;
      text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent);
      margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.6rem;
    }
    .sec-label::after { content: ''; width: 2.5rem; height: 1px; background: var(--border2); }
    .sec-title {
      font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; line-height: 1.05;
      letter-spacing: -0.035em; color: var(--t1); margin-bottom: 1.25rem;
    }
    .sec-desc {
      font-size: 0.975rem; color: var(--t2); line-height: 1.75; max-width: 54ch; margin-bottom: 0;
    }

    /* ─── CODE BLOCK ─────────────────────────────── */
    .code-block {
      background: var(--bg2); border: 1px solid var(--border); border-radius: 0.75rem;
      padding: 1.25rem 1.5rem; font-family: var(--mono); font-size: 0.775rem;
      line-height: 1.75; overflow-x: auto; position: relative;
    }
    .code-block::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--purple));
      border-radius: 0.75rem 0.75rem 0 0;
    }
    .cc { color: var(--t3); }
    .cmd { color: var(--accent); }
    .arg { color: var(--t1); }
    .str { color: var(--green); }
    .flg { color: var(--purple); }
    .num { color: var(--rose); }

    /* ─── HERO ───────────────────────────────────── */
    #hero {
      min-height: 100vh; display: flex; flex-direction: column;
      justify-content: flex-start; padding: 0.5rem 4.5rem 0.5rem;
      background:
        radial-gradient(ellipse 70% 50% at 90% 40%, rgba(245, 158, 11, 0.04), transparent),
        radial-gradient(ellipse 50% 60% at 10% 80%, rgba(129, 140, 248, 0.03), transparent);
    }
    .hero-eyebrow {
      font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
      color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
      margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.8rem;
    }
    .hero-eyebrow::before { content: ''; width: 2rem; height: 1.5px; background: var(--accent); }
    .hero-h1 {
      font-size: clamp(3rem, 7.5vw, 5.75rem); font-weight: 700; line-height: 1.0;
      letter-spacing: -0.045em; color: var(--t1); margin-bottom: 1.5rem;
    }
    .hero-h1 em { font-style: normal; color: var(--accent); }
    .hero-sub {
      font-size: 1.075rem; color: var(--t2); line-height: 1.75;
      max-width: 52ch; margin-bottom: 2.5rem;
    }
    .stack-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
    .pill {
      display: inline-flex; align-items: center; gap: 0.4rem;
      font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
      color: var(--t2); border: 1px solid var(--border); border-radius: 9999px;
      padding: 0.28rem 0.72rem; background: var(--adim);
      transition: border-color 0.15s, color 0.15s;
    }
    .pill:hover { border-color: var(--border2); color: var(--t1); }
    .pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: sdotPulse 2.2s ease-in-out infinite; }
    .hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
    .btn-a {
      display: inline-flex; align-items: center; gap: 0.5rem;
      background: var(--accent); color: #0d0b09;
      font-weight: 600; font-size: 0.875rem;
      padding: 0.72rem 1.5rem; border-radius: 0.5rem; text-decoration: none;
      transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    }
    .btn-a:hover {
      background: var(--accent2); transform: translateY(-1px);
      box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.45);
    }
    .btn-b {
      display: inline-flex; align-items: center; gap: 0.5rem;
      background: transparent; color: var(--accent);
      font-weight: 500; font-size: 0.875rem;
      padding: 0.72rem 1.5rem; border-radius: 0.5rem;
      border: 1px solid var(--border2); text-decoration: none;
      transition: background 0.15s, border-color 0.15s;
    }
    .btn-b:hover { background: var(--adim); border-color: var(--accent); }

    /* ─── STACK SECTION ──────────────────────────── */
    .stack-center {
      margin-top: 3rem;
      padding: 1.5rem 1.75rem;
      border: 1px solid var(--border2);
      border-radius: 0.9rem;
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.11), rgba(245, 158, 11, 0.04));
    }
    .stack-center-title {
      font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
      letter-spacing: 0.13em; color: var(--accent); margin-bottom: 0.65rem;
    }
    .stack-center-text { font-size: 0.94rem; color: var(--t2); line-height: 1.75; max-width: 72ch; }
    .stack-list-grid {
      margin-top: 2rem;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
    }
    .stack-list-card {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 0.8rem;
      padding: 1rem 1.1rem;
      transition: border-color 0.18s, transform 0.18s;
    }
    .stack-list-card:hover { border-color: var(--border2); transform: translateY(-2px); }
    .stack-list-card h4 {
      font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
      letter-spacing: 0.11em; color: var(--accent); margin-bottom: 0.55rem;
    }
    .stack-list-card p { font-size: 0.86rem; color: var(--t2); line-height: 1.65; }

    /* ─── JOURNEY ────────────────────────────────── */
    .chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
    .chapter {
      background: var(--bg2); border: 1px solid var(--border);
      border-radius: 1rem; padding: 1.75rem; position: relative;
      overflow: hidden; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    }
    .chapter::after {
      content: attr(data-ch); position: absolute; bottom: -0.75rem; right: 0.75rem;
      font-family: var(--mono); font-size: 5.5rem; font-weight: 700; line-height: 1;
      color: transparent; -webkit-text-stroke: 1px rgba(245, 158, 11, 0.055);
      pointer-events: none; user-select: none;
    }
    .chapter:hover {
      border-color: var(--border2); transform: translateY(-3px);
      box-shadow: 0 16px 40px -12px rgba(0,0,0,0.4);
    }
    .ch-label { font-family: var(--mono); font-size: 0.68rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
    .ch-company { font-size: 1.1rem; font-weight: 700; color: var(--t1); margin-bottom: 0.2rem; }
    .ch-company a { color: var(--t1); text-decoration: none; border-bottom: 1px dashed transparent; transition: color 0.15s, border-color 0.15s; }
    .ch-company a:hover { color: var(--accent); border-color: var(--accent); }
    .ch-role { font-size: 0.875rem; color: var(--t2); margin-bottom: 0.15rem; }
    .ch-years { font-family: var(--mono); font-size: 0.72rem; color: var(--t3); margin-bottom: 1rem; }
    .ch-story {
      font-size: 0.875rem; color: var(--t2); line-height: 1.7;
      padding-top: 1rem; border-top: 1px solid var(--border);
    }
    .ch-techs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }
    .ch-tech {
      font-family: var(--mono); font-size: 0.65rem; color: var(--t3);
      background: rgba(245, 158, 11, 0.05); border: 1px solid var(--border);
      padding: 0.14rem 0.5rem; border-radius: 0.25rem;
    }

    /* ─── IMPACT ─────────────────────────────────── */
    .impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-top: 3.5rem; }
    .impact-card {
      border-left: 3px solid var(--border); padding: 1.35rem 1.6rem;
      background: var(--bg2); border-radius: 0 0.75rem 0.75rem 0;
      transition: border-left-color 0.2s, transform 0.2s;
    }
    .impact-card:hover { border-left-color: var(--accent); transform: translateX(4px); }
    .impact-num { font-family: var(--mono); font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
    .impact-num sup { font-size: 1.1rem; vertical-align: super; }
    .impact-label { font-size: 0.95rem; font-weight: 600; color: var(--t1); margin-bottom: 0.35rem; }
    .impact-body { font-size: 0.85rem; color: var(--t3); line-height: 1.7; }

    /* ─── CASE STUDIES ───────────────────────────── */
    .cases { display: flex; flex-direction: column; gap: 2rem; margin-top: 3.5rem; }
    .case {
      background: var(--bg2); border: 1px solid var(--border); border-radius: 1rem;
      padding: 2rem; display: grid; grid-template-columns: 1fr 260px;
      gap: 2.5rem; align-items: start; transition: border-color 0.2s;
    }
    .case:hover { border-color: var(--border2); }
    .case-num { font-family: var(--mono); font-size: 0.68rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.75rem; }
    .case-title { font-size: 1.2rem; font-weight: 700; color: var(--t1); line-height: 1.3; margin-bottom: 1.5rem; }
    .case-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }
    .case-col-lbl { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--t3); margin-bottom: 0.4rem; }
    .case-col-val { font-size: 0.875rem; color: var(--t2); line-height: 1.65; }
    .case-aside { display: flex; flex-direction: column; gap: 1rem; }
    .case-metric {
      text-align: center; border: 1px solid var(--border2); border-radius: 0.75rem;
      padding: 1.25rem; background: var(--adim);
    }
    .case-metric-num { display: block; font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 0.25rem; }
    .case-metric-lbl { font-size: 0.78rem; color: var(--t2); }
    .case-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .case-tag {
      font-family: var(--mono); font-size: 0.65rem; color: var(--t3);
      border: 1px solid var(--border); padding: 0.18rem 0.5rem;
      border-radius: 0.25rem; background: var(--bg3);
    }
    .case-link {
      display: flex; align-items: center; justify-content: center; gap: 0.4rem;
      background: transparent; color: var(--accent); font-weight: 500; font-size: 0.825rem;
      padding: 0.6rem 1rem; border-radius: 0.4rem; border: 1px solid var(--border2);
      text-decoration: none; transition: background 0.15s;
    }
    .case-link:hover { background: var(--adim); }

    /* ─── SKILLS ─────────────────────────────────── */
    .skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem 5rem; margin-top: 3.5rem; }
    .skill-group-label {
      font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
      letter-spacing: 0.14em; color: var(--accent); margin-bottom: 1.75rem;
    }
    .skill-row { margin-bottom: 1.35rem; }
    .skill-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
    .skill-name { font-size: 0.9rem; font-weight: 500; color: var(--t1); }
    .skill-meta { font-family: var(--mono); font-size: 0.7rem; color: var(--t3); }
    .skill-track { height: 3px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
    .skill-fill {
      height: 100%; width: 0%;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      border-radius: 2px; transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* ─── RESUME ─────────────────────────────────── */
    #resume { text-align: center; padding: 8rem 4.5rem; }

    /* ─── FOOTER ─────────────────────────────────── */
    footer {
      width: calc(100% - var(--sidebar));
      margin-left: var(--sidebar);
      padding: 1.75rem 4.5rem; background: var(--bg2); border-top: 1px solid var(--border);
      display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.5rem;
      text-align: center;
    }
    .f-copy { font-family: var(--mono); font-size: 0.72rem; color: var(--t3); }
    .f-links { display: flex; gap: 1.5rem; }
    .f-links a { font-family: var(--mono); font-size: 0.72rem; color: var(--t3); text-decoration: none; transition: color 0.15s; }
    .f-links a:hover { color: var(--accent); }

    /* ─── MODALS ─────────────────────────────────── */
    .modal-overlay {
      position: fixed; inset: 0; z-index: 1000;
      background: rgba(5, 4, 3, 0.82);
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      display: flex; align-items: center; justify-content: center;
      padding: 1rem;
      opacity: 0; pointer-events: none;
      transition: opacity 0.28s ease;
    }
    .modal-overlay.open { opacity: 1; pointer-events: all; }
    .modal-box {
      position: relative;
      background: var(--bg2); border: 1px solid var(--border2);
      border-radius: 1.25rem;
      width: 100%; max-height: 92vh; max-width: 1100px;
      overflow-y: auto;
      overscroll-behavior: contain;
      transform: translateY(24px) scale(0.97);
      transition: transform 0.32s cubic-bezier(0.34, 1.36, 0.64, 1), opacity 0.28s ease;
      opacity: 0;
      scrollbar-width: thin; scrollbar-color: var(--t3) transparent;
    }
    .modal-overlay.open .modal-box { transform: translateY(0) scale(1); opacity: 1; }
    .modal-close {
      position: absolute; top: 1rem; right: 1rem; z-index: 20;
      width: 2.25rem; height: 2.25rem;
      background: rgba(13,11,9,0.72); border: 1px solid var(--border2);
      backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
      border-radius: 50%; color: var(--t1);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; font-size: 1.1rem; line-height: 1;
      transition: background 0.15s, color 0.15s, border-color 0.15s; flex-shrink: 0;
    }
    .modal-close:hover { background: var(--adim); border-color: var(--border2); color: var(--accent); }

    /* ── Case Study Hero ── */
    .cm-hero {
      width: 100%; height: 280px; position: relative; overflow: hidden;
      border-radius: 1.25rem 1.25rem 0 0; flex-shrink: 0;
    }
    .cm-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
    .cm-hero-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to bottom, rgba(13,11,9,0) 0%, rgba(13,11,9,0.45) 55%, rgba(20,18,16,0.96) 100%);
    }
    .cm-hero-label {
      position: absolute; bottom: 1.5rem; left: 2rem;
      font-family: var(--mono); font-size: 0.68rem; color: var(--accent);
      text-transform: uppercase; letter-spacing: 0.12em;
      background: rgba(13,11,9,0.75); border: 1px solid var(--border2);
      backdrop-filter: blur(4px); padding: 0.28rem 0.7rem; border-radius: 9999px;
    }
    /* ── Case Study Body ── */
    .cm-body { padding: 1.5rem 2rem 2rem; }
    .cm-title { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; color: var(--t1); line-height: 1.25; margin-bottom: 0.5rem; }
    .cm-tagline { font-size: 0.9rem; color: var(--t2); margin-bottom: 2rem; }
    .cm-metric-strip {
      display: flex; align-items: center; gap: 1rem;
      background: var(--adim); border: 1px solid var(--border2);
      border-radius: 0.75rem; padding: 1rem 1.5rem; margin-bottom: 2rem;
    }
    .cm-metric-num { font-family: var(--mono); font-size: 2.5rem; font-weight: 700; color: var(--accent); line-height: 1; white-space: nowrap; }
    .cm-metric-sep { width: 1px; height: 2.5rem; background: var(--border2); flex-shrink: 0; }
    .cm-metric-desc { font-size: 0.9rem; color: var(--t2); line-height: 1.5; }
    .cm-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
    .cm-col { padding: 1.25rem; background: var(--bg3); border-radius: 0.75rem; border: 1px solid var(--border); }
    .cm-col-lbl { font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.65rem; }
    .cm-col-val { font-size: 0.875rem; color: var(--t2); line-height: 1.7; }
    .cm-detail { margin-bottom: 2rem; }
    .cm-detail-title { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--t3); margin-bottom: 0.75rem; }
    .cm-detail-body { font-size: 0.9rem; color: var(--t2); line-height: 1.75; }
    .cm-detail-body p + p { margin-top: 0.85rem; }
    .cm-footer {
      display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
      padding-top: 1.5rem; border-top: 1px solid var(--border);
    }
    .cm-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .cm-tag { font-family: var(--mono); font-size: 0.63rem; color: var(--t3); border: 1px solid var(--border); padding: 0.18rem 0.55rem; border-radius: 0.25rem; background: var(--bg3); }
    .cm-close-btn { font-family: var(--mono); font-size: 0.78rem; color: var(--t3); background: var(--bg3); border: 1px solid var(--border); padding: 0.5rem 1.25rem; border-radius: 0.4rem; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
    .cm-close-btn:hover { color: var(--accent); border-color: var(--border2); }

    /* ── Writing Hero ── */
    .wm-hero {
      width: 100%; height: 240px; position: relative; overflow: hidden;
      border-radius: 1.25rem 1.25rem 0 0; flex-shrink: 0;
    }
    .wm-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
    .wm-hero-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to bottom, rgba(13,11,9,0) 0%, rgba(13,11,9,0.5) 60%, rgba(20,18,16,0.98) 100%);
    }
    /* ── Writing Body ── */
    .wm-header { padding: 1.75rem 2rem 0; }
    .wm-meta-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
    .wm-cat { font-family: var(--mono); font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); background: var(--adim); border: 1px solid var(--border); padding: 0.2rem 0.6rem; border-radius: 9999px; white-space: nowrap; }
    .wm-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--t3); }
    .wm-date, .wm-read { font-family: var(--mono); font-size: 0.68rem; color: var(--t3); }
    .wm-title { font-size: clamp(1.35rem, 3.5vw, 1.9rem); font-weight: 700; color: var(--t1); line-height: 1.2; margin-bottom: 0.6rem; }
    .wm-lede { font-size: 1rem; color: var(--t2); line-height: 1.7; margin-bottom: 0; }
    .wm-divider { height: 1px; background: var(--border); margin: 1.75rem 0; }
    .wm-body { padding: 0 2rem 2rem; }
    .wm-body h3 { font-size: 1rem; font-weight: 700; color: var(--t1); margin: 1.75rem 0 0.65rem; letter-spacing: -0.01em; }
    .wm-body p { font-size: 0.9rem; color: var(--t2); line-height: 1.8; margin-bottom: 0.9rem; }
    .wm-body ul { padding-left: 1.25rem; margin-bottom: 0.9rem; }
    .wm-body li { font-size: 0.9rem; color: var(--t2); line-height: 1.8; margin-bottom: 0.3rem; list-style: none; position: relative; padding-left: 0.25rem; }
    .wm-body li::before { content: '—'; color: var(--accent); font-family: var(--mono); margin-right: 0.5rem; }
    .wm-callout { background: var(--adim); border-left: 3px solid var(--accent); border-radius: 0 0.5rem 0.5rem 0; padding: 1rem 1.25rem; margin: 1.25rem 0; }
    .wm-callout p { margin-bottom: 0; font-size: 0.875rem; }
    .wm-code { background: var(--bg3); border: 1px solid var(--border); border-radius: 0.5rem; padding: 1rem 1.25rem; margin: 1rem 0; font-family: var(--mono); font-size: 0.78rem; color: var(--t2); overflow-x: auto; line-height: 1.7; }
    .wm-img { width: 100%; border-radius: 0.65rem; margin: 1.25rem 0; overflow: hidden; border: 1px solid var(--border); }
    .wm-img img { width: 100%; display: block; object-fit: cover; }
    .wm-img figcaption { font-family: var(--mono); font-size: 0.65rem; color: var(--t3); padding: 0.5rem 0.75rem; text-align: center; background: var(--bg3); }
    .wm-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 2rem; border-top: 1px solid var(--border); }
    .wm-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .wm-tag { font-family: var(--mono); font-size: 0.63rem; color: var(--t3); border: 1px solid var(--border); padding: 0.18rem 0.55rem; border-radius: 0.25rem; background: var(--bg3); }
    .wm-visit-btn {
      display: inline-flex; align-items: center; justify-content: center;
      font-family: var(--mono); font-size: 0.78rem; color: var(--accent);
      background: var(--adim); border: 1px solid var(--border2);
      padding: 0.5rem 1rem; border-radius: 0.4rem; text-decoration: none;
      transition: background 0.15s, border-color 0.15s;
    }
    .wm-visit-btn:hover { background: rgba(245, 158, 11, 0.18); border-color: var(--accent); }
    .wm-close-btn { font-family: var(--mono); font-size: 0.78rem; color: var(--t3); background: var(--bg3); border: 1px solid var(--border); padding: 0.5rem 1.25rem; border-radius: 0.4rem; cursor: pointer; transition: color 0.15s, border-color 0.15s; }
    .wm-close-btn:hover { color: var(--accent); border-color: var(--border2); }

    @media (max-width: 680px) {
      .cm-cols { grid-template-columns: 1fr; }
      .cm-body, .wm-header, .wm-body, .wm-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
      .cm-metric-num { font-size: 1.75rem; }
      .cm-hero { height: 200px; }
      .wm-hero { height: 180px; }
    }

    /* ─── RESPONSIVE ─────────────────────────────── */

    /* Tablet: hide sidebar, show mobile bar */
    @media (max-width: 1024px) {
      .sidebar { display: none; }
      .mobile-nav { display: flex; }
      .main-content { margin-left: 0; padding-top: 54px; }
      .sec { padding: 4rem 2rem; }
      #hero { padding: 2.2rem 2rem 1.2rem; min-height: auto; }
      .stack-list-grid { grid-template-columns: 1fr; }
      .case { grid-template-columns: 1fr; }
      .case-cols { grid-template-columns: 1fr 1fr; }
      footer { width: 100%; margin-left: 0; padding: 1.5rem 2rem; flex-direction: column; text-align: center; }
      #resume { padding: 5rem 2rem; }
    }

    /* Medium tablet: hero collapses, impact stays 2-col */
    @media (max-width: 860px) {
      .hero-grid { grid-template-columns: 1fr; min-height: auto; }
      .hero-right { min-height: 300px; justify-content: center; }
      .hero-photo-right { transform: translateY(0) !important; }
      .impact-grid { grid-template-columns: 1fr 1fr; }
      .chapters { grid-template-columns: 1fr 1fr; }
    }

    /* Mobile */
    @media (max-width: 640px) {
      .sec { padding: 3rem 1.25rem; }
      #hero { padding: 1.9rem 1.25rem 1.1rem; }
      .hero-h1 { font-size: clamp(2.4rem, 11vw, 3.5rem); }
      .sec-title { font-size: clamp(1.8rem, 8vw, 2.25rem); }
      .hero-right { min-height: 240px; }
      .impact-grid { grid-template-columns: 1fr; }
      .chapters { grid-template-columns: 1fr; }
      .case-cols { grid-template-columns: 1fr; }
      .shipped-grid { grid-template-columns: 1fr; }
      .skills-grid { grid-template-columns: 1fr; gap: 2rem; }
      .stack-list-grid { grid-template-columns: 1fr; }
      .stack-center { padding: 1.2rem 1rem; }
      .ecosystem-wrap { grid-column: 1; }
      .lv-strip { grid-template-columns: 1fr 1fr; }
      .lv-strip .lv-stat:nth-child(odd) { border-left: none; padding-left: 0; }
      .lv-strip .lv-stat:nth-child(n+3) { border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: 0.25rem; }
      footer { padding: 1.5rem 1.25rem; }
      #resume { padding: 4rem 1.25rem; }
      .code-block[style*="max-width:500px"] { max-width: 100% !important; }
    }

    /* Very small mobile */
    @media (max-width: 400px) {
      .stack-pills { gap: 0.35rem; }
      .pill { font-size: 0.62rem; padding: 0.22rem 0.55rem; }
      .hero-ctas { flex-direction: column; }
      .btn-a, .btn-b { text-align: center; justify-content: center; }
    }

    /* Back to top: avoid overlap on small screens */
    @media (max-width: 640px) {
      #back-to-top { bottom: 1.25rem; right: 1.25rem; width: 2.5rem; height: 2.5rem; }
    }

    /* ─── SCROLL REVEAL ──────────────────────────── */
    .r   { opacity: 0; transform: translateY(28px); }
    .r-l { opacity: 0; transform: translateX(-40px); }
    .r-r { opacity: 0; transform: translateX(40px); }

    /* ─── DECORATIVE ─────────────────────────────── */
    .amber-line { display: inline-block; width: 3rem; height: 2px; background: var(--accent); margin-bottom: 2rem; }

    /* ─── HERO GRID (2-col: text | photo) ───────── */
    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      min-height: calc(100vh - 8rem);
    }
    .hero-left { padding-bottom: 0; min-width: 0; }
    .hero-right {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100%;
      min-height: 480px;
      min-width: 0;
    }
    @media (max-width: 1100px) { .hero-grid { gap: 2rem; min-height: auto; } }
    @media (max-width: 860px) {
      .hero-grid { grid-template-columns: 1fr; min-height: auto; }
      .hero-right { min-height: 340px; justify-content: center; }
      .hero-left { padding-bottom: 0; }
    }

    /* ─── HERO PHOTO (large, right column) ──────── */
    .hero-photo-right {
      width: 100%;
      max-width: min(510px, 100%);
      position: relative;
      z-index: 1;
      display: block;
      transform: translateY(-8rem);
    }
    .hero-photo-right img {
      width: 100%; display: block;
      filter: drop-shadow(0 20px 48px rgba(245,158,11,0.18));
    }
    .hero-right::before {
      content: '';
      position: absolute; bottom: 0; left: 50%;
      transform: translateX(-50%);
      width: 55%; height: 45%;
      background: radial-gradient(ellipse at bottom, rgba(245,158,11,0.32) 0%, transparent 70%);
      filter: blur(44px);
      z-index: 0;
    }
    .hero-right::after {
      content: '';
      position: absolute; top: 0; right: -2rem; bottom: 0;
      width: 50%;
      background: linear-gradient(180deg, transparent 50%, rgba(245,158,11,0.04) 100%);
      pointer-events: none; z-index: 0;
    }
    .hero-photo-name {
      position: absolute; bottom: 4.75rem; left: 1.25rem;
      font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase;
      letter-spacing: 0.1em; color: var(--t3); z-index: 2;
      background: rgba(13,11,9,0.75); backdrop-filter: blur(6px);
      padding: 0.4rem 0.75rem; border-radius: 6px; border: 1px solid var(--border);
      line-height: 1.8;
    }
    .hero-photo-name strong { color: var(--accent); display: block; font-size: 0.68rem; }

    /* ─── SHIPPED PRODUCTS GRID (in Stack section) */
    .shipped-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      margin-top: 3rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--border);
    }
    @media (max-width: 640px) { .shipped-grid { grid-template-columns: 1fr; } }

    /* ─── LARAVEL BY THE NUMBERS ─────────────────── */
    .lv-strip {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      margin-top: 2rem; padding: 0.9rem 1.25rem;
      background: var(--bg2); border: 1px solid var(--border);
      border-radius: 0.75rem;
      min-height: 3.5rem;
    }
    .lv-stat {
      display: flex; flex-direction: column; gap: 0.2rem;
      text-align: left;
      padding-left: 1.25rem;
      border-left: 1px solid var(--border);
    }
    .lv-strip .lv-stat:first-child { border-left: none; padding-left: 0; }
    .lv-num   { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; color: var(--accent); line-height: 1; }
    .lv-lbl   { font-family: var(--mono); font-size: 0.68rem; color: var(--t3); text-transform: uppercase; letter-spacing: 0.07em; }

    /* ─── SHIPPED PRODUCTS SHOWCASE (hero right) ─── */
    .shipped-section {
      display: flex; flex-direction: column; gap: 0.75rem;
    }
    .shipped-label {
      font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase;
      letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.5rem;
      display: flex; align-items: center; gap: 0.6rem;
    }
    .shipped-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
    .shipped-card {
      background: var(--bg2); border: 1px solid var(--border);
      border-radius: 0.85rem; padding: 1rem 1.25rem;
      transition: border-color 0.22s, transform 0.22s;
      cursor: pointer;
    }
    a.shipped-card {
      display: block; width: 100%; margin: 0; font: inherit; color: inherit;
      text-align: left; text-decoration: none; cursor: pointer;
    }
    a.shipped-card:focus { outline: none; }
    a.shipped-card:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }
    .shipped-card:hover { border-color: var(--border2); transform: translateX(5px); }
    .shipped-name {
      font-size: 0.95rem; font-weight: 600; color: var(--t1); margin-bottom: 0.3rem;
      display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    }
    .shipped-badge {
      font-family: var(--mono); font-size: 0.68rem; color: var(--accent);
      background: var(--adim); border: 1px solid rgba(245,158,11,0.25); border-radius: 4px;
      padding: 0.14rem 0.55rem; white-space: nowrap; flex-shrink: 0;
    }
    .shipped-desc {
      font-size: 0.85rem; color: var(--t2); line-height: 1.65; margin-bottom: 0.65rem;
    }
    .shipped-tags {
      display: flex; flex-wrap: wrap; gap: 0.35rem;
    }
    .shipped-tags span {
      font-family: var(--mono); font-size: 0.68rem; color: var(--t3);
      background: var(--bg3); border: 1px solid var(--border);
      border-radius: 4px; padding: 0.15rem 0.5rem;
    }
    .shipped-footer {
      margin-top: 1rem; text-align: center;
      font-family: var(--mono); font-size: 0.72rem; color: var(--t3);
      border-top: 1px solid var(--border); padding-top: 0.9rem;
    }
    .shipped-footer strong { color: var(--accent); }

    /* ─── LARAVEL ECOSYSTEM TAGS ─────────────────── */
    .ecosystem-wrap {
      grid-column: 1 / -1;
      margin-top: 1rem;
    }
    .ecosystem-grid {
      display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; margin-bottom: 0.75rem;
    }
    .eco-tag {
      font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
      padding: 0.3rem 0.85rem; border-radius: 9999px; border: 1px solid;
      transition: transform 0.15s, box-shadow 0.15s; cursor: default;
    }
    .eco-tag:hover { transform: translateY(-2px); }
    .eco-expert {
      color: var(--accent); background: rgba(245, 158, 11, 0.08);
      border-color: rgba(245, 158, 11, 0.3);
    }
    .eco-expert:hover { box-shadow: 0 4px 12px -4px rgba(245, 158, 11, 0.3); }
    .eco-adv {
      color: var(--purple); background: rgba(129, 140, 248, 0.08);
      border-color: rgba(129, 140, 248, 0.25);
    }
    .eco-adv:hover { box-shadow: 0 4px 12px -4px rgba(129, 140, 248, 0.2); }
    .eco-inter {
      color: var(--t3); background: var(--bg3); border-color: var(--border);
    }
    .eco-legend {
      display: flex; gap: 1.25rem; font-family: var(--mono);
      font-size: 0.72rem; color: var(--t3);
    }
