/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: #1A1A1A;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  background: radial-gradient(circle at 10% 20%, #fbe8ff 0%, #fffbe3 40%, #e3fcf7 90%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography & Global Elements
   ========================================================================== */
h1, h2, h3, .logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

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

/* Container for page centering */
.content-container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
  flex: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  width: 100%;
  padding: 24px 0;
  position: relative;
  z-index: 100;
}

.header-container {
  width: 90%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-item {
  font-size: 15px;
  font-weight: 500;
  color: #555;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #1A1A1A;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-item:hover::after, 
.nav-item.active::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.nav-item:hover, 
.nav-item.active {
  color: #1A1A1A;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 80px 0 100px 0;
  position: relative;
}

.hero-content {
  flex: 0 0 62%;
}

.hero-title {
  font-size: 48px;
  line-height: 1.15;
  font-weight: 800;
  color: #1A1A1A;
  text-wrap: balance;
}

.hero-graphic {
  flex: 0 0 32%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-arrow {
  width: 100%;
  height: auto;
  max-width: 220px;
  overflow: visible;
}

/* Hand-drawn SVG Animation classes */
.arrow-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}

.arrow-head {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}

body.loaded .arrow-line {
  animation: drawLine 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.2s;
}

body.loaded .arrow-head {
  animation: drawHead 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.4s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawHead {
  to {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   Featured Work Section
   ========================================================================== */
.featured-section {
  padding: 40px 0 100px 0;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1A1A1A;
  margin-bottom: 32px;
}

/* Responsive Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card Visual Container */
.card-visual {
  width: 400px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card:hover .card-visual {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  transition: color 0.3s ease;
}

.work-card:hover .card-title {
  color: #000;
}

.card-description {
  font-size: 14px;
  line-height: 1.45;
  color: #555;
  margin: 0;
}

/* ==========================================================================
   Card Images Styling
   ========================================================================== */
.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Specific override for Crunch homepage card image */
#card-crunch .card-img {
  height: auto;
}

.work-card:hover .card-img {
  transform: scale(1.03);
}


/* ==========================================================================
   Footer Call to Action Section
   ========================================================================== */
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 80px 0;
  margin-top: 40px;
}

.cta-left {
  flex: 0 0 52%;
}

.cta-heading {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 8px;
}

.cta-subheading {
  font-size: 16px;
  color: #555;
  margin: 0;
}

.cta-right {
  flex: 0 0 35%;
  display: flex;
  gap: 60px;
  justify-content: flex-end;
}

.footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 15px;
  color: #555;
  transition: color 0.2s ease, transform 0.2s ease;
  width: fit-content;
}

.footer-link:hover {
  color: #1A1A1A;
  text-decoration: underline;
}

.footer-link.bold-link {
  font-weight: 700;
  color: #1A1A1A;
}

/* ==========================================================================
   Lower Footer Copyright Bar
   ========================================================================== */
.site-footer {
  width: 100%;
  margin-top: auto;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
}

.footer-bottom-strip {
  background-color: #D8EFF4;
  padding: 18px 24px;
  text-align: center;
}

.footer-bottom-strip p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #4A5D63;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Responsive Adaptations (Media Queries)
   ========================================================================== */

/* Tablet Layout (up to 950px) */
@media (max-width: 950px) {
  .hero-title {
    font-size: 38px;
  }
  
  .hero-section {
    padding: 60px 0 80px 0;
  }
  
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .footer-cta {
    padding: 60px 0;
    gap: 30px;
  }
  
  .cta-heading {
    font-size: 28px;
  }
}

/* Mobile Portrait Layout (up to 680px) */
@media (max-width: 680px) {
  body {
    background: radial-gradient(circle at 50% 0%, #fbe8ff 0%, #fffbe3 50%, #e3fcf7 100%);
  }

  .site-header {
    padding: 16px 0;
  }
  
  .header-container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .nav-links {
    gap: 20px;
    width: 100%;
  }
  
  .hero-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 0 60px 0;
  }
  
  .hero-content {
    flex: 0 0 100%;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-graphic {
    flex: 0 0 100%;
    align-self: center;
  }
  
  .hero-arrow {
    max-width: 160px;
  }
  
  .work-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .card-visual {
    aspect-ratio: 4 / 3;
  }
  
  .partful-mockups .phone-left {
    transform: translateX(-70px) translateY(20px) scale(0.9);
  }
  .partful-mockups .phone-right {
    transform: translateX(70px) translateY(20px) scale(0.9);
  }
  
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 0;
  }
  
  .cta-left {
    flex: 0 0 100%;
  }
  
  .cta-right {
    flex: 0 0 100%;
    width: 100%;
    justify-content: flex-start;
    gap: 60px;
  }
  
  .footer-bottom-strip {
    padding: 16px;
  }
  
}

/* ==========================================================================
   Case Study Page Styles (partiful.html)
   ========================================================================== */
.cs-main-container {
  padding: 40px 0;
}

/* Hero Section */
.cs-hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 80px;
}

.cs-hero-title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 24px;
}

.cs-hero-p {
  font-size: 16px;
  line-height: 1.55;
  color: #4A5568;
  margin-bottom: 16px;
}

/* Metadata Grid */
.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 32px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  color: #718096;
  letter-spacing: 0.08em;
}

