
:root {
  --sheet: #0f172a;            
  --sheet-2: #1a2440;
  --text: #f3f4f8;
  --muted: rgba(243, 244, 248, 0.7);
  --accent: #a859ab;
  --accent-soft: #d9a3dc;
  --line: rgba(255, 255, 255, 0.14);

  --radius-sheet: 30px;
  --radius: 14px;
  --space: clamp(18px, 5vw, 32px);

  --font-head: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;


  --bg1-image: url("assets/BG1.jpg");
  --bg1-fallback: linear-gradient(140deg, #5a2a73, #1d4e89 55%, #0f172a);

  /* How the scroll effect works:
     script.js sets --cover from 0 (top of page) to 1 (banner fully covered).
     --sheet-top is the sheet's color at its top edge: mostly see-through at --cover 0,
     solid at --cover 1. The sheet fades from that color into solid over --fade-len. */
  --peek: 42vh;                
  --fade-len: 200px;           
  --cover: 0;
  --sheet-top: color-mix(in srgb, var(--sheet) calc(20% + var(--cover) * 80%), transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sheet); color: var(--text); font: 1rem/1.6 var(--font-body); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
a { color: var(--accent-soft); }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }


.banner {
  position: fixed; inset: 0 0 auto 0; height: calc(var(--peek) + 20vh); z-index: 0;
  background: var(--bg1-image) center / cover no-repeat, var(--bg1-fallback);
}
.banner::after { 
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, calc(var(--cover) * 0.5));
}


.sheet {
  position: relative; z-index: 1; margin-top: var(--peek); min-height: 100vh;
  padding: 1px var(--space) 48px;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  background: var(--sheet); 
  background: linear-gradient(to bottom, var(--sheet-top) 0, var(--sheet) var(--fade-len));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); 
}
.sheet > section { max-width: 820px; margin: 0 auto; padding: 44px 0 8px; }
h2 { font-size: 1.6rem; margin-bottom: 16px; }


.sheet > .intro { padding-top: 0; text-align: center; }
.avatar {
  position: relative; width: 116px; height: 116px; margin: -58px auto 16px; border-radius: 50%;
  border: 4px solid var(--sheet); overflow: hidden; background: linear-gradient(135deg, var(--accent), #1d4e89);
  display: grid; place-items: center; font: 2rem var(--font-head);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
h1 { font-size: clamp(2rem, 7vw, 3rem); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.tagline { font: 1.2rem var(--font-head); margin: 10px auto 0; max-width: 34ch; }
.bio { color: var(--muted); max-width: 56ch; margin: 12px auto 0; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.btn {
  display: inline-block; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: #fff; text-decoration: none; font: inherit; cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.small { padding: 6px 14px; font-size: 0.9rem; }


.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list .who { flex: 1; min-width: 0; }
.list .who strong { display: block; }
.list .who span { color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }


.lead { color: var(--muted); max-width: 60ch; }
.skill-group { margin: 22px 0; }
.skill-group h3 { font-size: 1.1rem; margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 4px 12px; border-radius: 999px; background: rgba(168, 89, 171, 0.22); font-size: 0.9rem; }
#hire .btn { margin-top: 6px; }


.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.project {
  text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 12px;
  background: var(--sheet-2); border: 1px solid var(--line); border-radius: var(--radius);
}
.project:hover { border-color: var(--accent); }
.project h3 { font-size: 1.1rem; margin: 12px 0 4px; }
.project p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.thumb {
  height: 130px; border-radius: 10px; margin-bottom: 4px;
  background: linear-gradient(135deg, hsl(var(--h, 280) 55% 46%), hsl(calc(var(--h, 280) + 50) 55% 26%));
}


dialog {
  width: min(560px, 92vw); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--sheet-2); color: var(--text);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
dialog h3 { font-size: 1.4rem; margin: 14px 0 6px; }
dialog .tags { margin: 14px 0; }
.close {
  position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 1.3rem; cursor: pointer;
}

footer { text-align: center; color: var(--muted); padding: 48px 0 8px; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.contact {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 8px; padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.contact code { flex: 1; min-width: 0; font: inherit; overflow-wrap: anywhere; }
#hire .contact .btn { margin-top: 0; }