    /* ─────────────────────────────────────────
       RESET & BASE
    ───────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:            #070707;
      --card-bg:       rgba(16, 16, 16, 0.72);
      --card-bg-h:     rgba(24, 24, 24, 0.85);
      --border:        rgba(255,255,255,0.07);
      --border-h:      rgba(255,255,255,0.13);
      --t1:            #e0e0e0;
      --t2:            rgba(224,224,224,0.52);
      --t3:            rgba(224,224,224,0.28);
      --silver:        rgba(200,200,200,0.8);
      --radius:        18px;
      --radius-sm:     10px;
      --ease:          cubic-bezier(0.25,0.46,0.45,0.94);
      --trans:         0.35s var(--ease);
      --font-d:        'Cormorant Garamond', Georgia, serif;
      --font-b:        'Inter', system-ui, sans-serif;
      --font-m:        'JetBrains Mono', 'Courier New', monospace;
    }

    html { scroll-behavior: smooth; background: var(--bg); }

    body {
      font-family: var(--font-b);
      color: var(--t1);
      background: var(--bg);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      line-height: 1.6;
    }

    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }

    /* ─────────────────────────────────────────
       BACKGROUND LAYER
    ───────────────────────────────────────── */
    .bg-layer {
      position: fixed; inset: 0; z-index: 0;
      overflow: hidden; pointer-events: none;
    }

    .orb {
      position: absolute; border-radius: 50%;
      filter: blur(110px); will-change: transform;
    }
    .orb-1 {
      width: 75vw; height: 75vw;
      background: radial-gradient(circle at center, rgba(130,130,130,0.13) 0%, transparent 70%);
      top: -25vw; left: -20vw;
      animation: drift1 38s ease-in-out infinite alternate;
    }
    .orb-2 {
      width: 55vw; height: 55vw;
      background: radial-gradient(circle at center, rgba(100,100,100,0.09) 0%, transparent 70%);
      bottom: -15vw; right: -15vw;
      animation: drift2 48s ease-in-out infinite alternate;
    }
    .orb-3 {
      width: 40vw; height: 40vw;
      background: radial-gradient(circle at center, rgba(80,80,80,0.07) 0%, transparent 70%);
      top: 40%; left: 55%;
      animation: drift3 58s ease-in-out infinite alternate;
    }
    @keyframes drift1 { from { transform: translate(0,0) scale(1); }    to { transform: translate(7vw,5vw) scale(1.1); } }
    @keyframes drift2 { from { transform: translate(0,0) scale(1); }    to { transform: translate(-5vw,-7vw) scale(1.08); } }
    @keyframes drift3 { from { transform: translate(0,0) scale(1); }    to { transform: translate(-4vw,4vw) scale(0.92); } }

    .grid-lines {
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
      background-size: 64px 64px;
    }

    /* Cursor glow (added via JS) */
    #cursor-glow {
      position: fixed; pointer-events: none; z-index: 1;
      width: 500px; height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle at center, rgba(170,170,170,0.055) 0%, transparent 65%);
      transform: translate(-50%,-50%);
      transition: left 0.08s linear, top 0.08s linear;
    }

    /* ─────────────────────────────────────────
       NAVIGATION
    ───────────────────────────────────────── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
      height: 62px; padding: 0 48px;
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(7,7,7,0.78);
      backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      display: flex; align-items: center; gap: 10px;
      font-family: var(--font-d); font-size: 18px; font-weight: 500;
      letter-spacing: 0.03em;
    }
    .logo-badge {
      width: 38px; height: 38px; border-radius: 50%;
      border: 1px solid var(--border-h);
      overflow: hidden; flex-shrink: 0;
      box-shadow: 0 4px 14px rgba(0,0,0,0.5);
    }
    .logo-badge img {
      width: 100%; height: 100%;
      object-fit: cover; object-position: center top;
      filter: contrast(1.06) brightness(0.92);
      display: block;
    }

    .nav-links {
      display: flex; gap: 2px; align-items: center;
    }
    .nav-links a {
      padding: 6px 13px; font-size: 11.5px; font-weight: 400;
      letter-spacing: 0.07em; text-transform: uppercase;
      color: var(--t2); border-radius: 7px;
      transition: var(--trans);
    }
    .nav-links a:hover, .nav-links a.active {
      color: var(--t1); background: rgba(255,255,255,0.06);
    }

    .nav-hamburger {
      display: none; flex-direction: column; gap: 5px;
      cursor: pointer; padding: 8px; border: none; background: none;
    }
    .nav-hamburger span {
      display: block; width: 22px; height: 1px;
      background: var(--t2); transition: var(--trans);
    }

    /* Mobile menu */
    .mobile-menu {
      display: none; position: fixed; inset: 0; z-index: 999;
      background: rgba(7,7,7,0.97);
      backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
      flex-direction: column; align-items: center; justify-content: center; gap: 20px;
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
      font-family: var(--font-d); font-size: 36px; font-weight: 300;
      color: var(--t1); letter-spacing: 0.05em;
      transition: var(--trans);
    }
    .mobile-menu a:hover { color: var(--t2); }
    .mobile-menu-close {
      position: absolute; top: 24px; right: 32px;
      background: none; border: none; color: var(--t2);
      font-size: 28px; cursor: pointer; font-weight: 300;
    }

    /* ─────────────────────────────────────────
       LAYOUT
    ───────────────────────────────────────── */
    main { position: relative; z-index: 1; padding-top: 62px; }

    .container { max-width: 1140px; margin: 0 auto; padding: 0 36px; }

    section { padding: 108px 0; }

    /* ─────────────────────────────────────────
       SECTION HEADERS
    ───────────────────────────────────────── */
    .eyebrow {
      font-family: var(--font-m); font-size: 10.5px; letter-spacing: 0.22em;
      text-transform: uppercase; color: var(--t3); margin-bottom: 14px;
      display: flex; align-items: center; gap: 12px;
    }
    .eyebrow::before {
      content: ''; display: block; width: 28px; height: 1px;
      background: rgba(255,255,255,0.15);
    }

    .sec-title {
      font-family: var(--font-d); font-size: clamp(38px, 5vw, 56px);
      font-weight: 400; line-height: 1.12; color: var(--t1); margin-bottom: 52px;
    }
    .sec-title em { font-style: italic; color: var(--t2); }

    /* ─────────────────────────────────────────
       GLASS CARD
    ───────────────────────────────────────── */
    .glass {
      background: var(--card-bg);
      backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: 0 8px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
      transition: var(--trans);
    }
    .glass:hover {
      background: var(--card-bg-h);
      border-color: var(--border-h);
      box-shadow: 0 14px 56px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.1);
      transform: translateY(-3px);
    }
    .glass-flat { /* no hover lift */
      background: var(--card-bg);
      backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: 0 8px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
    }

    /* ─────────────────────────────────────────
       TAGS / PILLS
    ───────────────────────────────────────── */
    .tag {
      display: inline-block; padding: 5px 13px;
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
      border-radius: 100px; font-family: var(--font-m); font-size: 11px;
      letter-spacing: 0.04em; color: var(--t2); transition: var(--trans);
    }
    .tag:hover { border-color: var(--border-h); color: var(--t1); }

    /* ─────────────────────────────────────────
       HERO SECTION
    ───────────────────────────────────────── */
    #hero {
      min-height: 100vh; display: flex; align-items: center;
      position: relative; overflow: hidden;
    }

    .hero-spotlight {
      position: absolute; width: 900px; height: 900px; pointer-events: none;
      background: radial-gradient(ellipse at center, rgba(160,160,160,0.07) 0%, transparent 62%);
      top: 50%; left: 50%; transform: translate(-48%, -55%);
    }

    .hero-inner {
      position: relative; z-index: 1;
      max-width: 1140px; margin: 0 auto;
      padding: 130px 36px 100px;
      /* grid override applied below in HERO PHOTO section */
    }

    .hero-label {
      font-family: var(--font-m); font-size: 11px; letter-spacing: 0.24em;
      text-transform: uppercase; color: var(--t3); margin-bottom: 22px;
      display: flex; align-items: center; gap: 14px;
      opacity: 0; animation: fadeUp 0.9s var(--ease) 0.1s forwards;
    }
    .hero-label::before { content: ''; width: 36px; height: 1px; background: var(--border-h); }

    .hero-name {
      font-family: var(--font-d); font-weight: 300; line-height: 0.96;
      letter-spacing: -0.02em; color: var(--t1); margin-bottom: 10px;
      font-size: clamp(60px, 11vw, 128px);
      opacity: 0; animation: fadeUp 1s var(--ease) 0.25s forwards;
    }
    .hero-name .dim { color: var(--t2); }

    .hero-subtitle {
      font-family: var(--font-d); font-weight: 300; font-style: italic;
      font-size: clamp(22px, 3.5vw, 38px); color: var(--t2); margin-bottom: 38px;
      opacity: 0; animation: fadeUp 0.9s var(--ease) 0.4s forwards;
    }

    .hero-tags {
      display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 50px;
      opacity: 0; animation: fadeUp 0.9s var(--ease) 0.55s forwards;
    }

    .hero-actions {
      display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
      opacity: 0; animation: fadeUp 0.9s var(--ease) 0.7s forwards;
    }

    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 13px 30px; border-radius: 100px;
      font-family: var(--font-b); font-size: 13px; font-weight: 500;
      letter-spacing: 0.04em; cursor: pointer; border: none;
      transition: var(--trans);
    }
    .btn-primary {
      background: rgba(255,255,255,0.1); color: var(--t1);
      border: 1px solid rgba(255,255,255,0.16);
    }
    .btn-primary:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.25); }
    .btn-ghost {
      background: transparent; color: var(--t2);
      border: 1px solid var(--border);
    }
    .btn-ghost:hover { color: var(--t1); border-color: var(--border-h); background: rgba(255,255,255,0.04); }

    .hero-scroll {
      position: absolute; bottom: 40px; left: 50%;
      transform: translateX(-50%);
      display: flex; flex-direction: column; align-items: center; gap: 10px;
      color: var(--t3); font-family: var(--font-m); font-size: 9.5px;
      letter-spacing: 0.18em; text-transform: uppercase;
      animation: fadeUp 1s var(--ease) 1.2s both;
    }
    .scroll-line {
      width: 1px; height: 52px;
      background: linear-gradient(to bottom, transparent, var(--border-h), transparent);
      animation: scrollPulse 2.4s ease-in-out infinite;
    }
    @keyframes scrollPulse { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }

    /* ─────────────────────────────────────────
       STATS BAR
    ───────────────────────────────────────── */
    .stats-bar {
      display: grid; grid-template-columns: repeat(4,1fr);
      gap: 1px; background: var(--border);
      border: 1px solid var(--border); border-radius: var(--radius);
      overflow: hidden; margin-bottom: 52px;
    }
    .stat-item {
      background: var(--card-bg); padding: 30px 20px; text-align: center;
      transition: var(--trans);
    }
    .stat-item:hover { background: var(--card-bg-h); }
    .stat-value {
      font-family: var(--font-d); font-size: 52px; font-weight: 300;
      line-height: 1; color: var(--t1); margin-bottom: 10px;
    }
    .stat-label {
      font-family: var(--font-m); font-size: 10px; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--t3); line-height: 1.5;
    }

    /* ─────────────────────────────────────────
       ABOUT
    ───────────────────────────────────────── */
    .about-grid { display: grid; grid-template-columns: 1fr 1.65fr; gap: 24px; align-items: start; }

    .info-card { padding: 38px; }
    .info-list { list-style: none; }
    .info-list li {
      display: flex; flex-direction: column; gap: 5px;
      padding: 15px 0; border-bottom: 1px solid var(--border);
    }
    .info-list li:first-child { border-top: 1px solid var(--border); padding-top: 15px; }
    .info-label { font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t3); }
    .info-value { font-size: 13.5px; color: var(--t1); line-height: 1.5; }

    .about-text { padding: 42px; }
    .about-text p { font-size: 15.5px; font-weight: 300; color: var(--t2); line-height: 1.85; margin-bottom: 22px; }
    .about-text p:last-child { margin-bottom: 0; }
    .about-text strong { color: var(--t1); font-weight: 500; }

    /* ─────────────────────────────────────────
       EXPERIENCE TIMELINE
    ───────────────────────────────────────── */
    .timeline { position: relative; padding-left: 36px; }
    .timeline::before {
      content: ''; position: absolute; left: 0; top: 10px; bottom: 0;
      width: 1px; background: linear-gradient(to bottom, rgba(255,255,255,0.18), transparent);
    }
    .tl-item { position: relative; margin-bottom: 28px; }
    .tl-item::before {
      content: ''; position: absolute; left: -41px; top: 10px;
      width: 10px; height: 10px; border-radius: 50%;
      background: rgba(180,180,180,0.35); border: 1px solid rgba(200,200,200,0.55);
    }
    .tl-card { padding: 34px 38px; }
    .tl-head {
      display: flex; justify-content: space-between; align-items: flex-start;
      gap: 16px; margin-bottom: 6px;
    }
    .tl-role {
      font-family: var(--font-d); font-size: 26px; font-weight: 500; color: var(--t1);
    }
    .tl-period {
      font-family: var(--font-m); font-size: 10.5px; color: var(--t3);
      white-space: nowrap; padding-top: 7px;
    }
    .tl-firm { font-size: 13.5px; color: var(--t2); margin-bottom: 22px; }
    .tl-bullets { list-style: none; }
    .tl-bullets li {
      position: relative; padding-left: 18px; margin-bottom: 11px;
      font-size: 13.5px; font-weight: 300; color: var(--t2); line-height: 1.7;
    }
    .tl-bullets li::before { content: '—'; position: absolute; left: 0; color: var(--t3); }

    /* ─────────────────────────────────────────
       PRACTICE AREAS
    ───────────────────────────────────────── */
    .practice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
    .practice-card { padding: 38px; }
    .practice-icon {
      width: 46px; height: 46px; border-radius: 13px;
      background: rgba(255,255,255,0.05); border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
    }
    .practice-icon svg { width: 22px; height: 22px; stroke: var(--t2); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
    .practice-num { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.15em; color: var(--t3); margin-bottom: 10px; }
    .practice-title { font-family: var(--font-d); font-size: 23px; font-weight: 500; color: var(--t1); margin-bottom: 20px; }
    .practice-list { list-style: none; }
    .practice-list li {
      font-size: 13px; font-weight: 300; color: var(--t2);
      padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
      display: flex; align-items: center; gap: 10px; line-height: 1.5;
    }
    .practice-list li:last-child { border-bottom: none; }
    .practice-list li::before {
      content: ''; width: 4px; height: 4px; border-radius: 50%;
      background: rgba(200,200,200,0.3); flex-shrink: 0;
    }

    /* ─────────────────────────────────────────
       QUALIFICATIONS
    ───────────────────────────────────────── */
    .qual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .qual-card { padding: 38px; }
    .qual-card-label { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--t3); margin-bottom: 26px; }
    .qual-row {
      display: flex; align-items: flex-start; gap: 14px;
      padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .qual-row:last-child { border-bottom: none; }
    .qual-check {
      width: 22px; height: 22px; border-radius: 50%;
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
      display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
    }
    .qual-check svg { width: 10px; height: 10px; stroke: rgba(200,200,200,0.65); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
    .qual-name { font-size: 13.5px; color: var(--t1); line-height: 1.45; }
    .qual-sub { font-size: 11.5px; color: var(--t3); margin-top: 4px; }

    .acad-row {
      padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .acad-row:last-child { border-bottom: none; }
    .acad-degree { font-size: 13.5px; color: var(--t1); }
    .acad-org { font-size: 11.5px; color: var(--t3); margin-top: 4px; }

    /* ─────────────────────────────────────────
       SKILLS
    ───────────────────────────────────────── */
    .skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .skill-card { padding: 32px 36px; }
    .skill-cat { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--t3); margin-bottom: 18px; }
    .skill-sub { font-size: 11.5px; font-weight: 500; color: var(--t2); margin: 16px 0 10px; letter-spacing: 0.02em; }
    .tags-wrap { display: flex; flex-wrap: wrap; gap: 7px; }

    /* ─────────────────────────────────────────
       READING & WATCH LIST
    ───────────────────────────────────────── */
    .filter-row { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
    .filter-btn {
      padding: 6px 16px; background: transparent;
      border: 1px solid var(--border); border-radius: 100px;
      font-family: var(--font-m); font-size: 11px; letter-spacing: 0.07em;
      color: var(--t2); cursor: pointer; transition: var(--trans);
    }
    .filter-btn:hover, .filter-btn.active {
      background: rgba(255,255,255,0.06); border-color: var(--border-h); color: var(--t1);
    }
    .content-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; min-height: 240px; }
    .content-card { padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; }
    .content-card .cat-tag { margin-bottom: 4px; }
    .cc-title { font-family: var(--font-d); font-size: 19px; font-weight: 500; color: var(--t1); line-height: 1.3; }
    .cc-sub { font-size: 12.5px; color: var(--t3); }
    .cc-notes { font-size: 13px; font-weight: 300; color: var(--t2); line-height: 1.65; flex: 1; }
    .cc-footer {
      display: flex; justify-content: space-between; align-items: center;
      padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto;
    }
    .status-badge {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 4px 11px; border-radius: 100px;
      font-family: var(--font-m); font-size: 10px; letter-spacing: 0.05em;
    }
    .status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
    .s-reading, .s-watching { background: rgba(180,180,180,0.07); color: rgba(210,210,210,0.7); border: 1px solid rgba(200,200,200,0.11); }
    .s-completed { background: rgba(100,180,100,0.07); color: rgba(140,210,140,0.75); border: 1px solid rgba(100,180,100,0.12); }
    .s-queue { background: rgba(130,130,190,0.07); color: rgba(160,160,210,0.75); border: 1px solid rgba(130,130,190,0.12); }
    .cc-meta { font-family: var(--font-m); font-size: 10.5px; color: var(--t3); }

    .empty-state {
      grid-column: 1/-1; display: flex; flex-direction: column;
      align-items: center; justify-content: center; padding: 90px 40px; gap: 18px;
      border: 1px dashed rgba(255,255,255,0.06); border-radius: var(--radius); text-align: center;
    }
    .es-icon { font-size: 44px; opacity: 0.28; }
    .es-title { font-family: var(--font-d); font-size: 26px; font-weight: 400; color: var(--t2); }
    .es-text { font-size: 13px; color: var(--t3); max-width: 300px; line-height: 1.75; }
    .es-code {
      font-family: var(--font-m); font-size: 11px; color: var(--t3);
      background: rgba(255,255,255,0.03); border: 1px solid var(--border);
      padding: 10px 18px; border-radius: 8px; margin-top: 6px;
    }

    /* ─────────────────────────────────────────
       CONTACT
    ───────────────────────────────────────── */
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .contact-card { padding: 42px; }
    .contact-intro { font-family: var(--font-d); font-size: 19px; font-weight: 300; color: var(--t2); line-height: 1.75; margin-bottom: 34px; }
    .contact-row {
      display: flex; align-items: flex-start; gap: 16px;
      padding: 16px 0; border-bottom: 1px solid var(--border);
    }
    .contact-row:first-of-type { border-top: 1px solid var(--border); }
    .c-icon {
      width: 38px; height: 38px; border-radius: 10px;
      background: rgba(255,255,255,0.04); border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .c-icon svg { width: 16px; height: 16px; stroke: var(--t2); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
    .c-label { font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3); margin-bottom: 5px; }
    .c-value { font-size: 13.5px; color: var(--t1); }
    .c-value a { color: var(--t1); text-decoration: none; transition: var(--trans); }
    .c-value a:hover { color: var(--t2); text-decoration: underline; text-underline-offset: 3px; }

    .interests-title { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--t3); margin-bottom: 16px; }
    .contact-blurb { font-size: 14px; font-weight: 300; color: var(--t2); line-height: 1.8; margin-bottom: 28px; }
    .interests-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
    .interest-chip {
      padding: 18px 16px; text-align: center; border-radius: var(--radius-sm);
      background: rgba(255,255,255,0.03); border: 1px solid var(--border);
      transition: var(--trans);
    }
    .interest-chip:hover { background: rgba(255,255,255,0.06); border-color: var(--border-h); }
    .ic-icon { font-size: 22px; margin-bottom: 8px; opacity: 0.65; }
    .ic-label { font-size: 12px; color: var(--t2); font-weight: 300; }

    /* ─────────────────────────────────────────
       FOOTER
    ───────────────────────────────────────── */
    footer {
      position: relative; z-index: 1;
      border-top: 1px solid var(--border);
      padding: 30px 48px;
      display: flex; justify-content: space-between; align-items: center;
    }
    .footer-text { font-family: var(--font-m); font-size: 11px; color: var(--t3); letter-spacing: 0.05em; }

    /* ─────────────────────────────────────────
       SCROLL REVEAL ANIMATIONS
    ───────────────────────────────────────── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .reveal {
      opacity: 0; transform: translateY(28px);
      transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
    }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }

    /* ─────────────────────────────────────────
       HERO PHOTO
    ───────────────────────────────────────── */
    .hero-inner {
      display: grid;
      grid-template-columns: 1fr 330px;
      align-items: center;
      gap: 60px;
    }
    .hero-text { /* existing content wrapper */ }

    .hero-photo-wrap {
      position: relative;
      animation: fadeUp 1s var(--ease) 0.85s both;
    }
    .hero-photo-frame {
      position: relative;
      border-radius: 22px; overflow: hidden;
      aspect-ratio: 3/4;
      background: var(--card-bg);
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow:
        0 28px 80px rgba(0,0,0,0.8),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 1px 0 rgba(255,255,255,0.1);
    }
    .hero-photo-frame img {
      width: 100%; height: 100%;
      object-fit: cover; object-position: center top;
      display: block;
      filter: contrast(1.08) brightness(0.9) grayscale(0.08);
    }
    .hero-photo-frame::before {
      content: '';
      position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(170deg, transparent 50%, rgba(7,7,7,0.55) 100%);
      pointer-events: none;
    }
    .hero-photo-badge {
      position: absolute; bottom: 18px; left: 18px; right: 18px; z-index: 2;
      background: rgba(8,8,8,0.72);
      backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 12px; padding: 14px 16px;
    }
    .badge-name {
      font-family: var(--font-d); font-size: 16px; font-weight: 500;
      color: var(--t1); margin-bottom: 3px; line-height: 1.2;
    }
    .badge-title {
      font-family: var(--font-m); font-size: 9.5px;
      letter-spacing: 0.14em; text-transform: uppercase; color: var(--t3);
    }

    /* ─────────────────────────────────────────
       ABOUT PROFILE PHOTO
    ───────────────────────────────────────── */
    .about-avatar {
      width: 70px; height: 70px; border-radius: 50%;
      overflow: hidden; margin-bottom: 22px;
      border: 1px solid rgba(255,255,255,0.13);
      box-shadow: 0 6px 24px rgba(0,0,0,0.6);
      flex-shrink: 0;
    }
    .about-avatar img {
      width: 100%; height: 100%;
      object-fit: cover; object-position: center top;
      filter: contrast(1.06) brightness(0.9);
      display: block;
    }

    /* ─────────────────────────────────────────
       RESPONSIVE
    ───────────────────────────────────────── */
    @media (max-width: 960px) {
      nav { padding: 0 24px; }
      .nav-links { display: none; }
      .nav-hamburger { display: flex; }
      .container { padding: 0 24px; }
      .hero-inner { grid-template-columns: 1fr; gap: 48px; }
      .hero-photo-wrap { max-width: 270px; margin: 0 auto; }
      .about-grid, .contact-grid { grid-template-columns: 1fr; }
      .practice-grid { grid-template-columns: 1fr; }
      .qual-grid, .skills-grid { grid-template-columns: 1fr; }
      .content-grid { grid-template-columns: repeat(2,1fr); }
      .stats-bar { grid-template-columns: repeat(2,1fr); }
    }
    @media (max-width: 600px) {
      section { padding: 76px 0; }
      .hero-inner { padding: 100px 24px 80px; }
      .content-grid { grid-template-columns: 1fr; }
      .stats-bar { grid-template-columns: 1fr 1fr; }
      footer { flex-direction: column; gap: 10px; text-align: center; padding: 24px; }
    }

/* ═══════════════════════════════════════════════════════════════════
   TOOLS SECTION ADDITIONS
   New components introduced for /tools/ hub and /tools/<slug>/ pages.
   All build on the existing :root tokens — no new colours, fonts,
   or radii. Anything below this banner is Tools-section-specific.
   ═══════════════════════════════════════════════════════════════════ */

/* Anchor-wrapped grid card on the Tools hub: inherit colour, kill underline */
.tool-card { color: inherit; text-decoration: none; }
.tool-card:hover .cc-title { color: var(--t1); }

/* Per-indicator hero — tagline + meta row */
.tool-tagline {
  font-family: var(--font-d); font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--t2); line-height: 1.5;
  max-width: 760px; margin-bottom: 22px;
}
.tool-meta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}

