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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #111111;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===========================
   Layout helpers
   =========================== */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #ebebeb;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav__links a:hover {
  color: #111;
  border-bottom-color: #111;
}

/* Hamburger — hidden on desktop */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

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

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ===========================
   Hero
   =========================== */
.hero {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding-top: 7.5rem;
  padding-bottom: 6rem;
  position: relative;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__headline {
  font-size: clamp(3.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #111;
  max-width: 600px;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.5s ease-out both;
  animation-delay: 0ms;
}

.hero__headline-light {
  color: #444;
}

.hero__headline-highlight {
  color: #111;
}

.hero__sub {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 400;
  color: #666;
  line-height: 1.75;
  animation: fadeInUp 0.5s ease-out both;
  animation-delay: 150ms;
}

.hero__sub em {
  font-style: italic;
  font-weight: 300;
  color: #888;
}

.hero__supporting {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.5vw, 1.05rem);
  color: #666;
  line-height: 1.8;
  max-width: 550px;
  animation: fadeInUp 0.5s ease-out both;
  animation-delay: 300ms;
}

.hero__note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #aaa;
  letter-spacing: 0.01em;
  animation: fadeInUp 0.5s ease-out both;
  animation-delay: 500ms;
}

/* Hero right-side visual */
.hero__visual {
  flex: 0 0 38%;
  max-width: 38%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 0.5rem;
  position: relative;
  animation: fadeInUp 0.6s ease-out 0.15s both;
}

.hero__visual::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.18) 0%, rgba(167, 139, 250, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero__visual-inner {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f7f7f8;
  border: 1px solid #e4e4e7;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.07);
  opacity: 0.82;
  transition: opacity 0.3s;
  position: relative;
  z-index: 1;
}

.hero__visual-inner:hover {
  opacity: 1;
}

.hero__visual-inner img {
  width: 100%;
  height: auto;
  display: block;
}

/* "View case studies" hero button */
.btn--hero {
  margin-top: 2rem;
  background: transparent;
  color: #111;
  border: 1.5px solid #111;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 7px;
  display: inline-block;
  transition: all 0.25s ease;
  animation: fadeInUp 0.5s ease-out both;
  animation-delay: 450ms;
}

.btn--hero:hover {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 16px rgba(17, 17, 17, 0.15);
  transform: scale(1.02);
}

/* ===========================
   Section label
   =========================== */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin-bottom: 3.5rem;
}

/* ===========================
   Case Studies
   =========================== */
.work {
  padding-top: 5rem;
  padding-bottom: 6rem;
  border-top: 1px solid #ebebeb;
}

.case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 3.5rem;
  border-bottom: 1px solid #ebebeb;
}

.case-study:first-of-type {
  padding-top: 0;
}

.case-study__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4338CA;
  background: #eef2ff;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.case-study__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.case-study__desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 420px;
}

/* "View case study" button */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4338CA;
  border: 1.5px solid #4338CA;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  transition: all 0.25s ease;
}

.btn:hover {
  background: #4338CA;
  color: #fff;
  box-shadow: 0 4px 16px rgba(67, 56, 202, 0.18);
  transform: scale(1.02);
}

/* Row layout for case studies */
.case-study-row {
  display: flex;
  gap: 5rem;
  align-items: center;
  margin-bottom: 7rem;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-study-row:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.case-study-row.reverse {
  flex-direction: row-reverse;
}

.case-study-text {
  flex: 1;
}

.case-study-image {
  flex: 1;
}

/* Mockup / image placeholder */
.case-study__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f4f4f5;
  border-radius: 12px;
  border: 1px solid #e4e4e7;
  overflow: hidden;
}

.case-study--reverse .case-study__image {
  order: -1;
}

.case-study__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.25s ease;
}

.case-study-row:hover .case-study__image img {
  transform: scale(1.05);
}

/* ===========================
   How I Think
   =========================== */
.how-i-think {
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-top: 1px solid #ebebeb;
}

.how-i-think__list {
  list-style: none;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.how-i-think__list li {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
  padding-left: 1.25rem;
  position: relative;
}

.how-i-think__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #bbb;
  font-weight: 400;
}

/* ===========================
   About
   =========================== */
.about {
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-top: 1px solid #ebebeb;
}

.about__text {
  max-width: 640px;
}

.about__text p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.about__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about__contact-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4338CA;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.15s;
  width: fit-content;
}

.about__contact-link:hover {
  border-color: #4338CA;
}

/* ===========================
   Contact
   =========================== */
.contact {
  padding-top: 7rem;
  padding-bottom: 7rem;
  border-top: 1px solid #ebebeb;
  text-align: center;
}

.contact__heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.contact__sub {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.contact__links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.contact__link {
  font-size: 1rem;
  font-weight: 600;
  color: #4338CA;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s;
}

.contact__link:hover {
  border-color: #4338CA;
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding-block: 2.5rem;
  border-top: 1px solid #ebebeb;
  text-align: center;
}

.footer p {
  font-size: 0.8rem;
  color: #aaa;
}

/* ===========================
   Mobile Responsive
   =========================== */
@media (max-width: 768px) {
  /* Nav */
  .nav__burger {
    display: flex;
  }

  .nav__links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    padding: 0.5rem 0 1rem;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .hero__content {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .hero__visual {
    flex: none;
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
  }

  .hero__visual-inner {
    filter: none;
    opacity: 0.88;
  }

  /* Case study row */
  .case-study-row,
  .case-study-row.reverse {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .case-study-image {
    order: -1;
  }

  /* Case study (legacy grid) */
  .case-study {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: 2.5rem;
  }

  .case-study__image {
    order: -1;
  }

  /* How I Think */
  .how-i-think {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* About */
  .about {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .about__text {
    max-width: 100%;
  }

  /* Contact */
  .contact {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .contact__links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1.25rem;
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .case-study__title {
    font-size: 1.8rem;
  }
}
