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

:root {
  --bg:        #f2f0ec;
  --bg-2:      #e8e5e0;
  --surface:   #f7f5f2;
  --border:    rgba(0,0,0,0.08);
  --accent:    #f7931a;
  --accent-2:  #d97c0a;
  --text:      #111111;
  --text-muted:#6b6b6b;
  --radius:    14px;
  --max-w:     1100px;
}

html { scroll-behavior: auto; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ── Thread background ── */
.yarn-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.yarn-bg svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(242,240,236,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

.btc-symbol {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-cta:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

#hero-image-wrap {
}

.hero-text {
  flex: 1;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-name {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-meta {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 450;
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 100px;
  padding: 13px 28px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(0,0,0,0.22);
  transform: translateY(-1px);
}

/* Hero Image */
.hero-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-image-bg {
  position: absolute;
  inset: -16px;
  background: radial-gradient(circle at 50% 50%, rgba(247,147,26,0.08), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-image {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: 200px 200px 160px 160px;
  border: 1px solid var(--border);
  filter: grayscale(15%);
  transition: filter 0.4s ease;
  display: block;
}
.hero-image:hover { filter: grayscale(0%); }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(1); }
  50%       { opacity: 0.7; transform: scaleY(1.08); }
}

/* ── Section label (shared) ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ── About ── */
.about-section {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 40px;
}
.about-inner .section-label { margin-bottom: 48px; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.about-heading {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.about-text {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .about-inner { padding: 56px 20px; }
}

/* ── Skills ── */
.skills-section {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
}
.skills-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 40px;
}
.skills-inner .section-label { margin-bottom: 48px; }

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.skills-category { display: flex; align-items: flex-start; gap: 32px; }
.skills-cat-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 140px;
  flex-shrink: 0;
  padding-top: 8px;
}
.skills-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}
.chip:hover { border-color: rgba(0,0,0,0.22); transform: translateY(-2px); }
.chip-muted {
  color: var(--text-muted);
  border-color: rgba(0,0,0,0.06);
  background: var(--bg-2);
}
.chip-muted:hover { color: var(--text); border-color: rgba(0,0,0,0.2); }
.chip-gold {
  color: var(--accent-2);
  border-color: rgba(247,147,26,0.25);
  background: rgba(247,147,26,0.05);
}
.chip-gold:hover { border-color: rgba(247,147,26,0.5); transform: translateY(-2px); }

/* ── Belief strip ── */
.belief-section {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 64px 40px;
  text-align: center;
}
.belief-text {
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}
.belief-text::before { content: '"'; color: var(--accent); font-style: normal; font-weight: 600; margin-right: 1px; }
.belief-text::after  { content: '"'; color: var(--accent); font-style: normal; font-weight: 600; margin-left: 1px; }

/* ── Barbell Section ── */
.barbell-section {
  position: relative;
  z-index: 2;
  height: 420px;
  background: linear-gradient(to bottom, var(--bg-2), var(--bg), var(--bg-2));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

#barbell-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.barbell-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  white-space: nowrap;
}

/* Keep centering intact when reveal transform is applied */
.barbell-controls.reveal {
  transform: translateX(-50%) translateY(40px) scale(0.97);
}
.barbell-controls.reveal.in {
  transform: translateX(-50%) translateY(0) scale(1);
}

.barbell-pr-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.barbell-btns {
  display: flex;
  gap: 10px;
}

.lift-btn {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.lift-btn span {
  color: var(--accent-2);
  margin-left: 5px;
  font-weight: 600;
}
.lift-btn:hover {
  border-color: rgba(0,0,0,0.2);
  color: var(--text);
}
.lift-btn.active {
  background: rgba(247,147,26,0.1);
  border-color: rgba(247,147,26,0.4);
  color: var(--text);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
html { overflow-x: hidden; }
body { max-width: 100%; }

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 36px;
  }
  .hero-text { max-width: 100%; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { width: 200px; height: 250px; }
  .skills-category { flex-direction: column; gap: 12px; }
  .skills-cat-title { width: auto; }
}

@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .hero { padding: 90px 20px 60px; }
  .hero-name { font-size: 2.6rem; }
  .hero-meta { font-size: 0.72rem; }
  .hero-desc { font-size: 1rem; }
  .hero-image { width: 160px; height: 200px; }
  .scroll-hint { display: none; }
  .barbell-section { height: 280px; }
  .lift-btn { font-size: 0.68rem; padding: 7px 14px; }
  .skills-inner { padding: 56px 20px; }
  .belief-section { padding: 48px 24px; }
  .belief-text { font-size: 0.95rem; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