.meta-value {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
}

.cs-hero-image-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.04);
  background-color: #FAF5FF;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 4 / 3.1;
}

.cs-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Problem & Critical Insight Grid */
.cs-problem-insight-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cs-problem-top-full {
  width: 100%;
}

.cs-insight-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.cs-problem-media-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 40px; /* Accounts for shifting right image */
}

.cs-video-wrapper,
.cs-image-wrapper {
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 390px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Vertical Offset */
.cs-image-wrapper {
  transform: translateY(40px);
}

.cs-problem-video {
  height: 100%;
  object-fit: cover;
  background-color: #121214;
}

.cs-problem-image {
  height: 100%;
  object-fit: cover;
  object-position: 85% center; /* Focuses on the right phone reviews screen */
}

.cs-insight-text-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(135deg, #FFFDF0 0%, #E8F9F3 100%);
  padding: 40px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.cs-section-subtitle {
  font-size: 24px;
  font-weight: 700;
  color: #1A1A1A;
}

.cs-text {
  font-size: 16px;
  line-height: 1.55;
  color: #4A5568;
  margin-bottom: 16px;
}

.cs-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-bullet-list li {
  font-size: 15px;
  line-height: 1.5;
  color: #4A5568;
  position: relative;
  padding-left: 20px;
}

.cs-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -2px;
  color: #9333EA;
  font-size: 20px;
}

/* Insight List Styling */
.cs-insight-title {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 800;
  color: #1A1A1A;
  margin-top: 16px;
  margin-bottom: 0;
  letter-spacing: 0.06em;
}

.cs-insight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-insight-list li {
  font-size: 15px;
  line-height: 1.5;
  color: #4A5568;
  position: relative;
  padding-left: 20px;
}

.cs-insight-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  color: #9333EA;
  font-size: 18px;
}

/* Iterative sketches Section */
.cs-sketches-section {
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cs-section-title {
  font-size: 32px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 16px;
}

.cs-center-text {
  font-size: 16px;
  line-height: 1.55;
  color: #4A5568;
  margin: 0 0 48px 0;
  text-wrap: balance;
}

.cs-sketches-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.cs-sketch-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
}

.cs-sketch-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Redesigned Experience Section */
.cs-redesign-section {
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cs-redesign-text-container {
  margin: 0 0 48px 0;
}

.cs-redesign-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cs-redesign-list li {
  font-size: 16px;
  line-height: 1.55;
  color: #4A5568;
  position: relative;
  padding-left: 24px;
}

.cs-redesign-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -1px;
  color: #9333EA;
  font-size: 24px;
  line-height: 1;
}

