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

:root {
  --red: #fd5956;
  --orange: rgba(242, 130, 30, 0.6);
  --black: #0f0f0f;
  --text: rgba(0, 0, 0, 0.7);
  --white: #fafafa;
  --off-white: #fffefe;
  --gray-mid: #999;
  --font-sans: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 64px;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav nav { display: flex; gap: 2rem; }

.nav nav a {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.5);
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--black); }

/* ── Hero ── */
@keyframes blobA { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-36px) scale(1.18); } 100% { transform: translate(0,0) scale(1); } }
@keyframes blobB { 0% { transform: translate(0,0) scale(1.1); } 50% { transform: translate(-60px,34px) scale(.92); } 100% { transform: translate(0,0) scale(1.1); } }
@keyframes blobC { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(36px,46px) scale(1.12); } 100% { transform: translate(0,0) scale(1); } }
@keyframes arrowB { 0%,100% { transform: translateY(0); opacity: .65; } 50% { transform: translateY(7px); opacity: 1; } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  width: 100%;
  min-height: 84vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 124px 64px 56px;
  background:
    radial-gradient(60% 80% at 88% 18%, #ffcaa3 0%, rgba(255,202,163,0) 60%),
    radial-gradient(55% 70% at 100% 62%, #ff9fb0 0%, rgba(255,159,176,0) 58%),
    radial-gradient(70% 90% at 62% 108%, #ffd98f 0%, rgba(255,217,143,0) 62%),
    radial-gradient(70% 90% at 6% 12%, #fff5ea 0%, rgba(255,245,234,0) 60%),
    linear-gradient(135deg, #fbf2e8 0%, #fae8de 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
}

.hero-blob--a {
  right: -150px; top: -170px;
  width: 600px; height: 600px;
  background: radial-gradient(circle at 42% 42%, #ff8a3e, rgba(255,138,62,0) 68%);
  filter: blur(58px);
  animation: blobA 16s ease-in-out infinite;
}

.hero-blob--c {
  right: 120px; top: 120px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, #ff7a9a, rgba(255,122,154,0) 70%);
  filter: blur(52px);
  animation: blobC 13s ease-in-out infinite;
}

.hero-blob--b {
  left: -80px; bottom: -160px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, #ffd27a, rgba(255,210,122,0) 70%);
  filter: blur(56px);
  animation: blobB 18s ease-in-out infinite;
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n2)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  animation: hero-in 0.6s ease both;
  animation-delay: 0.05s;
}

.hero-wave {
  font-size: 20px;
  line-height: 1;
}

.hero-hey {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a3a1e;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 112px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #1a130d;
  margin: 0;
  animation: hero-in 0.65s ease both;
  animation-delay: 0.2s;
}

.hero-title .hero-line {
  display: block;
}

.hero-em {
  font-style: italic;
  background: linear-gradient(100deg, #ff8a1e, #ff2d55 55%, #ff2d55);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 44px;
  width: fit-content;
  animation: hero-in 0.6s ease both;
  animation-delay: 0.4s;
}

.hero-cta-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a5a3a;
}

.hero-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(154,90,58,.5);
  color: #9a5a3a;
  font-size: 16px;
  animation: arrowB 1.8s ease-in-out infinite;
}

/* ── About ── */
.about {
  background: var(--white);
  padding: 48px 64px;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1.5;
  color: var(--text);
}

.about-body {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  /* Cap the reading measure; heading stays full-width */
  max-width: 800px;
}

/* ── Showcases ── */
.work {
  position: relative;
  /* height set by JS once showcase count is known */
}

.work-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.showcase {
  position: absolute;
  inset: 0;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 64px;
  will-change: transform;
}

.showcase-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.showcase-info {
  flex: 0 0 401px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(253, 89, 86, 0.1);
  border: 1px solid rgba(253, 89, 86, 0.5);
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.43;
  padding: 4px 14px;
  border-radius: 16px;
  white-space: nowrap;
}

.showcase-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1.5;
  color: var(--text);
}

.showcase-desc {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}

.showcase-metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.metric-number {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding-right: 28px;
}

.metric-number .metric-value {
  position: relative;
  z-index: 1;
}

.metric-number .metric-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  object-fit: contain;
  z-index: 0;
}

.metric-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 23px;
  background: #f75112;
  border-radius: 18px;
  flex-shrink: 0;
}

.metric-value {
  font-size: 2rem;
  font-weight: 500;
  color: var(--red);
  line-height: 1;
}

.metric-value .metric-unit {
  font-size: 2rem;
}

.metric-label {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  max-width: 383px;
}

/* Showcase image panel */
.showcase-image {
  flex: 0 0 835px;
  height: 70vh;
  max-height: 500px;
  border-radius: 2px;
  overflow: hidden;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase:hover .showcase-image img {
  transform: scale(1.04);
}

.placeholder-gray {
  background: #d9d9d9;
}

/* ── View my work button ── */
.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 8px 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 16px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  width: fit-content;
  cursor: pointer;
}

.btn-view:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.btn-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.icon-bg, .icon-arrow { transition: fill 0.2s ease; }
.btn-view:hover .icon-bg { fill: white; }
.btn-view:hover .icon-arrow { fill: #F2821E; }

.btn-view--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ── Footer ── */
.footer {
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 33px 64px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy,
.footer-email {
  font-size: 0.8rem;
  color: var(--gray-mid);
  font-weight: 400;
  transition: color 0.2s;
}

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

/* ── Showcase progress dots ── */
.showcase-dots {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.3s, transform 0.3s;
}

.showcase-dot.active {
  background: var(--red);
  transform: scale(1.4);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Reduced motion ──
   Respect users who ask for less motion: still the decorative hero blobs,
   shimmer, bouncing arrow and entrance/reveal animations, and turn off smooth
   scrolling. Content that relies on the reveal transition is forced visible so
   nothing stays hidden. (Applies site-wide — every page loads this file.) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html { scroll-behavior: auto; }

  .hero-blob { animation: none !important; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Work showcase: fall back to a normal stacked scroll instead of the
     JS scroll-jack (script.js skips its setup under this preference). */
  .work { height: auto !important; }
  .work-sticky {
    position: static;
    height: auto;
    overflow: visible;
  }
  .showcase {
    position: relative;
    inset: auto;
    transform: none !important;
    padding: 64px;
  }
  .showcase + .showcase {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .showcase-dots { display: none !important; }
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .about-inner { flex-direction: column; gap: 24px; }
  .about-heading { flex: none; font-size: 1.75rem; }

  .showcase {
    flex-direction: column;
    justify-content: center;
    padding: 80px 64px 40px;
    overflow-y: auto;
  }
  /* Stack info above image — without this the inner stays flex-direction:row
     and pushes the image off-screen to the right. */
  .showcase-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .showcase-info { flex: none; width: 100%; }
  .showcase-image { flex: none; width: 100%; height: 220px; }
}

@media (max-width: 1100px) {
  .hero { padding: 100px 64px; }
  .hero-title { font-size: 76px; }
}

@media (max-width: 768px) {
  .hero { padding: 90px 20px; }
  .hero-title { font-size: 48px; }
  .hero-blob--c { right: -40px; }
  .hero-greeting { align-items: flex-start; }
  .hero-wave { margin-top: -1px; }
  .about { padding: 40px 20px; }
  .about-heading { font-size: 1.5rem; }
  .showcase { padding: 80px 20px 24px; }
  .footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .nav { padding: 1rem 20px; }
  .nav nav { gap: 1.2rem; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 42px; }
}
