@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&family=Inter:wght@300;400;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0c;
  --surface: #111115;
  --surface-2: #16161b;
  --border: #1e1e24;
  --gold: #dcedf5;
  --gold-dim: rgba(220,237,245,0.22);
  --text: #c0c0c0;
  --text-muted: #707078;
  --accent: #a9cfe0;
  --green: #7a9b6e;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

.bg-overlay {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0.88) 0%, rgba(10,10,12,0.82) 50%, rgba(10,10,12,0.94) 100%),
              url('images/bg-blur.jpg?v=2') center/cover no-repeat fixed;
  filter: blur(6px); transform: scale(1.05);
  opacity: .5; pointer-events: none;
}

.ornament {
  width: 100%; height: 84px; position: relative; overflow: hidden; z-index: 2;
}
.top-ornament::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.top-ornament::before,
.bottom-ornament::before {
  content: '';
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 96px; height: 14px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='14' viewBox='0 0 96 14'%3E%3Cg fill='none' stroke='%23dcedf5' stroke-opacity='0.55'%3E%3Cpath d='M12 1 L20 7 L12 13 L4 7 Z'/%3E%3Cpath d='M44 1 L52 7 L44 13 L36 7 Z'/%3E%3Cpath d='M76 1 L84 7 L76 13 L68 7 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.top-ornament::before { bottom: 12px; }
.bottom-ornament::before { top: 12px; }
.bottom-ornament::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* gothic side filigree — thin repeating fleuron strip down each edge */
body::before,
body::after {
  content: '';
  position: fixed; top: 0; bottom: 0; width: 26px;
  z-index: 0; pointer-events: none;
  opacity: .55;
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 26px 130px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='130' viewBox='0 0 26 130'%3E%3Cg fill='none' stroke='%23dcedf5' stroke-width='1'%3E%3Cline x1='13' y1='0' x2='13' y2='130' stroke-opacity='0.25'/%3E%3Cg stroke-opacity='0.55'%3E%3Cpath d='M13 20 L18 30 L13 40 L8 30 Z'/%3E%3Ccircle cx='13' cy='30' r='2.2'/%3E%3Cpath d='M13 55 C 19 55 19 65 13 65 C 7 65 7 55 13 55 Z'/%3E%3Cpath d='M4 65 H22 M13 60 V70'/%3E%3Cpath d='M13 90 L18 100 L13 110 L8 100 Z'/%3E%3Ccircle cx='13' cy='100' r='2.2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
body::before { left: 6px; }
body::after { right: 6px; }

.container {
  max-width: 820px; width: 100%; padding: 0 48px;
  position: relative; z-index: 1;
}

.hero { text-align: center; padding: 26px 0 30px; }

.avatar-frame {
  width: 184px; height: 184px; margin: 0 auto 28px;
  border: 2px solid var(--gold-dim);
  border-radius: 50%; padding: 4px; position: relative;
}
.avatar-frame::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(220,237,245,0.15);
}
.avatar {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; display: block;
}

.nickname {
  font-family: 'UnifrakturCook', serif;
  font-size: 64px; color: var(--gold); font-weight: 700;
  letter-spacing: 2px; margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(220,237,245,0.2);
}
.tagline {
  color: var(--text-muted); font-weight: 300; letter-spacing: 3px;
  text-transform: uppercase; font-size: 13px;
}

.socials {
  display: flex; justify-content: center; gap: 16px;
  padding: 16px 0 32px; flex-wrap: wrap;
}
.social-link {
  padding: 10px 24px; border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none;
  border-radius: 4px; font-size: 13px; letter-spacing: 1px;
  text-transform: uppercase; transition: all .3s; position: relative;
  overflow: hidden;
}
.social-link::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold-dim); opacity: 0; transition: opacity .3s;
}
.social-link:hover {
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-1px);
}
.social-link:hover::before { opacity: .05; }

.roadmap-link {
  border-color: rgba(220,237,245,0.35);
}

.section-title {
  text-align: center; font-size: 11px; text-transform: uppercase;
  letter-spacing: 4px; color: var(--text-muted);
  padding-bottom: 24px; position: relative;
}
.section-title::after {
  content: ''; position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 1px; background: var(--gold-dim);
}

.carousel {
  display: flex; align-items: center; justify-content: center; gap: 14px; padding-bottom: 64px;
}
.picker {
  position: relative; flex: 1; min-width: 0; height: 336px; overflow: hidden;
}

.carousel-arrow {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 13px; font-family: inherit;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, color .3s, background .3s, transform .3s;
  -webkit-appearance: none; appearance: none;
}
.carousel-arrow:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.carousel-arrow:active { transform: scale(.88); }

