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

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #1A1A18;
  background-color: #fff;
}

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

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

/* ========================================
   Layout
   ======================================== */
.container-narrow {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-mid {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ========================================
   Typography
   ======================================== */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  margin-bottom: 20px;
}

.section-heading {
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 16px;
}

.muted {
  color: #777;
}

.accent {
  color: #C8451B;
}

/* ========================================
   Divider
   ======================================== */
.divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

/* ========================================
   Scroll Animation
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 100px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.05),
    0 4px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.nav-hidden {
  transform: translateX(-50%) translateY(calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
}

.nav-inner {
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.nav-cta-pill {
  padding: 8px 18px 8px 8px;
  background: #1A1A18;
  color: #fff;
  border-radius: 100px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  flex-shrink: 0;
}

.nav-cta-pill:hover {
  opacity: 0.85;
}

.nav-cta-secondary {
  background: transparent;
  color: #1A1A18;
  padding: 8px 24px 8px 18px;
}

.nav-cta-secondary:hover {
  opacity: 0.6;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding: 180px 0 140px;
}

.hero-image {
  margin-top: 120px;
  max-width: 800px;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
}

.hero-label {
  color: #000;
  margin-bottom: 20px;
}

.hero-headline {
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 20px;
  color: #000;
}

.hero-headline em {
  font-style: italic;
}

.hero-sub {
  line-height: 1.45;
  color: #000;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: #1A1A18;
  color: #fff;
  font-family: inherit;
  border: 1px solid #1A1A18;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  color: #555;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  border-color: #1A1A18;
  color: #1A1A18;
}

.btn-accent {
  display: inline-block;
  padding: 12px 32px;
  background: #C8451B;
  color: #fff;
  font-family: inherit;
  border: 1px solid #C8451B;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-accent:hover {
  opacity: 0.85;
}

.hero-byline {
  color: #888;
  font-style: italic;
  margin-top: 12px;
  line-height: 1.5;
}

.hero-avatar {
  display: block;
  margin-top: 32px;
}

.hero-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.hero-avatar:hover img {
  transform: scale(1.1) rotate(3deg);
}

.hero-byline a {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.hero-byline a:hover {
  color: #1A1A18;
}

/* ========================================
   Selected Work
   ======================================== */
.work {
  padding: 120px 0;
}

.work-intro {
  margin-bottom: 100px;
}

.project {
  margin-bottom: 120px;
}

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

.project-info {
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.project-info p {
  color: #555;
  line-height: 1.7;
}

.project-info strong {
  font-weight: 700;
  color: #1A1A18;
}

.project-info strong a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Project image card */
.project-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.project-card-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card-inner img {
  width: 100%;
  border-radius: 12px;
}

.others-intro {
  color: #999;
  margin-bottom: 12px;
}

.others-intro strong {
  color: #1A1A18;
  font-weight: 700;
}

/* ========================================
   Flow / How I Work
   ======================================== */
.flow {
  padding: 120px 0;
}

.flow-timeline {
  position: relative;
}

.flow-step {
  display: flex;
  gap: 20px;
  padding-bottom: 24px;
  position: relative;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #ddd;
}

.flow-step:first-child::before {
  top: 38px;
}

.flow-step:last-child::before {
  bottom: auto;
  height: 38px;
}

.flow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #000;
  flex-shrink: 0;
  margin-top: 35px;
  position: relative;
  z-index: 1;
}

.flow-card {
  flex: 1;
  padding: 28px 0;
}

.flow-plan-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 12px;
}

.flow-plan-box:first-of-type {
  margin-top: 8px;
}

.flow-plan-box:last-of-type {
  margin-bottom: 0;
}

.flow-title {
  color: #000;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.55;
}

.flow-name {
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
}

.flow-body {
  color: #000;
  line-height: 1.55;
}

.flow-body p {
  margin-bottom: 8px;
}

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

.flow-cta {
  margin-top: 20px;
}

.flow-good-for {
  margin-top: 16px;
  color: #888;
  font-style: italic;
}

.flow-optional {
  color: #888;
  font-style: italic;
}

.final-cta .flow-step:last-child::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 46px;
  width: 2px;
  height: 80px;
  background: repeating-linear-gradient(
    to bottom,
    #ddd 0px,
    #ddd 4px,
    transparent 4px,
    transparent 8px
  );
  mask-image: linear-gradient(to bottom, black, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

/* Plan options within flow card */
.flow-plans {
  margin-top: 16px;
}

.flow-plan {
  padding: 20px 0;
  border-bottom: 1px dashed #eee;
}

.flow-plan:first-child {
  padding-top: 0;
}

.flow-plan:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.flow-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.flow-plan-name {
  font-weight: 700;
  color: #000;
}

.flow-plan-price {
  font-weight: 700;
  color: #000;
}

.flow-plan-desc {
  color: #000;
  margin-bottom: 12px;
}

.flow-plan-subtle {
  color: #000;
}

.flow-link {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.flow-link:hover {
  color: #555;
}

.flow-note {
  margin-top: 20px;
  color: #888;
  font-style: italic;
}

.flow-oneoff {
  margin-top: 24px;
  color: #1A1A18;
}

/* ========================================
   Final CTA
   ======================================== */
.final-cta {
  padding: 120px 0 180px;
}

.final-cta .section-heading {
  margin-bottom: 12px;
}

.final-cta-sub {
  color: #777;
  line-height: 1.7;
  margin-bottom: 40px;
}

.final-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.final-cta-contact {
  color: #999;
}

.final-cta-contact a {
  color: #777;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.final-cta-contact a:hover {
  color: #1A1A18;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 80px 0 100px;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px 0 51px;
}

.footer-bio {
  max-width: 360px;
}

.footer-bio p {
  margin-bottom: 16px;
}

.footer-bio p:last-child {
  margin-bottom: 0;
}

.footer-avatar {
  display: block;
  margin-top: 32px;
}

.footer-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.footer-avatar:hover img {
  transform: scale(1.1) rotate(3deg);
}

.footer-name {
  margin-top: 16px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.footer-links a {
  color: #888;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1A1A18;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .nav-inner {
    padding: 7px 14px 7px 7px;
  }

  .footer-inner {
    padding: 0 24px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .hero {
    padding: 120px 0 100px;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .phase {
    gap: 20px;
  }

  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .final-cta-buttons .btn-accent,
  .final-cta-buttons .btn-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

}
