/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
  --bg:      #0a0a0a;
  --surface: #111111;
  --border:  #1e1e1e;
  --text:    #f0f0f0;
  --muted:   #888;
  --accent:  #ffffff;
  --radius:  14px;
}

/* ── Base ── */
html, body {
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Exact 50/50 split ── */
#layout {
  display: flex;
  height: 100dvh;
}

/* ── Left half ── */
#left-col {
  width: 37.5%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 20px 40px 40px;
  border-right: 1px solid var(--border);
}

/* ── Headshot ── */
#headshot-wrap {
  margin-top: 45px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 64px rgba(0,0,0,0.6);
  flex-shrink: 0;
}

#headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Stats ── */
#stats-row {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin-top: 20px;
}

.stat-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.stat-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.63rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.3;
}

/* ── Connect label ── */
#connect-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 100%;
  max-width: 560px;
}

/* ── Links grid: 2 rows ── */
#links-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 560px;
  margin-top: 0;
}

.links-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.links-row:first-child {
  gap: 16px;
}

.link-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  min-width: 0;
}
.link-card:hover {
  background: #181818;
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.link-card:active { transform: translateY(0); }

/* Icon */
.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.link-icon svg { width: 22px; height: 22px; }

/* Platform colors */
.instagram-icon { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4); color: #fff; }
.youtube-icon   { background: #ff0000; color: #fff; }
.tiktok-icon    { background: #010101; color: #fff; border: 1px solid #333; }
.discord-icon   { background: #5865f2; color: #fff; }
.email-icon     { background: #1a1a2e; color: #a0a8ff; border: 1px solid #2a2a4e; }

/* Text */
.link-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.link-platform {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 3px;
}
.link-handle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  color: var(--muted);
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.18s, color 0.18s;
}
.link-card:hover .link-arrow {
  transform: translateX(4px);
  color: var(--text);
}

/* ── Right half: bio ── */
#right-col {
  width: 62.5%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 52px;
  justify-content: center;
  overflow-y: auto;
}

#hero-name {
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
}

#hero-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

#hero-bio {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#hero-bio p {
  font-size: 0.93rem;
  color: #bbb;
  line-height: 1.75;
}

#hero-bio em {
  color: #ddd;
  font-style: italic;
}

/* ── Featured work card ── */
#featured-card {
  display: block;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
}
#featured-card:hover {
  background: #181818;
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

#featured-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

#featured-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
#featured-arrow {
  color: var(--muted);
  font-size: 0.95rem;
  transition: transform 0.18s, color 0.18s;
}
#featured-card:hover #featured-arrow {
  transform: translateX(4px);
  color: var(--text);
}

#featured-desc {
  font-size: 0.88rem;
  color: #999;
  line-height: 1.65;
}

/* ── Mobile layout ── */
@media (max-width: 768px) {
  html, body {
    height: auto;
    overflow: auto;
  }

  #layout {
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    padding: 36px 20px 56px;
    gap: 20px;
    align-items: stretch;
  }

  /* Dissolve left-col so its children sit directly in the column flow */
  #left-col {
    display: contents;
  }

  /* Reorder: photo → stats → bio+featured → connect label → buttons */
  #headshot-wrap {
    order: 1;
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }

  #stats-row {
    order: 2;
    margin-top: 0;
    max-width: 100%;
  }

  #right-col {
    order: 3;
    width: 100%;
    padding: 0;
    justify-content: flex-start;
    overflow: visible;
  }

  #connect-label {
    order: 4;
  }

  #links-grid {
    order: 5;
    margin-top: 0;
    max-width: 100%;
  }

  /* Stack all buttons into a single column */
  .links-row {
    flex-direction: column;
    gap: 10px;
  }
  .links-row:first-child {
    gap: 10px;
  }
}