/* Long-form prose container — fills its parent (the glass card).
   Children are constrained to a readable measure and centred (see rule below). */
.tool-prose {
  padding: 32px 36px;
  font-size: 15px; font-weight: 300; color: var(--t2); line-height: 1.85;
}
.tool-prose h3 {
  font-family: var(--font-d); font-size: 22px; font-weight: 500;
  color: var(--t1); margin: 28px 0 12px; line-height: 1.3;
}
.tool-prose h4 {
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--t3);
  margin: 22px 0 10px;
}
.tool-prose p { margin-bottom: 16px; }
.tool-prose p:last-child { margin-bottom: 0; }
.tool-prose strong { color: var(--t1); font-weight: 500; }
.tool-prose ul, .tool-prose ol {
  margin: 4px 0 18px 0; padding-left: 20px; list-style: revert;
}
/* Centre prose children at a readable measure inside the full-width card */
.tool-prose > *,
.callout > * {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.tool-prose li { margin-bottom: 8px; line-height: 1.7; }
.tool-prose code {
  font-family: var(--font-m); font-size: 13px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px; color: var(--t1);
}
.tool-prose a {
  color: var(--t1); text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-h);
  transition: var(--trans);
}
.tool-prose a:hover { text-decoration-color: var(--t1); }

/* Formula / methodology callout */
.callout {
  background: var(--card-bg);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-left: 2px solid var(--border-h);
  border-radius: var(--radius);
  box-shadow: 0 8px 44px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
  padding: 28px 32px;
  font-size: 14.5px; font-weight: 300; color: var(--t2); line-height: 1.85;
}
.callout .formula {
  font-family: var(--font-m); font-size: 13.5px;
  color: var(--t1); background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px; margin: 14px 0;
  white-space: pre-wrap; line-height: 1.7;
}

