:root{
  --tuscan: #FBC647;
  --graphite: #333333;
  --carbon: #1C1C1C;

  --bg: var(--carbon);
  --panel-border: rgba(255,255,255,0.08);
  --text: #f2f4f8;
  --muted: rgba(242,244,248,0.72);

  --topH: 34vh;
  --bottomH: 66vh;

  --gap: 0px;
  --radius: 0px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  overflow: hidden;
}

.page{
  height: 100vh;
  display: grid;
  grid-template-rows: var(--topH) var(--bottomH);
}

/* ---------- TOP ---------- */
header{
  padding: clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--panel-border);
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
}

.avatar{
  width: 140px;
  height: 140px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 10px 30px rgba(0,0,0,0.40);
  background: rgba(255,255,255,0.06);
}
.avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio h1{
  margin: 0 0 8px 0;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: 0.2px;
}
.bio p{
  margin: 0;
  max-width: 70ch;
  line-height: 1.45;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
}

/* ---------- PANELS ---------- */
.panels{
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 projects */
  gap: var(--gap);
}

.panel{
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  min-height: 0;
  transform: translateZ(0);
  outline: none;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.panel:first-child{ border-left: none; }

/* Accent strip */
.panel .accent{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: var(--tuscan); /* default */
  z-index: 2;
}

/* Per-panel accent colors (still your palette) */
.panel:nth-child(1) .accent { background: var(--tuscan); }
.panel:nth-child(2) .accent { background: var(--graphite); }
.panel:nth-child(3) .accent { background: var(--carbon); }
.panel:nth-child(4) .accent { background: var(--tuscan); }

.panel .img{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.02) contrast(1.05);
  transform: scale(1.02);
  transition: transform 500ms ease, filter 500ms ease;
}

.panel::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.16) 55%,
    rgba(0,0,0,0.00) 100%
  );
  pointer-events: none;
}

.panel .label{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  z-index: 1;
}

.panel .title{
  font-weight: 650;
  letter-spacing: 0.2px;
  font-size: clamp(14px, 1.2vw, 18px);
  text-shadow: 0 6px 20px rgba(0,0,0,0.60);
}

.panel .hint{
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  text-shadow: 0 6px 20px rgba(0,0,0,0.60);
  white-space: nowrap;
}

.panel:hover .img,
.panel:focus-visible .img{
  transform: scale(1.07);
  filter: saturate(1.10) contrast(1.08);
}

.panel:focus-visible{
  box-shadow: 0 0 0 3px rgba(251,198,71,0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  body{ overflow: auto; }
  .page{ grid-template-rows: auto; }

  header{ grid-template-columns: 96px 1fr; }
  .avatar{ width: 96px; height: 96px; }

  .panels{
    grid-template-columns: 1fr;
    grid-auto-rows: 34vh;
    height: auto;
  }

  .panel{
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
}

