/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --border: rgba(255, 255, 255, 0.07);
  --orange: #F7931A;
  --orange-dim: rgba(247, 147, 26, 0.12);
  --orange-glow: rgba(247, 147, 26, 0.25);
  --text: #f0f0f0;
  --text-muted: #777;
  --text-dim: #aaa;
  --font: 'Space Grotesk', sans-serif;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 1160px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--orange);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 60px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--bg);
}

.btn-primary:hover {
  background: #ffaa44;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(247, 147, 26, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 16px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  margin-left: auto;
  background: var(--orange);
  color: var(--bg);
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-cta:hover {
  background: #ffaa44;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 20px 24px 28px;
  gap: 4px;
}

.nav-mobile.open {
  display: flex;
}

.mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-link:hover {
  color: var(--text);
}

.mobile-cta {
  margin-top: 16px;
  background: var(--orange);
  color: var(--bg) !important;
  padding: 14px 0;
  text-align: center;
  border-radius: 6px;
  border: none;
  font-weight: 600;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  gap: 60px;
}

.hero-content {
  position: relative;
  text-align: left;
}

.hero-visual {
  position: relative;
  height: 480px;
  background: var(--bg);
  opacity: 0;
  animation: fadeIn 1.2s 0.5s forwards;
}

#nodeCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(247, 147, 26, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-name {
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-hi {
  display: block;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--text-dim);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
  max-width: 560px;
}

.hero-credentials {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
  flex-wrap: wrap;
}

.hero-credential {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-credential::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   STORY
   ============================================================ */
.story {
  padding: 72px 0;
  position: relative;
}

.story::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border));
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-areas:
    "title photo"
    "body  photo";
  gap: 40px 80px;
  align-items: start;
}

.about-title {
  grid-area: title;
}

.about-photo-wrap {
  grid-area: photo;
}

.story-body {
  grid-area: body;
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--orange-glow);
  box-shadow: 0 0 60px rgba(247, 147, 26, 0.12);
  flex-shrink: 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 45%;
  transform: scale(1.5);
  transform-origin: 25% 45%;
}

.about-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--orange);
  margin-bottom: 48px;
  line-height: 1;
}

.story-body {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.story-body.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-body p {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.85;
  color: var(--text-dim);
}

.story-body em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.story-closer {
  font-size: clamp(17px, 1.8vw, 20px) !important;
  font-weight: 500;
  color: var(--text) !important;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   BUILDING
   ============================================================ */
.building {
  padding: 120px 0;
  background: var(--bg-2);
}

.build-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.build-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: border-color var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.build-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.build-card:hover {
  border-color: var(--orange-glow);
  transform: translateY(-4px) !important;
}

.build-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.build-card-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.build-card-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.build-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.build-card-link:hover .arrow {
  transform: translateX(4px);
}

.arrow {
  display: inline-block;
  transition: transform var(--transition);
}

/* ============================================================
   WRITING
   ============================================================ */
.writing {
  padding: 120px 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.article-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg);
  transition: border-color var(--transition), transform var(--transition);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
}

.article-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.article-card:hover {
  border-color: rgba(247, 147, 26, 0.3);
  transform: translateY(-3px) !important;
}

.article-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 12px;
}

.article-teaser {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.article-link:hover .arrow {
  transform: translateX(4px);
}

.writing-cta {
  text-align: center;
}

/* ============================================================
   WORK WITH ME
   ============================================================ */
.work {
  padding: 120px 0;
  background: var(--bg-2);
}

.offerings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
}

.offering {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.offering.visible {
  opacity: 1;
  transform: translateY(0);
}

.offering-icon {
  width: 56px;
  height: 56px;
  background: var(--orange-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.offering-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3;
}

.offering-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.offering-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offering-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.offering-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.work-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.work-cta-sub {
  font-size: 15px;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 48px;
}

.footer-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.footer-line {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

.footer-right {
  text-align: right;
}

.footer-email {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-email:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .build-cards,
  .offerings {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section-title {
    margin-bottom: 40px;
    text-align: center;
  }

  .section-label {
    text-align: center;
  }

  .about-title {
    text-align: center;
  }

  .about-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "photo"
      "body";
    gap: 16px;
  }

  .about-title {
    margin-bottom: 0;
  }

  .about-photo-wrap {
    order: unset;
  }

  .about-photo {
    width: 220px;
    height: 220px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .build-card,
  .offering {
    padding: 28px 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .story,
  .building,
  .writing,
  .work {
    padding: 80px 0;
  }

  .story {
    padding-top: 110px;
    padding-bottom: 20px;
  }

  .building {
    padding-top: 20px;
  }

  .story-body {
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    align-items: flex-start;
    padding-top: 100px;
    height: auto;
    min-height: unset;
    padding-bottom: 120px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-credentials {
    gap: 12px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn-secondary {
    display: none;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .build-card-title {
    font-size: 22px;
  }
}