/* Inputs table */
.input-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; color: var(--t2);
}
/* Anchored input rows: clear the fixed 62px nav when scrolled into view */
.input-table tr[id^="input-"] { scroll-margin-top: 80px; }
.input-table thead th {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--t3); font-weight: 400;
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--border-h);
}
.input-table tbody td {
  padding: 14px; line-height: 1.65;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.input-table tbody tr:last-child td { border-bottom: none; }
.input-table td:first-child {
  font-family: var(--font-m); font-size: 12.5px;
  color: var(--t1); white-space: nowrap;
}
.input-table td:nth-child(2) {
  font-family: var(--font-m); font-size: 12.5px;
  color: var(--silver); white-space: nowrap;
}

/* Change log — version-by-version timeline */
.changelog { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.cl-item {
  display: grid;
  grid-template-columns: 90px 110px 1fr;
  gap: 18px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.cl-item:last-child { border-bottom: none; }
.cl-version {
  font-family: var(--font-d); font-size: 18px; font-weight: 500;
  color: var(--t1);
}
.cl-date {
  font-family: var(--font-m); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--t3);
}
.cl-body {
  font-size: 13.5px; font-weight: 300;
  color: var(--t2); line-height: 1.7;
}
.cl-body ul { margin: 4px 0 0 18px; list-style: revert; }
.cl-body li { margin-bottom: 6px; }

/* Wider container override for Tools-section pages only.
   Homepage (no body class) keeps the 1140px container. */
.tools-page .container { max-width: 1240px; }

/* Allow long descriptive text to wrap inside otherwise-mono columns */
.input-table td, .rank-table td { word-wrap: break-word; overflow-wrap: anywhere; }

/* Modifier for 2-col descriptive tables (screener exports, decision steps):
   second column reverts to body font + normal wrapping */
.input-table.wrap-col2 td:nth-child(2) {
  white-space: normal;
  font-family: var(--font-b); font-size: 13.5px; color: var(--t2);
}

/* Rank table for the Signals 4-tier read — five columns, no nowrap on body */
.rank-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px; color: var(--t2);
  margin-top: 8px;
}
.rank-table thead th {
  font-family: var(--font-m); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--t3); font-weight: 400;
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--border-h);
}
.rank-table tbody td {
  padding: 14px; line-height: 1.65;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.rank-table tbody tr:last-child td { border-bottom: none; }
.rank-table td:first-child {
  font-family: var(--font-d); font-size: 18px;
  color: var(--t1); white-space: nowrap;
}

/* Inline colour swatch */
.swatch {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border-h);
  vertical-align: middle;
  margin-right: 6px;
}

/* Tools-section responsive */
@media (max-width: 700px) {
  .cl-item { grid-template-columns: 1fr; gap: 4px; }
  .tool-prose, .callout { padding: 24px 22px; }
  .input-table thead { display: none; }
  .input-table, .input-table tbody, .input-table tr, .input-table td { display: block; width: 100%; }
  .input-table tr {
    padding: 14px 0; border-bottom: 1px solid var(--border);
  }
  .input-table tbody tr:last-child { border-bottom: none; }
  .input-table td { padding: 4px 0; border: none; }

  .rank-table thead { display: none; }
  .rank-table, .rank-table tbody, .rank-table tr, .rank-table td { display: block; width: 100%; }
  .rank-table tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .rank-table tbody tr:last-child { border-bottom: none; }
  .rank-table td { padding: 4px 0; border: none; }
}
