  :root{
    --bg: #0f0407;
    --bg-elev: #1a070c;
    --bg-elev-2: #230a10;
    --border: #3d1017;
    --border-soft: #29090f;
    --text: #f7ecec;
    --text-muted: #c08a8f;
    --text-dim: #7a444a;
    --accent: #ff3b3f;
    --accent-2: #f5a83c;
    --accent-dim: #8c1620;
    --accent-soft: rgba(255,59,63,0.12);
    --accent-2-soft: rgba(245,168,60,0.12);
    --grid-line: var(--border-soft);
    --scanline-opacity: 0.5;
    --header-bg: rgba(15,4,7,0.86);
    --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    color-scheme: dark;
  }
  html[data-theme="light"]{
    --bg: #fbf5f3;
    --bg-elev: #ffffff;
    --bg-elev-2: #f7ebe9;
    --border: #ecd6d3;
    --border-soft: #f3e3e0;
    --text: #2a1416;
    --text-muted: #6b464a;
    --text-dim: #93676a;
    --accent: #dc2b2b;
    --accent-2: #a5670e;
    --accent-dim: #e6a3a3;
    --accent-soft: rgba(220,43,43,0.09);
    --accent-2-soft: rgba(181,115,15,0.12);
    --scanline-opacity: 0;
    color-scheme: light;
  }
  html[data-theme="light"] body::before{
    background-image:
      radial-gradient(ellipse 900px 500px at 15% -10%, rgba(220,43,43,0.08), transparent 60%),
      radial-gradient(ellipse 700px 500px at 100% 10%, rgba(181,115,15,0.06), transparent 55%),
      linear-gradient(var(--border-soft) 1px, transparent 1px),
      linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  }
  html[data-theme="light"] .hud-photo{ box-shadow:0 0 0 6px rgba(251,245,243,0.9), 0 20px 60px -18px rgba(220,43,43,0.35); }
  html[data-theme="light"]{ --header-bg: rgba(251,245,243,0.88); }
  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } .term-cursor{ animation-duration: 1s !important; } }
  body{
    margin:0; background:var(--bg); color:var(--text); font-family:var(--sans);
    line-height:1.6; -webkit-font-smoothing:antialiased; position:relative; overflow-x:hidden;
    transition:background-color .3s ease, color .3s ease;
  }
  body::before{
    content:''; position:fixed; inset:0; z-index:0; pointer-events:none;
    background-image:
      radial-gradient(ellipse 900px 500px at 15% -10%, rgba(255,59,63,0.16), transparent 60%),
      radial-gradient(ellipse 700px 500px at 100% 10%, rgba(245,168,60,0.08), transparent 55%),
      linear-gradient(var(--border-soft) 1px, transparent 1px),
      linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
    background-size: auto, auto, 56px 56px, 56px 56px;
  }
  body::after{
    content:''; position:fixed; inset:0; z-index:1; pointer-events:none; opacity:var(--scanline-opacity);
    background:repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 1px, transparent 1px, transparent 3px);
    mix-blend-mode:overlay; transition:opacity .3s;
  }
  a{ color:inherit; text-decoration:none; }
  img{ max-width:100%; display:block; }
  .wrap{ max-width:1360px; margin:0 auto; padding:0 32px; position:relative; z-index:2; }
  .mono{ font-family:var(--mono); }
  ::selection{ background:var(--accent); color:#1a0305; }
  a:focus-visible, button:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }
  main, header.site, footer{ position:relative; z-index:2; }

  /* NAV */
  header.site{
    position:sticky; top:0; z-index:50;
    background:var(--header-bg); backdrop-filter:blur(10px);
    border-bottom:1px solid var(--border-soft);
  }
  .navrow{ display:flex; align-items:center; justify-content:space-between; height:68px; gap:16px; }
  .brand{ font-family:var(--mono); font-weight:700; font-size:17px; letter-spacing:-0.02em; display:flex; align-items:center; gap:8px; flex:none; }
  .brand .caret{ color:var(--accent); }
  .brand .cursor{ display:inline-block; width:8px; height:16px; background:var(--accent); animation:blink 1.1s steps(1) infinite; }
  @keyframes blink{ 50%{ opacity:0; } }
  nav.links{ display:flex; gap:30px; flex-wrap:nowrap; }
  nav.links a{ font-size:14px; color:var(--text-muted); transition:color .15s; white-space:nowrap; flex:none; position:relative; padding:4px 0; }
  nav.links a:hover{ color:var(--accent); }
  nav.links a::after{ content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:var(--accent); transition:width .2s ease; }
  nav.links a:hover::after, nav.links a.active::after{ width:100%; }
  nav.links a.active{ color:var(--accent); }
  .navcta{ display:flex; align-items:center; gap:10px; flex:none; }
  .btn{
    font-family:var(--mono); font-size:12.5px; font-weight:600; letter-spacing:0.01em;
    padding:9px 16px; border-radius:6px; border:1px solid var(--border); cursor:pointer;
    display:inline-flex; align-items:center; gap:8px; transition:all .18s; white-space:nowrap;
  }
  .btn-primary{ background:linear-gradient(135deg, var(--accent) 0%, #c4232a 100%); color:#fff; border-color:transparent; box-shadow:0 8px 24px -8px rgba(255,59,63,0.55); }
  .btn-primary:hover{ box-shadow:0 10px 30px -6px rgba(255,59,63,0.75); transform:translateY(-1px); }
  .btn-ghost{ background:transparent; color:var(--text); }
  .btn-ghost:hover{ border-color:var(--accent-2); color:var(--accent-2); }
  .navtoggle{ display:none; background:none; border:1px solid var(--border); border-radius:6px; padding:8px 10px; color:var(--text); flex:none; }
  .theme-toggle{
    display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; flex:none;
    background:transparent; border:1px solid var(--border); border-radius:8px; color:var(--text-muted); cursor:pointer; transition:all .18s;
  }
  .theme-toggle:hover{ border-color:var(--accent-2); color:var(--accent-2); }
  .theme-toggle svg{ width:17px; height:17px; }
  .theme-toggle .icon-sun{ display:none; }
  html[data-theme="light"] .theme-toggle .icon-sun{ display:block; }
  html[data-theme="light"] .theme-toggle .icon-moon{ display:none; }
  #mobilemenu .theme-toggle-row{ display:flex; align-items:center; justify-content:space-between; padding:14px 24px; font-size:14px; color:var(--text-muted); }
  #mobilemenu{ display:none; border-top:1px solid var(--border-soft); }
  #mobilemenu.open{ display:block; }
  #mobilemenu a{ display:block; padding:14px 24px; font-size:14px; color:var(--text-muted); border-bottom:1px solid var(--border-soft); }

  @media (max-width: 1180px){
    nav.links{ display:none; }
    .navcta .btn-ghost{ display:none; }
    .navtoggle{ display:inline-flex; }
  }

  section{ padding:100px 0; position:relative; }
  .eyebrow{
    font-family:var(--mono); font-size:12.5px; color:var(--accent-2);
    display:flex; align-items:center; gap:8px; margin-bottom:16px; letter-spacing:0.04em;
  }
  .eyebrow::before{ content:'//'; color:var(--text-dim); }
  h1,h2,h3,h4{ font-family:var(--mono); font-weight:700; letter-spacing:-0.02em; margin:0; }
  h2{ font-size:clamp(28px,4vw,42px); margin-bottom:14px; }
  h2 .hl{ color:var(--accent); }
  .lede{ color:var(--text-muted); font-size:16.5px; max-width:640px; }
  .divider{ height:1px; background:linear-gradient(90deg, transparent, var(--border), transparent); }

  /* HERO */
  #home{ padding:80px 0 96px; }
  .hero-grid{ display:grid; grid-template-columns:1fr auto; gap:60px; align-items:center; }
  @media (max-width:940px){ .hero-grid{ grid-template-columns:1fr; text-align:center; } .hero-social{ justify-content:center; } .hero-actions{ justify-content:center; } }
  .hero-kicker{ font-family:var(--mono); font-size:12.5px; color:var(--accent); background:var(--accent-soft); border:1px solid rgba(255,59,63,0.35); display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border-radius:20px; margin-bottom:24px; }
  .pulse-dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(255,59,63,0.7); animation:pulse 1.8s infinite; }
  @keyframes pulse{ 0%{ box-shadow:0 0 0 0 rgba(255,59,63,0.55);} 70%{ box-shadow:0 0 0 8px rgba(255,59,63,0);} 100%{ box-shadow:0 0 0 0 rgba(255,59,63,0);} }
  h1.hero-title{ font-size:clamp(32px,4.6vw,50px); line-height:1.1; margin-bottom:18px; }
  h1.hero-title .accent{ background:linear-gradient(135deg,var(--accent),var(--accent-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
  .hero-sub{ color:var(--text-muted); font-size:17px; max-width:520px; margin-bottom:32px; }
  .hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:34px; }
  .hero-social{ display:flex; gap:14px; }
  .hero-social a{ width:38px; height:38px; border:1px solid var(--border); border-radius:8px; display:flex; align-items:center; justify-content:center; color:var(--text-muted); transition:all .18s; }
  .hero-social a:hover{ color:var(--accent); border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }

  /* PHOTO HUD */
  .hud{ position:relative; width:clamp(170px, 34vw, 280px); height:clamp(170px, 34vw, 280px); margin:0 auto; flex:none; }
  .hud-ring{ position:absolute; inset:0; border-radius:50%; border:1px dashed rgba(255,59,63,0.4); animation:spin 26s linear infinite; }
  .hud-ring.r2{ inset:-18px; border-color:rgba(245,168,60,0.28); animation-duration:34s; animation-direction:reverse; }
  @keyframes spin{ to{ transform:rotate(360deg); } }
  .hud-sweep{ position:absolute; inset:-18px; border-radius:50%; overflow:hidden; }
  .hud-sweep::before{
    content:''; position:absolute; inset:0; border-radius:50%;
    background:conic-gradient(from 0deg, rgba(255,59,63,0.35), transparent 24%);
    animation:spin 4.5s linear infinite;
  }
  .hud-photo{
    position:relative; width:100%; height:100%; border-radius:50%; overflow:hidden;
    box-shadow:0 0 0 6px rgba(15,4,7,0.9), 0 20px 60px -18px rgba(255,59,63,0.55);
  }
  .hud-photo img{ width:100%; height:100%; object-fit:cover; }
  .hud-tick{ position:absolute; width:14px; height:14px; border:2px solid var(--accent-2); }
  .hud-tick.tl{ top:-8px; left:-8px; border-right:none; border-bottom:none; }
  .hud-tick.tr{ top:-8px; right:-8px; border-left:none; border-bottom:none; }
  .hud-tick.bl{ bottom:-8px; left:-8px; border-right:none; border-top:none; }
  .hud-tick.br{ bottom:-8px; right:-8px; border-left:none; border-top:none; }
  .hud-tag{
    position:absolute; bottom:-14px; left:50%; transform:translateX(-50%);
    background:var(--bg-elev); border:1px solid var(--accent); color:var(--accent-2);
    font-family:var(--mono); font-size:10.5px; padding:4px 12px; border-radius:20px; white-space:nowrap;
    box-shadow:0 6px 16px -6px rgba(0,0,0,0.6);
  }

  /* TERMINAL */
  .terminal{ background:var(--bg-elev); border:1px solid var(--border); border-radius:12px; overflow:hidden; box-shadow:0 30px 70px -30px rgba(255,59,63,0.35); }
  .term-bar{ display:flex; align-items:center; gap:8px; padding:12px 16px; border-bottom:1px solid var(--border-soft); background:var(--bg-elev-2); }
  .traffic-lights{ display:flex; align-items:center; gap:8px; }
  .term-dot{ position:relative; width:12px; height:12px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
  .term-dot svg{ width:7px; height:7px; opacity:0; transition:opacity .15s; }
  .traffic-lights:hover .term-dot svg{ opacity:1; }
  .term-title{ margin-left:8px; font-family:var(--mono); font-size:12px; color:var(--text-dim); }
  .term-body{ padding:22px 20px; font-family:var(--mono); font-size:13.5px; min-height:210px; }
  .term-line{ margin-bottom:10px; color:var(--text-muted); }
  .term-prompt{ color:var(--accent-2); }
  .term-out{ color:var(--text); }
  .term-cursor{ display:inline-block; width:7px; height:14px; background:var(--accent); vertical-align:middle; animation:cursorBlink 1s steps(1) infinite; box-shadow:0 0 6px rgba(255,59,63,0.7); }
  @keyframes cursorBlink{ 50%{ opacity:0; box-shadow:none; } }

  /* ABOUT */
  .about-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:56px; align-items:start; }
  @media (max-width:860px){ .about-grid{ grid-template-columns:1fr; } }
  .facts{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  .fact{ background:var(--bg-elev); border:1px solid var(--border-soft); border-radius:10px; padding:16px 18px; transition:border-color .2s; }
  .fact:hover{ border-color:var(--accent-dim); }
  .fact .k{ font-family:var(--mono); font-size:11px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; }
  .fact .v{ font-size:14.5px; color:var(--text); }

  /* SKILLS */
  .skill-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  @media (max-width:860px){ .skill-grid{ grid-template-columns:1fr 1fr; } }
  @media (max-width:600px){ .skill-grid{ grid-template-columns:1fr; } }
  .skill-card{ position:relative; background:var(--bg-elev); border:1px solid var(--border-soft); border-radius:12px; padding:24px; transition:border-color .2s, transform .2s, box-shadow .2s; }
  .skill-card:hover{ border-color:var(--accent); transform:translateY(-4px); box-shadow:0 16px 32px -18px rgba(255,59,63,0.5); }
  .skill-card .icon{ width:36px; height:36px; border-radius:8px; background:var(--accent-soft); display:flex; align-items:center; justify-content:center; margin-bottom:16px; color:var(--accent); }
  .skill-card h4{ font-size:15.5px; margin-bottom:12px; }
  .tags{ display:flex; flex-wrap:wrap; gap:6px; }
  .tag{ font-family:var(--mono); font-size:11.5px; color:var(--text-muted); background:var(--bg-elev-2); border:1px solid var(--border-soft); padding:4px 9px; border-radius:5px; }

  /* TIMELINE */
  .timeline{ position:relative; padding-left:28px; border-left:1px solid var(--border); }
  .tl-item{ position:relative; padding-bottom:40px; }
  .tl-item:last-child{ padding-bottom:0; }
  .tl-dot{ position:absolute; left:-33px; top:4px; width:10px; height:10px; border-radius:50%; background:var(--bg); border:2px solid var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }
  .tl-period{ font-family:var(--mono); font-size:12px; color:var(--accent-2); margin-bottom:6px; }
  .tl-role{ font-size:17px; font-weight:700; margin-bottom:2px; }
  .tl-org{ color:var(--text-muted); font-size:14px; font-style:italic; margin-bottom:10px; }
  .tl-list{ margin:0; padding-left:18px; color:var(--text-muted); font-size:14.5px; }
  .tl-list li{ margin-bottom:5px; }

  .split{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
  @media (max-width:860px){ .split{ grid-template-columns:1fr; } }
  .edu-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  @media (max-width:700px){ .edu-grid{ grid-template-columns:1fr; } }
  .cert-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  @media (max-width:860px){ .cert-grid{ grid-template-columns:1fr 1fr; } }
  @media (max-width:600px){ .cert-grid{ grid-template-columns:1fr; } }
  .cert-card{ margin-bottom:0; }
  .cert-card.pending{ border-style:dashed; }
  .cert-status{ display:inline-block; font-family:var(--mono); font-size:10.5px; letter-spacing:0.04em; padding:3px 9px; border-radius:20px; margin-bottom:12px; }
  .cert-status.done{ color:var(--accent-2); background:var(--accent-2-soft); border:1px solid rgba(245,168,60,0.35); }
  .cert-status.pending{ color:var(--text-dim); background:transparent; border:1px dashed var(--border); }
  .cert-empty{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; padding:56px 24px; border:1px dashed var(--border); border-radius:14px; color:var(--text-dim); }
  .cert-empty p{ margin:0; font-family:var(--mono); font-size:13.5px; max-width:360px; }
  .card{ background:var(--bg-elev); border:1px solid var(--border-soft); border-radius:12px; padding:22px 24px; margin-bottom:16px; transition:border-color .2s; }
  .card:hover{ border-color:var(--accent-dim); }
  .card h4{ font-size:15.5px; margin-bottom:4px; }
  .card .org{ color:var(--text-muted); font-size:13.5px; font-style:italic; margin-bottom:8px; }
  .card p{ color:var(--text-muted); font-size:14px; margin:0; }
  .card a.dl{ color:var(--accent-2); font-size:13px; font-family:var(--mono); }
  .badge-pending{ display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:12px; color:var(--text-dim); border:1px dashed var(--border); padding:8px 12px; border-radius:8px; }

  .platform-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  @media (max-width:700px){ .platform-grid{ grid-template-columns:1fr; } }
  .platform-card{ display:flex; gap:16px; align-items:flex-start; background:var(--bg-elev); border:1px solid var(--border-soft); border-radius:12px; padding:24px; transition:border-color .2s, transform .2s, box-shadow .2s; }
  .platform-card:hover{ border-color:var(--accent); transform:translateY(-4px); box-shadow:0 16px 32px -18px rgba(255,59,63,0.5); }
  .platform-icon{ width:48px; height:48px; flex:none; border-radius:10px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; }
  .platform-card h4{ font-size:16px; margin-bottom:6px; }
  .platform-card p{ color:var(--text-muted); font-size:14px; margin:0 0 10px; }
  .platform-link{ font-family:var(--mono); font-size:12.5px; color:var(--accent-2); }

  .gh-card{ position:relative; background:linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-elev-2) 100%); border:1px solid var(--border); border-radius:14px; padding:44px; text-align:center; overflow:hidden; }
  .gh-card::before{ content:''; position:absolute; top:-60%; left:50%; transform:translateX(-50%); width:400px; height:400px; background:radial-gradient(circle, rgba(255,59,63,0.18), transparent 70%); }
  .gh-card h3{ font-size:22px; margin-bottom:10px; position:relative; }
  .gh-card p{ color:var(--text-muted); max-width:480px; margin:0 auto 24px; position:relative; }
  .gh-card .btn{ position:relative; }

  .contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  @media (max-width:700px){ .contact-grid{ grid-template-columns:1fr; } }
  .contact-card{ background:var(--bg-elev); border:1px solid var(--border-soft); border-radius:12px; padding:22px; display:flex; gap:16px; align-items:flex-start; transition:border-color .2s, transform .2s; }
  .contact-card:hover{ border-color:var(--accent); transform:translateY(-2px); }
  .contact-card .icon{ width:38px; height:38px; flex:none; border-radius:9px; background:var(--accent-2-soft); color:var(--accent-2); display:flex; align-items:center; justify-content:center; }
  .contact-card .k{ font-family:var(--mono); font-size:11px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:4px; }
  .contact-card .v{ font-size:14.5px; word-break:break-word; }

  .response-promise{
    display:inline-flex; align-items:center; gap:8px; margin-top:22px;
    font-family:var(--mono); font-size:12.5px; color:var(--text-dim);
  }
  .response-promise svg{ color:var(--accent-2); flex:none; }

  footer{ border-top:1px solid var(--border-soft); padding:36px 0; }
  .foot-row{ display:flex; justify-content:center; align-items:center; text-align:center; flex-wrap:wrap; gap:16px; }
  .share-btn{
    display:inline-flex; align-items:center; gap:7px; font-family:var(--mono); font-size:12px;
    color:var(--text-muted); background:transparent; border:1px solid var(--border); border-radius:20px;
    padding:6px 14px; cursor:pointer; transition:all .18s;
  }
  .share-btn:hover{ border-color:var(--accent-2); color:var(--accent-2); }

  /* secret area (easter egg) */
  .hud-photo{ cursor:pointer; }
  .secret-overlay{
    position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center;
    background:rgba(0,0,0,0.72); backdrop-filter:blur(6px); padding:24px;
  }
  .secret-overlay.show{ display:flex; }
  .secret-panel{
    position:relative; max-width:380px; width:100%; text-align:center; padding:40px 28px;
    background:var(--bg-elev); border:1px solid var(--border); border-radius:16px;
    box-shadow:0 30px 60px -20px rgba(0,0,0,0.6);
    animation:secretPop .25s ease;
  }
  @keyframes secretPop{ from{ opacity:0; transform:scale(0.92); } to{ opacity:1; transform:scale(1); } }
  .secret-icon{ font-size:36px; margin-bottom:12px; }
  .secret-panel h3{ margin:0 0 8px; }
  .secret-panel p{ color:var(--text-muted); font-size:14px; margin:0 0 20px; }
  .secret-close{
    position:absolute; top:12px; right:12px; width:30px; height:30px; border-radius:50%;
    background:transparent; border:1px solid var(--border); color:var(--text-muted); cursor:pointer;
  }
  .secret-close:hover{ border-color:var(--accent); color:var(--accent); }
  .secret-input{
    width:100%; box-sizing:border-box; font-family:var(--mono); font-size:14px;
    padding:11px 14px; border-radius:8px; border:1px solid var(--border);
    background:var(--bg-elev-2); color:var(--text); text-align:center;
  }
  .secret-input:focus{ outline:none; border-color:var(--accent); }
  .secret-error{ color:var(--accent); font-size:12.5px; margin-top:12px; margin-bottom:0; }

  /* 404 page */
  .nf-wrap{ min-height:78vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:22px; padding:60px 24px; }
  .nf-code{
    font-family:var(--mono); font-weight:800; font-size:clamp(72px,16vw,150px); line-height:1;
    background:linear-gradient(135deg,var(--accent),var(--accent-2)); -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .nf-wrap h1{ font-size:clamp(20px,3vw,28px); }
  .nf-wrap p.lede{ margin:0 auto; }
  .nf-terminal{ max-width:460px; width:100%; margin:8px 0; text-align:left; }
  .foot-row p{ color:var(--text-dim); font-size:13px; margin:0; font-family:var(--mono); }

  .reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
  .reveal.in{ opacity:1; transform:translateY(0); }

  /* back to top */
  .back-to-top{
    position:fixed; right:22px; bottom:22px; z-index:70; width:44px; height:44px; border-radius:50%;
    background:var(--bg-elev); border:1px solid var(--border); color:var(--text-muted);
    display:flex; align-items:center; justify-content:center; cursor:pointer;
    opacity:0; transform:translateY(12px); pointer-events:none;
    transition:opacity .25s ease, transform .25s ease, border-color .2s, color .2s;
    box-shadow:0 12px 28px -10px rgba(0,0,0,0.5);
  }
  .back-to-top.show{ opacity:1; transform:translateY(0); pointer-events:auto; }
  .back-to-top:hover{ border-color:var(--accent); color:var(--accent); }

  /* fine responsive tuning */
  @media (max-width:600px){
    section{ padding:64px 0; }
    .wrap{ padding:0 18px; }
    #home{ padding:56px 0 64px; }
    .navrow{ height:60px; }
    .brand{ font-size:14px; }
    .btn{ padding:8px 14px; font-size:12px; }
    .hero-kicker{ font-size:11.5px; padding:5px 11px; }
    .term-body{ padding:16px 14px; font-size:12px; min-height:auto; }
    .skill-card, .card, .contact-card, .platform-card{ padding:18px; }
    .gh-card{ padding:28px 20px; }
  }
  @media (max-width:380px){
    .brand{ font-size:12.5px; }
    .brand span.cursor{ display:none; }
    h1.hero-title{ font-size:26px; }
  }
