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

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #009CA0;
  color: #FFF5F0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   SHARED CONTENT LANE — all sections align
   ============================================ */

.content-lane {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

/* ============================================
   INTRO — Scroll-driven sentence animation
   ============================================ */

.intro {
  position: relative;
}

.intro-spacer {
  pointer-events: none;
}

.intro-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
}

.intro-fixed.released {
  position: absolute;
  bottom: 0;
  top: auto;
}

.sentence {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-align: center;
  color: #FFF5F0;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  max-width: 960px;
  width: calc(100% - 160px);
  pointer-events: none;
  will-change: transform, opacity;
  opacity: 0;
}

/* ============================================
   SCROLL CUE
   ============================================ */

.scroll-cue {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: cueFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
  z-index: 11;
}

.scroll-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 245, 240, 0.5);
}

.scroll-chevron {
  color: rgba(255, 245, 240, 0.5);
  animation: bounce 2.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

@keyframes cueFadeIn {
  to { opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   SECTION REVEAL ANIMATIONS
   ============================================ */

.bio-panel,
.work-section,
.about-section,
.writing-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.bio-panel.revealed,
.work-section.revealed,
.about-section.revealed,
.writing-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
  position: relative;
  z-index: 5;
  padding-top: 56px;
  padding-bottom: 24px;
  background-color: #009CA0;
}

.about-header {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 245, 240, 0.15);
  margin-bottom: 24px;
}

.about-header h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
  color: #FFF5F0;
}

.about-body {
  max-width: 720px;
}

.about-body p {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 245, 240, 0.85);
  margin-bottom: 18px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-body a {
  color: #FFF5F0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 245, 240, 0.3);
  transition: border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-body a:hover {
  border-bottom-color: #FFF5F0;
}

/* ============================================
   WRITING SECTION
   ============================================ */

.writing-section {
  position: relative;
  z-index: 5;
  padding-top: 96px;
  padding-bottom: 80px;
  background-color: #009CA0;
}

.writing-header {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 245, 240, 0.15);
  margin-bottom: 24px;
}

.writing-header h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
  color: #FFF5F0;
}

.writing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
}

.writing-list li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 245, 240, 0.1);
}

.writing-list li:last-child {
  border-bottom: none;
}

.writing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.writing-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  color: #FFF5F0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.writing-link:hover {
  border-bottom-color: rgba(255, 245, 240, 0.5);
}

.icon-external {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.55;
  transform: translateY(1px);
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.writing-link:hover .icon-external {
  opacity: 1;
}

.writing-date {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 245, 240, 0.45);
  flex-shrink: 0;
}

.writing-teaser {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 245, 240, 0.6);
  margin-top: 6px;
  max-width: 640px;
}

/* ============================================
   WORK SECTION
   ============================================ */

.work-section {
  position: relative;
  z-index: 5;
  padding-top: 96px;
  padding-bottom: 80px;
  background-color: #009CA0;
}

.work-layout {
  display: flex;
  gap: 64px;
}

.work-main {
  flex: 1;
  min-width: 0;
}

.work-header {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 245, 240, 0.15);
  margin-bottom: 0;
}

.work-header h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
  color: #FFF5F0;
  margin-bottom: 6px;
}

.work-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 245, 240, 0.5);
}

/* Project rows */
.project-row {
  border-bottom: 1px solid rgba(255, 245, 240, 0.1);
  padding: 24px 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.3s ease,
              padding 0.3s ease,
              margin 0.3s ease;
}

.project-row.revealed {
  opacity: 1;
  transform: translateY(0);
}

.project-row:hover {
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
  background-color: rgba(255, 245, 240, 0.03);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.project-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.project-name {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  font-weight: 400;
  color: #FFF5F0;
  transition: color 0.2s ease;
}

.project-role {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 245, 240, 0.45);
}

.project-tagline {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 245, 240, 0.55);
  margin-top: 6px;
  max-width: 640px;
}

/* Expandable details */
.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              margin-top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-row.expanded .project-details {
  max-height: 1000px;
  margin-top: 16px;
}

.project-details p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 245, 240, 0.7);
  margin-bottom: 10px;
}

.project-details p:last-child {
  margin-bottom: 0;
}

.project-details strong {
  font-weight: 500;
  color: #FFF5F0;
}

/* Project links with icons */
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 245, 240, 0.45);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-link:hover {
  color: #FFF5F0;
}

.icon-globe,
.icon-github,
.icon-chrome,
.icon-appstore,
.icon-producthunt,
.icon-solana,
.icon-reuters,
.icon-yahoo {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ============================================
   WEEKEND PROJECTS
   ============================================ */

.weekend-projects {
  width: 260px;
  flex-shrink: 0;
  padding-top: 30px;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.weekend-projects.revealed {
  opacity: 1;
  transform: translateX(0);
}

.weekend-title {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 245, 240, 0.5);
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 245, 240, 0.1);
  margin-bottom: 24px;
}

.weekend-item {
  margin-bottom: 24px;
}

.weekend-name {
  font-family: 'Instrument Serif', serif;
  font-size: 16px;
  font-weight: 400;
  color: #FFF5F0;
  display: block;
  margin-bottom: 4px;
}

.weekend-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 245, 240, 0.45);
}

.weekend-item .project-links {
  margin-top: 6px;
}

.weekend-item .project-link {
  font-size: 12px;
}

/* ============================================
   BIO PANEL
   ============================================ */

.bio-panel {
  position: relative;
  z-index: 5;
  padding-top: 64px;
  padding-bottom: 64px;
  background-color: #008A8E;
  border-top: 1px solid rgba(255, 245, 240, 0.1);
}

.bio-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 20px;
}

.bio-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.bio-headshot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  flex-shrink: 0;
}

.bio-name {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  color: #FFF5F0;
  white-space: nowrap;
}

.links-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding-top: 8px;
}

.links-row a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 245, 240, 0.55);
  text-decoration: none;
  position: relative;
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.links-row a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: rgba(255, 245, 240, 0.4);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.links-row a:hover {
  color: #FFF5F0;
}

.links-row a:hover::after {
  width: 100%;
}

.bio-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 245, 240, 0.65);
  max-width: 560px;
  margin-bottom: 12px;
}

.bio-now {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 245, 240, 0.65);
}

.bio-now strong {
  font-weight: 500;
  color: rgba(255, 245, 240, 0.9);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  position: relative;
  z-index: 5;
  padding-top: 40px;
  padding-bottom: 48px;
  background-color: #009CA0;
  border-top: 1px solid rgba(255, 245, 240, 0.08);
}

.bio-meta {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 245, 240, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .content-lane {
    padding-left: 32px;
    padding-right: 32px;
  }

  .sentence {
    width: calc(100% - 64px);
  }

  .bio-top {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .work-layout {
    flex-direction: column;
    gap: 48px;
  }

  .weekend-projects {
    width: 100%;
    transform: translateY(16px);
  }

  .weekend-projects.revealed {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .content-lane {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sentence {
    width: calc(100% - 48px);
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bio-headshot {
    width: 44px;
    height: 44px;
  }

  .scroll-cue {
    bottom: 32px;
  }

  .work-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .bio-panel,
  .work-section,
  .about-section,
  .project-row,
  .weekend-projects {
    opacity: 1;
    transform: none;
  }
}
