:root {
  --bg: #0b0f14;
  --surface: #121820;
  --surface2: #182130;
  --text: #d7e0e6;
  --muted: #7c8791;
  --accent: #4fd1c5;
  --border: #21282f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(680px 420px at 15% -10%, rgba(79, 209, 197, 0.08), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }
button { font: inherit; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.wordmark { font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }
nav.tabs { display: flex; gap: 28px; }
.tab-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px 0;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.15s ease;
}
.tab-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.15s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tab-btn[aria-selected="true"] { color: var(--text); }
.tab-btn[aria-selected="true"]::after { transform: scaleX(1); }

main { max-width: 960px; margin: 0 auto; padding: 72px 40px 96px; }

/* ---------- home panel ---------- */
.home-hero { margin-bottom: 56px; max-width: 60ch; }
.home-name { margin: 0 0 14px; font-size: 34px; font-weight: 700; letter-spacing: -0.01em; }
.home-tagline { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

.hero-photo {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-bottom: 44px;
  aspect-ratio: 21 / 6;
  min-height: 160px;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo svg { width: 34px; height: 34px; opacity: 0.6; }
.hero-photo p { margin: 0; font-size: 13px; }

.home-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.preview-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.preview-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.preview-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.preview-icon { width: 34px; height: 34px; margin-bottom: 20px; }
.preview-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.preview-card p { margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.preview-link { font-size: 13.5px; color: var(--accent); font-weight: 600; }

.is-coming-soon { opacity: 0.5; filter: grayscale(1); }
.preview-card.is-coming-soon:hover { border-color: var(--border); transform: none; }

/* ---------- about panel ---------- */
.about-grid { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.photo-frame {
  position: relative;
  width: 220px;
  height: 280px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(79, 209, 197, 0.15), 0 20px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.photo-frame .portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.about-eyebrow, .proj-eyebrow { margin: 0 0 12px; font-size: 13px; color: var(--accent); font-weight: 600; }
.about-name { margin: 0 0 20px; font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.about-text { margin: 0 0 18px; font-size: 15.5px; line-height: 1.7; color: var(--text); max-width: 58ch; }
.about-text:last-of-type { margin-bottom: 32px; }

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.linkedin-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(79, 209, 197, 0.06); }
.linkedin-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- projects panel ---------- */
.proj-heading { margin: 0 0 40px; font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.proj-list { border-top: 1px solid var(--border); }
.proj-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.proj-row:hover { background: var(--surface); padding-left: 14px; }
.proj-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.proj-row.is-coming-soon:hover { background: none; padding-left: 4px; }
.proj-tag {
  flex: 0 0 auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(79, 209, 197, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.proj-body { flex: 1; min-width: 0; }
.proj-body h4 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.proj-body p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.proj-chevron { flex: 0 0 auto; color: var(--muted); font-size: 16px; }

[hidden] { display: none !important; }

@media (max-width: 640px) {
  header.site { padding: 18px 20px; }
  nav.tabs { gap: 18px; }
  main { padding: 48px 20px 64px; }
  .hero-photo { margin-bottom: 32px; }
  .home-projects { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .photo-frame { width: 160px; height: 200px; }
  .proj-row { flex-wrap: wrap; }
  .proj-tag { order: -1; }
}