.cs-redesign-image-container {
  border-radius: 20px;
  overflow: hidden;
  display: flex;
}

.cs-redesign-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Reflections Section */
.cs-reflections-section {
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cs-reflections-text-container {
  margin: 0 0;
  display: flex;
  flex-direction: column;
}

/* Case Study Responsive Adjustments */
@media (max-width: 950px) {
  .cs-hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .cs-hero-image-container {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .cs-insight-split-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .cs-sketches-container {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .cs-main-container {
    padding: 24px 0;
  }

  .cs-hero-section {
    padding-bottom: 48px;
  }
  
  .cs-hero-title {
    font-size: 30px;
  }
  
  .cs-meta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
  }
  
  .cs-problem-insight-section,
  .cs-sketches-section,
  .cs-redesign-section,
  .cs-reflections-section {
    padding: 48px 0;
  }
  
  .cs-section-title {
    font-size: 26px;
    margin-bottom: 12px;
  }
  
  .cs-center-text {
    margin-bottom: 32px;
  }
  
  .cs-redesign-text-container {
    margin-bottom: 32px;
  }
  
  .cs-redesign-list li {
    font-size: 15px;
  }

  .cs-video-wrapper,
  .cs-image-wrapper {
    height: 254px;
    border-radius: 24px;
  }

  .cs-image-wrapper {
    transform: translateY(20px);
  }

  .cs-problem-media-row {
    gap: 16px;
    padding-bottom: 20px;
  }

  .cs-insight-text-column {
    padding: 24px;
    border-radius: 24px;
  }
}

/* HMW Question Callout Box */
.cs-hmw-box {
  background: linear-gradient(135deg, #FFFDF0 0%, #E8F9F3 100%);
  padding: 28px 36px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  margin: 32px 0;
}

.cs-hmw-text {
  font-size: 18px;
  line-height: 1.5;
  color: #1A1A1A;
  margin: 0;
}

@media (max-width: 680px) {
  .cs-hmw-box {
    padding: 20px 24px;
    margin: 24px 0;
  }
  
  .cs-hmw-text {
    font-size: 16px;
  }
}

/* Image Captions */
.cs-image-caption {
  font-size: 13px;
  font-style: italic;
  color: #718096;
  text-align: center;
  margin-top: 14px;
  margin-bottom: 40px;
}

/* User Interview Themes Grid (Curbside) */
.cs-themes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 32px 0 48px 0;
}

.cs-theme-card {
  background: linear-gradient(135deg, #FFFDF0 0%, #E8F9F3 100%);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.cs-theme-title {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 4px 0;
}

.cs-theme-quotes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cs-theme-quote {
  font-size: 15px;
  line-height: 1.5;
  color: #4A5568;
  font-style: italic;
  background: rgba(255, 255, 255, 0.6);
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 3px solid #319795;
  margin: 0;
}

.cs-theme-solution {
  font-size: 14px;
  line-height: 1.5;
  color: #1A1A1A;
  font-style: italic;
  margin-top: 8px;
}

@media (max-width: 850px) {
  .cs-themes-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   About Page Specific Styles
   ========================================================================== */
body.about-page {
  background: #A3E7F3;
  background-attachment: fixed;
}

body.about-page .footer-bottom-strip {
  background-color: #8FD5E6;
}

.about-hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 100px 0;
  min-height: calc(100vh - 300px);
}

.about-title {
  font-size: 42px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 28px;
  line-height: 1.2;
}

.about-p {
  font-size: 17px;
  line-height: 1.65;
  color: #1A1A1A;
  margin-bottom: 24px;
  font-weight: 450;
  max-width: 540px;
}

.about-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.about-frame-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.about-frame-img:hover {
  transform: translateY(-4px) rotate(0.5deg);
}

@media (max-width: 950px) {
  .about-hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px 0;
  }

  .about-title {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .about-p {
    font-size: 16px;
    max-width: 100%;
  }

  .about-frame-img {
    max-width: 360px;
  }
}