.picker-card {
  position: absolute; top: 0; left: 50%; width: 296px; margin-left: -148px;
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  color: var(--text); background: var(--surface); text-decoration: none;
  cursor: default; pointer-events: none; will-change: transform, opacity;
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .5s cubic-bezier(.22,1,.36,1), border-color .3s;
}
.picker-card.is-center {
  cursor: pointer; pointer-events: auto; border-color: var(--gold-dim);
}
.picker-card.is-center:hover { border-color: var(--gold); }

.picker-card .project-image { height: 218px; background: #18181c center/cover no-repeat; }
.picker-card .project-info { padding: 15px 17px; }
.picker-card .project-info h3 {
  font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px;
  height: 19px; line-height: 19px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.picker-card .project-info p {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
  height: 36px; overflow: hidden;
}

@media (max-width: 700px) {
  .picker { height: 236px; }
  .picker-card { width: 208px; margin-left: -104px; }
  .picker-card .project-image { height: 150px; }
  .picker-card .project-info { padding: 12px 14px; }
  .picker-card .project-info h3 { font-size: 13px; height: 16px; line-height: 16px; margin-bottom: 4px; }
  .picker-card .project-info p { font-size: 11px; height: 32px; }
}
@media (max-width: 480px) {
  .carousel { gap: 4px; }
  .picker { height: 204px; }
  .picker-card { width: 168px; margin-left: -84px; }
  .picker-card .project-image { height: 122px; }
  .carousel-arrow { width: 30px; height: 30px; font-size: 11px; }
}

footer {
  text-align: center; padding: 32px 0;
  font-size: 11px; color: var(--text-muted); letter-spacing: 2px;
}

/* ---- sub-page shared header ---- */
.page-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0 8px;
}
.page-nav .back-link {
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; transition: color .3s;
}
.page-nav .back-link:hover { color: var(--gold); }
.page-nav .brand {
  font-family: 'UnifrakturCook', serif; color: var(--gold);
  font-size: 20px;
}

/* ---- project detail page ---- */
.project-hero {
  width: 100%; border-radius: 8px; overflow: hidden; margin: 24px 0 28px;
  border: 1px solid var(--border);
}
.project-hero img { width: 100%; display: block; }
.project-detail h1 {
  color: var(--gold); font-size: 26px; margin-bottom: 10px; font-weight: 600;
}
.project-detail .role {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px;
}
.project-detail p {
  line-height: 1.75; font-size: 14px; color: var(--text); margin-bottom: 14px;
}
.status-pill {
  display: inline-block; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--gold-dim); color: var(--gold); margin-bottom: 18px;
}

/* ---- roadmap page ---- */
.roadmap-header { padding: 16px 0 8px; }
.roadmap-header h1 {
  font-family: 'UnifrakturCook', serif; color: var(--gold);
  font-size: 40px; margin-bottom: 6px;
}
.roadmap-header p { color: var(--text-muted); font-size: 13px; letter-spacing: .5px; }

.roadmap-note {
  margin: 18px 0 30px; padding: 14px 18px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--surface); font-size: 13px;
  color: var(--text-muted); line-height: 1.6;
}
.roadmap-note a { color: var(--gold); }

.phase-list {
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
  padding: 6px 22px; margin-bottom: 40px;
}
.phase {
  padding: 22px 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: start;
}
.phase:last-child { border-bottom: none; }
.phase-name {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  margin-bottom: 4px;
}
.phase-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; grid-column: 1 / -1; }
.phase-pct {
  font-size: 20px; color: var(--gold); font-weight: 600; text-align: right;
}
.phase-pct span {
  display: block; font-size: 10px; color: var(--text-muted); font-weight: 400;
  letter-spacing: 1px; text-transform: uppercase;
}
.phase-items { grid-column: 1 / -1; list-style: none; }
.phase-items li {
  font-size: 13px; padding: 4px 0 4px 22px; position: relative; color: var(--text);
}
.phase-items li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 11px; height: 11px;
  border: 1px solid var(--gold-dim); border-radius: 2px;
}
.phase-items li.done { color: var(--text-muted); text-decoration: line-through; }
.phase-items li.done::before {
  content: '\2713'; border-color: var(--green); color: var(--green);
  font-size: 9px; text-align: center; line-height: 10px; text-decoration: none;
}

.roadmap-footer {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
  padding: 20px 0 44px; font-size: 11px; color: var(--text-muted);
  border-top: 1px solid var(--border);
}
