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

    body {
      min-height: 100vh;
      background: #0f0f0f;
      color: #f0f0f0;
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      line-height: 1.6;
    }

    /* ── Dot grid background ── */
    .dots {
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image: radial-gradient(circle, #2a2a2a 1px, transparent 1px);
      background-size: 32px 32px;
      opacity: 0.5;
      z-index: -1;
    }

    /* ── Page wrapper ── */
    main {
      max-width: 1600px;
      margin: 0 auto;
      padding: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 40px) 100px;
    }

    /* ── Hero ── */
    .hero {
      display: flex;
      align-items: flex-start;
      gap: 48px;
      flex-wrap: wrap;
    }
    .hero-left { flex: 1; min-width: 260px; }

    .eyebrow {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      color: #f59e0b;
      margin-bottom: 18px;
    }

    .hero-name {
      font-size: clamp(2.8rem, 6vw, 4.5rem);
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1;
      color: #fff;
      margin-bottom: 10px;
    }

    .hero-location {
      font-size: 0.92rem;
      color: #555;
      margin-bottom: 22px;
    }

    .hero-tagline {
      font-size: 0.95rem;
      color: #666;
      max-width: 420px;
      line-height: 1.75;
      margin-bottom: 30px;
    }

    /* ── Social links ── */
    .social-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .social-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      text-decoration: none;
      color: #555;
      font-size: 0.82rem;
      padding: 7px 14px;
      border: 1px solid #2a2a2a;
      border-radius: 6px;
      transition: color 0.2s, border-color 0.2s, background 0.2s;
    }
    .social-link:hover { color: #f0f0f0; border-color: #444; }

    /* ── LinkedIn badge container ── */
    .hero-right {
      flex-shrink: 0;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 12px;
    }

    /* ── Hero stats cluster ── */
    .hero-stats {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .hero-stat {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      background: #141414;
      border: 1px solid #222;
      border-radius: 10px;
      padding: 12px 16px;
      text-decoration: none;
      transition: border-color 0.18s, background 0.18s;
      min-width: 80px;
    }
    .hero-stat:hover { border-color: #f59e0b55; background: #1a1710; }
    .hero-stat-val {
      font-size: 1.35rem;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: #f59e0b;
      line-height: 1;
    }
    .hero-stat-lbl {
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #555;
      white-space: nowrap;
    }
    /* Hide the plain-text fallback link that shows before LinkedIn's iframe loads */
    .LI-simple-link { display: none; }

    /* ── Hire Me button ── */
    .hire-me-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
      border: 1px solid rgba(10, 102, 194, 0.5);
      border-radius: 24px;
      padding: 10px 20px;
      font-size: 0.9rem;
      font-weight: 700;
      color: #fff;
      margin-top: 14px;
      text-decoration: none;
      transition: all 0.2s;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(10, 102, 194, 0.2);
    }
    .hire-me-btn:hover {
      background: linear-gradient(135deg, #0d78d4 0%, #0051a8 100%);
      box-shadow: 0 4px 16px rgba(10, 102, 194, 0.3);
      transform: translateY(-2px);
    }
    .hire-me-btn:active {
      transform: translateY(0);
    }

    /* ── Footer donate ── */
    .site-footer {
      border-top: 1px solid #1a1a1a;
      padding: 32px 24px;
      text-align: center;
    }
    .donate-row {
      display: inline-block;
      opacity: 0.5;
      transition: opacity 0.2s;
    }
    .donate-row:hover { opacity: 1; }

    /* ── Divider ── */
    .divider {
      height: 1px;
      background: #1a1a1a;
      margin: 60px 0 52px;
    }

    /* ── Section labels ── */
    .section-eyebrow {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: #3a3a3a;
      margin-bottom: 8px;
    }
    .section-heading {
      font-size: 1.1rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 28px;
    }

    /* ── Directory cards ── */
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }
    .nav-sections {
      display: grid;
      gap: 24px;
    }
    .page-index {
      display: grid;
      gap: 16px;
      padding: 14px 14px 32px;
    }
    .page-index-rail {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: 220px;
      overflow-y: auto;
      overflow-x: hidden;
      z-index: 29;
      background: #080808;
      border-right: 1px solid #191919;
      padding-top: 57px;
      scrollbar-width: thin;
      scrollbar-color: #222 #080808;
    }
    .page-index-rail::after {
      content: '';
      display: block;
      height: 32px;
    }
    .page-index-section {
      display: grid;
      gap: 8px;
    }
    .page-index-heading {
      color: #3a3a3a;
      text-decoration: none;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      padding: 0 2px;
    }
    .page-index-heading:hover {
      color: #888;
    }
    .page-index-links {
      display: grid;
      gap: 1px;
    }
    .page-index-link {
      color: #525252;
      text-decoration: none;
      font-size: 0.82rem;
      line-height: 1.4;
      padding: 3px 4px;
      border-radius: 5px;
      transition: color 0.15s ease, background 0.15s ease;
    }
    .page-index-link:hover {
      color: #d4d4d4;
      background: rgba(255,255,255,0.04);
    }
    /* ── Nav tree: parent + children ── */
    .page-index-group {
      display: grid;
      gap: 0;
    }
    .page-index-link.page-index-parent {
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .page-index-link.page-index-parent::after {
      content: '';
      display: inline-block;
      width: 0; height: 0;
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 5px solid #383838;
      margin-left: 2px;
      transition: border-top-color 0.2s;
      flex-shrink: 0;
    }
    .page-index-link.page-index-parent:hover::after {
      border-top-color: #888;
    }
    .page-index-children {
      display: grid;
      gap: 1px;
      margin-top: 2px;
      margin-bottom: 3px;
      padding-left: 10px;
      border-left: 1px solid #1e1e1e;
    }
    .page-index-link.page-index-child {
      font-size: 0.77rem;
      color: #383838;
    }
    .page-index-link.page-index-child:hover {
      color: #bbb;
      background: rgba(255,255,255,0.04);
    }
    .nav-section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 10px;
    }
    .nav-section-title {
      font-size: 1rem;
      font-weight: 600;
      color: #e8e8e8;
    }
    /* ── New pages panel ── */
    .new-pages-panel {
      margin-bottom: 22px;
      border: 1px solid rgba(96,165,250,0.2);
      border-radius: 14px;
      background: rgba(96,165,250,0.04);
      overflow: hidden;
    }
    .new-pages-panel.hidden { display: none; }

    .new-pages-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 12px 16px;
      border-bottom: 1px solid rgba(96,165,250,0.12);
      font-size: 0.82rem;
    }
    .new-pages-title {
      display: flex; align-items: center; gap: 10px; color: #94b4d8;
    }
    .new-pages-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: #60a5fa; box-shadow: 0 0 6px #60a5fa;
      animation: pulse 2.5s ease-in-out infinite; flex-shrink: 0;
    }
    @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

    .new-pages-header-actions { display: flex; align-items: center; gap: 8px; }
    .new-pages-btn-scan {
      border: 1px solid rgba(96,165,250,0.25); border-radius: 999px;
      padding: 4px 11px; background: rgba(96,165,250,0.08); color: #60a5fa;
      font: inherit; font-size: 0.74rem; cursor: pointer;
    }
    .new-pages-btn-scan:hover { background: rgba(96,165,250,0.14); }
    .new-pages-btn-scan:disabled { opacity: .5; cursor: default; }
    .new-pages-btn-dismiss {
      background: none; border: none; color: #444; font-size: 0.9rem;
      cursor: pointer; padding: 2px 6px; line-height: 1;
    }
    .new-pages-btn-dismiss:hover { color: #888; }

    .new-pages-list { padding: 6px 0; }

    .new-page-row {
      padding: 10px 16px;
      border-bottom: 1px solid rgba(96,165,250,0.07);
    }
    .new-page-row:last-child { border-bottom: none; }

    .new-page-path {
      font-size: 0.8rem; color: #60a5fa; font-family: monospace;
      margin-bottom: 8px;
    }
    .new-page-row-actions { display: flex; align-items: center; gap: 8px; }
    .new-page-btn-suggest {
      border: 1px solid rgba(167,139,250,0.3); border-radius: 999px;
      padding: 5px 13px; background: rgba(167,139,250,0.07); color: #c4b5fd;
      font: inherit; font-size: 0.77rem; cursor: pointer;
    }
    .new-page-btn-suggest:hover { background: rgba(167,139,250,0.13); }
    .new-page-btn-skip-inline {
      background: none; border: 1px solid #1e1e1e; border-radius: 999px;
      padding: 5px 11px; color: #444; font: inherit; font-size: 0.77rem; cursor: pointer;
    }
    .new-page-btn-skip-inline:hover { color: #666; border-color: #2a2a2a; }

    .new-page-fields { margin-top: 8px; }
    .new-page-fields.hidden { display: none; }

    .new-page-field-grid {
      display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px;
      margin-bottom: 8px;
    }
    .new-page-label {
      display: flex; flex-direction: column; gap: 4px;
      font-size: 0.7rem; color: #3a5070; text-transform: uppercase;
      letter-spacing: 0.07em; font-weight: 600;
    }
    .new-page-label-full { grid-column: 1/-1; }
    .new-page-input {
      background: #0d1828; border: 1px solid #1a2a3a; border-radius: 7px;
      padding: 6px 9px; color: #c8d8ec; font: inherit; font-size: 0.82rem;
      outline: none; width: 100%;
    }
    .new-page-input:focus { border-color: rgba(96,165,250,0.4); }
    .new-page-textarea { resize: vertical; min-height: 50px; }

    .new-page-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
    .new-page-btn-add {
      border: 1px solid rgba(74,222,128,0.3); border-radius: 999px;
      padding: 6px 14px; background: rgba(74,222,128,0.08); color: #4ade80;
      font: inherit; font-size: 0.78rem; cursor: pointer;
    }
    .new-page-btn-add:hover { background: rgba(74,222,128,0.14); }
    .new-page-btn-add:disabled { opacity: .5; cursor: default; }
    .new-page-btn-skip {
      background: none; border: 1px solid #1e1e1e; border-radius: 999px;
      padding: 6px 12px; color: #444; font: inherit; font-size: 0.78rem; cursor: pointer;
    }
    .new-page-btn-skip:hover { color: #666; }
    .new-page-status { font-size: 0.77rem; color: #f87171; }

    .new-page-added {
      font-size: 0.82rem; color: #4ade80; padding: 4px 0;
    }

    @media (max-width: 700px) {
      .new-page-field-grid { grid-template-columns: 1fr 1fr; }
    }

    .layout-admin-bar {
      display: none;
      align-items: center;
      gap: 10px;
      margin-bottom: 22px;
      padding: 12px 14px;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      background: #111;
      color: #666;
      font-size: 0.8rem;
    }
    .layout-admin-bar.visible {
      display: flex;
    }
    .layout-btn {
      border: 1px solid #2a2a2a;
      border-radius: 999px;
      padding: 7px 11px;
      background: #151515;
      color: #ddd;
      font: inherit;
      font-size: 0.76rem;
      cursor: pointer;
    }
    .layout-btn:hover {
      border-color: #3a3a3a;
    }
    .section-dropzone {
      min-height: 40px;
      border-radius: 16px;
      transition: background .15s ease, outline-color .15s ease;
    }
    .section-dropzone.drag-over {
      background: rgba(74,222,128,0.05);
      outline: 1px dashed rgba(74,222,128,0.35);
      outline-offset: 8px;
    }

    .card {
      background: #111;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      padding: 0;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: border-color 0.2s, transform 0.15s;
    }
    .card:hover { border-color: #2e2e2e; transform: translateY(-3px); }
    .card.draggable, .card-cluster.draggable {
      cursor: grab;
    }
    .card.dragging, .card-cluster.dragging {
      opacity: 0.28;
      transform: scale(0.98);
    }
    .card-hidden-wrapper {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .card-hidden-wrapper.draggable { cursor: grab; }
    .card-hidden-wrapper.dragging  { opacity: 0.28; transform: scale(0.98); }
    .card.card-hidden, .card-cluster.card-hidden {
      opacity: 0.35;
      border-style: dashed;
      pointer-events: none;
    }
    .card-hidden-toggle {
      font-family: 'Cascadia Code', 'Fira Code', monospace;
      font-size: 0.65rem;
      padding: 3px 10px;
      background: none;
      border: 1px solid #1e2e1e;
      border-radius: 5px;
      color: #4ade80;
      cursor: pointer;
      align-self: center;
      transition: border-color 0.15s, color 0.15s;
    }
    .card-hidden-toggle:hover { border-color: #4ade80; color: #86efac; }
    .card-hide-btn { border-color: #2a2a2a; color: #555; }
    .card-hide-btn:hover { border-color: #555; color: #888; }
    .card-edit-btn-row {
      display: flex;
      gap: 6px;
      justify-content: center;
    }
    .card-edit-btn {
      font-family: 'Cascadia Code', 'Fira Code', monospace;
      font-size: 0.65rem;
      padding: 3px 10px;
      background: none;
      border: 1px solid #2a2a2a;
      border-radius: 5px;
      color: #64748b;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s;
    }
    .card-edit-btn:hover { border-color: #60a5fa; color: #93c5fd; }
    .card-edit-form {
      background: #111318;
      border: 1px solid #1e2230;
      border-radius: 8px;
      padding: 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 2px;
    }
    .card-edit-form.hidden { display: none !important; }
    .card-edit-row {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .card-edit-label {
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #475569;
    }
    .card-edit-input {
      background: #0d1015;
      border: 1px solid #1e2230;
      border-radius: 5px;
      color: #e2e8f0;
      font-family: inherit;
      font-size: 0.78rem;
      padding: 6px 8px;
      resize: vertical;
      outline: none;
      transition: border-color 0.15s;
    }
    .card-edit-input:focus { border-color: #3b5275; }
    .card-edit-actions {
      display: flex;
      gap: 6px;
      justify-content: flex-end;
      margin-top: 2px;
    }
    .card-edit-save {
      font-family: inherit;
      font-size: 0.72rem;
      padding: 4px 12px;
      background: #1e3a5f;
      border: 1px solid #2563eb44;
      border-radius: 5px;
      color: #93c5fd;
      cursor: pointer;
      transition: background 0.15s;
    }
    .card-edit-save:hover:not(:disabled) { background: #1e4080; }
    .card-edit-save:disabled { opacity: 0.5; cursor: not-allowed; }
    .card-edit-cancel {
      font-family: inherit;
      font-size: 0.72rem;
      padding: 4px 10px;
      background: none;
      border: 1px solid #1e2230;
      border-radius: 5px;
      color: #475569;
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s;
    }
    .card-edit-cancel:hover { border-color: #334155; color: #64748b; }
    .drag-proxy {
      position: fixed;
      z-index: 1000;
      pointer-events: none;
      width: 260px;
      transform: translate(-50%, -50%) rotate(2deg);
      box-shadow: 0 24px 60px rgba(0,0,0,0.45);
      opacity: 0.96;
    }

    .card-thumb {
      width: 100%;
      height: 112px;
      overflow: hidden;
      background: #0d0d0d;
      flex-shrink: 0;
    }
    .card-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top center;
      display: block;
      transition: transform 0.3s ease;
    }
    .card:hover .card-thumb img { transform: scale(1.03); }

    .card-body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
    .card-title { font-size: 0.9rem; font-weight: 600; color: #e0e0e0; margin-bottom: 4px; }
    .card-desc  { font-size: 0.77rem; color: #555; line-height: 1.45; flex: 1; }
    .card-cta   { font-size: 0.74rem; color: #f59e0b; margin-top: 10px; }

    /* ── Card cluster (parent + collapsible sub-pages) ── */
    .card-cluster {
      display: flex;
      flex-direction: column;
      border-radius: 12px;
      border: 1px solid #1e1e1e;
      overflow: hidden;
      transition: border-color 0.2s;
    }
    .card-cluster:hover { border-color: #2e2e2e; }
    .card-cluster .card {
      border: none;
      border-radius: 0;
      transform: none !important;
      transition: none;
    }
    .cluster-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 7px 14px;
      background: #0d0d0d;
      border: none;
      border-top: 1px solid #181818;
      color: #333;
      font: inherit;
      font-size: 0.74rem;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }
    .cluster-toggle:hover { background: #111; color: #666; }
    .cluster-toggle-chevron {
      font-size: 0.6rem;
      transition: transform 0.2s ease;
    }
    .card-cluster.expanded .cluster-toggle-chevron { transform: rotate(90deg); }
    .card-subpages {
      background: #0b0b0b;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.25s ease;
    }
    .card-cluster.expanded .card-subpages { max-height: 600px; }
    .sub-card {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 9px 14px;
      text-decoration: none;
      border-top: 1px solid #141414;
      transition: background 0.15s;
    }
    .sub-card:hover { background: #111; }
    .sub-card-indent {
      color: #252525;
      font-size: 0.78rem;
      line-height: 1.6;
      flex-shrink: 0;
      user-select: none;
      margin-top: 1px;
    }
    .sub-card-body { flex: 1; min-width: 0; }
    .sub-card-title {
      font-size: 0.8rem;
      font-weight: 600;
      color: #525252;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: color 0.15s;
    }
    .sub-card:hover .sub-card-title { color: #c0c0c0; }
    .sub-card-desc {
      font-size: 0.72rem;
      color: #2e2e2e;
      line-height: 1.4;
      margin-top: 2px;
      transition: color 0.15s;
    }
    .sub-card:hover .sub-card-desc { color: #4a4a4a; }
    .sub-card-cta {
      font-size: 0.7rem;
      color: #2a2a2a;
      margin-top: 4px;
      transition: color 0.15s;
    }
    .sub-card:hover .sub-card-cta { color: #f59e0b; }

    /* ── Featured work ── */
    .featured-work {
      margin-bottom: 52px;
    }

    .featured-video-card {
      background: #111;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: border-color 0.2s, transform 0.15s;
    }
    .featured-video-card:hover { border-color: #2e2e2e; transform: translateY(-2px); }
    .featured-video-embed {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #000;
      flex-shrink: 0;
    }
    .featured-video-embed iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: none;
    }

    /* ── Video facade (thumbnail + play button, swapped for iframe on click) ── */
    .video-facade {
      position: absolute;
      inset: 0;
      cursor: pointer;
      background: #000;
    }
    .video-facade img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .video-play-btn {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 64px;
      height: 64px;
      background: rgba(0,0,0,0.7);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, transform 0.2s;
      pointer-events: none;
    }
    .video-facade:hover .video-play-btn {
      background: rgba(245,158,11,0.85);
      transform: translate(-50%, -50%) scale(1.1);
    }
    .video-play-btn svg {
      width: 26px;
      height: 26px;
      fill: #fff;
      margin-left: 4px;
    }
    .featured-video-meta {
      padding: 22px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .featured-source {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #f59e0b;
      margin-bottom: 6px;
    }
    .featured-video-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: #e0e0e0;
      margin-bottom: 8px;
      line-height: 1.4;
    }
    .featured-video-desc {
      font-size: 0.82rem;
      color: #555;
      line-height: 1.65;
      flex: 1;
      margin-bottom: 14px;
    }
    .featured-link {
      font-size: 0.78rem;
      color: #f59e0b;
      text-decoration: none;
    }
    .featured-link:hover { text-decoration: underline; }

    .articles-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 16px;
    }
    .article-card {
      background: #111;
      border: 1px solid #1e1e1e;
      border-radius: 12px;
      padding: 0;
      text-decoration: none;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: border-color 0.2s, transform 0.15s;
    }
    .article-card:hover { border-color: #2e2e2e; transform: translateY(-2px); }
    .article-thumb {
      width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0d0d; flex-shrink: 0;
    }
    .article-thumb img {
      width: 100%; height: 100%; object-fit: cover; object-position: top center;
      display: block; transition: transform 0.3s ease;
    }
    .article-card:hover .article-thumb img { transform: scale(1.03); }
    .article-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
    .article-source {
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #f59e0b;
      margin-bottom: 8px;
    }
    .article-title {
      font-size: 0.95rem;
      font-weight: 600;
      color: #e0e0e0;
      margin-bottom: 8px;
      line-height: 1.4;
    }
    .article-desc {
      font-size: 0.82rem;
      color: #555;
      line-height: 1.65;
      flex: 1;
    }
    .article-cta {
      font-size: 0.78rem;
      color: #f59e0b;
      margin-top: 14px;
    }

    /* ── Site footer ── */
    .site-footer {
      margin-top: 64px;
      padding-top: 24px;
      border-top: 1px solid #1a1a1a;
      font-size: 0.72rem;
      color: #2a2a2a;
      text-align: center;
      letter-spacing: 0.04em;
    }
    .site-footer a { color: #2a2a2a; text-decoration: none; }
    .site-footer a:hover { color: #555; }
    .footer-legal { margin-top: 12px; font-size: 0.68rem; }
    .footer-sep { margin: 0 6px; color: #222; }

    /* ── Nav ── */
    nav {
      display: flex; align-items: center; gap: 10px;
      padding: 14px 24px; border-bottom: 1px solid #1a1a1a; font-size: 0.82rem;
      position: sticky; top: 0; background: rgba(10,10,10,0.95);
      backdrop-filter: blur(8px); z-index: 50;
    }
    nav a { color: #555; text-decoration: none; transition: color 0.2s; }
    nav a:hover { color: #f0f0f0; }
    nav .sep { color: #333; }
    nav .current { color: #e0e0e0; }
    nav .spacer { flex: 1; }
    .nav-updated { font-size: 0.72rem; color: #2a2a2a; }
    /* ── Nav auth button ── */
    #nav-auth { position: relative; }
    #nav-auth-btn {
      background: none; border: 1px solid #252525; border-radius: 6px;
      color: #444; font-size: 0.75rem; padding: 4px 10px; cursor: pointer;
      font-family: inherit; transition: color 0.2s, border-color 0.2s;
      text-decoration: none; display: inline-block; line-height: 1.6;
    }
    #nav-auth-btn:hover { color: #888; border-color: #333; }
    #nav-auth-btn.authed { color: #4ade80; border-color: rgba(74,222,128,0.25); }
    #nav-auth-dropdown {
      display: none; position: absolute; right: 0; top: calc(100% + 6px);
      background: #0e0e0e; border: 1px solid #1e1e1e; border-radius: 8px;
      min-width: 160px; z-index: 200; overflow: hidden;
    }
    #nav-auth-dropdown.open { display: block; }
    .nav-dd-item {
      display: block; padding: 9px 14px; font-size: 0.8rem; color: #888;
      text-decoration: none; cursor: pointer; background: none; border: none;
      font-family: inherit; width: 100%; text-align: left; transition: background .15s, color .15s;
    }
    .nav-dd-item:hover { background: #161616; color: #ccc; }
    .nav-dd-item.danger:hover { color: #f87171; }

    /* ── Search overlay ── */
    #search-overlay {
      display: none; position: fixed; inset: 0; z-index: 1000;
      background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
      align-items: flex-start; justify-content: center; padding-top: 80px;
    }
    #search-overlay.open { display: flex; }
    #search-box {
      background: #111; border: 1px solid #2a2a2a; border-radius: 10px;
      width: 100%; max-width: 580px; overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    }
    #search-input {
      width: 100%; padding: 16px 20px; background: none; border: none; outline: none;
      color: #e0e0e0; font-size: 1rem; font-family: inherit; box-sizing: border-box;
    }
    #search-input::placeholder { color: #444; }
    #search-divider { height: 1px; background: #1e1e1e; }
    #search-results { max-height: 400px; overflow-y: auto; }
    .search-result {
      display: block; padding: 12px 20px; text-decoration: none; color: inherit;
      border-bottom: 1px solid #151515; transition: background 0.15s;
    }
    .search-result:hover, .search-result.active { background: #161616; }
    .search-result-title { color: #e0e0e0; font-size: 0.9rem; margin-bottom: 3px; }
    .search-result-snippet { color: #555; font-size: 0.78rem; line-height: 1.4; }
    .search-result-snippet mark { background: none; color: #4ade80; font-style: normal; }
    #search-empty { padding: 20px; text-align: center; color: #333; font-size: 0.85rem; }
    #search-hint {
      padding: 8px 20px; color: #2a2a2a; font-size: 0.72rem;
      border-top: 1px solid #151515; display: flex; gap: 16px;
    }

    /* ── Claude Code usage widget ── */
    .cc-usage {
      background: #111; border: 1px solid #1e1e1e;
      border-radius: 12px; padding: 24px 28px; margin-bottom: 52px;
    }
    .cc-usage-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
    .cc-usage-title  { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .15em; color: #3a3a3a; }
    .cc-usage-range  { font-size: 0.7rem; color: #2a2a2a; }
    .cc-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }

    @media (min-width: 1360px) {
      main {
        width: min(1320px, calc(100vw - 248px - clamp(16px, 3vw, 40px)));
        max-width: 1320px;
        margin-left: calc(244px + max(0px, (100vw - 1600px) / 2));
        margin-right: auto;
      }
    }

    @media (max-width: 1359px) {
      .page-index-rail { display: none; }
    }

    @media (max-width: 980px) {
      .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 640px) {
      .cards-grid {
        grid-template-columns: 1fr;
      }
    }
    .cc-stat { background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 8px; padding: 12px 14px; }
    .cc-stat-val { font-size: 1.2rem; font-weight: 600; color: #e0e0e0; line-height: 1; margin-bottom: 4px; }
    .cc-stat-lbl { font-size: 0.62rem; text-transform: uppercase; letter-spacing: .1em; color: #333; }
    .cc-chart-wrap { margin-top: 4px; }
    .cc-chart-title { font-size: 0.62rem; text-transform: uppercase; letter-spacing: .1em; color: #2a2a2a; margin-bottom: 8px; }
    .cc-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 0.72rem; }
    .cc-bar-date  { color: #3a3a3a; width: 60px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
    .cc-bar-track { flex: 1; background: #0d0d0d; border-radius: 3px; height: 10px; overflow: hidden; }
    .cc-bar-fill  { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4ade80, #22c55e); transition: width .5s ease; }
    .cc-bar-cost  { color: #3a3a3a; width: 44px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
    .cc-loading   { font-size: 0.75rem; color: #2a2a2a; }
    @media (max-width: 640px) {
      .cc-stat-row { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 1100px) {
      .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 820px) {
      .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 560px) {
      .cards-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 640px) {
      main { width: min(100%, calc(100vw - 16px)); }
    }

    /* ── Hero stat tooltips ── */
    .hs-tooltip {
      position: fixed;
      z-index: 9999;
      width: 280px;
      background: #0a1628;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      padding: 14px 16px 12px;
      box-shadow: 0 12px 40px rgba(0,0,0,0.6);
      font-size: 0.82rem;
      color: #a8c0d8;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.12s ease;
    }
    .hs-tooltip.visible { opacity: 1; }
    .hs-tip-title {
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: #4a6a8a;
      margin-bottom: 10px;
    }
    .hs-tip-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }
    .hs-tip-row-muted { opacity: 0.5; }
    .hs-tip-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .hs-tip-label {
      flex: 0 0 90px;
      color: #c0d4e8;
      font-size: 0.78rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .hs-tip-bar-wrap {
      flex: 1;
      background: rgba(255,255,255,0.06);
      border-radius: 3px;
      height: 6px;
      overflow: hidden;
    }
    .hs-tip-bar {
      height: 100%;
      border-radius: 3px;
      transition: width 0.4s ease;
    }
    .hs-tip-val {
      flex: 0 0 52px;
      text-align: right;
      font-variant-numeric: tabular-nums;
      font-size: 0.78rem;
      color: #e0eaf5;
    }
    .hs-tip-note {
      font-size: 0.72rem;
      color: #4a6a8a;
      flex: 1;
      text-align: right;
    }
    .hs-tip-divider {
      border: none;
      border-top: 1px solid rgba(255,255,255,0.07);
      margin: 10px 0 8px;
    }
    .hs-tip-chart-title {
      font-size: 0.65rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      color: #2a4a6a;
      margin-bottom: 6px;
    }
    .hs-tip-chart-foot {
      display: flex;
      justify-content: space-between;
      font-size: 0.65rem;
      color: #2a4a6a;
      margin-top: 4px;
    }
