/* ============================================================
   Emma Tsai — Portfolio
   Implemented from Figma design (node 13:7950)
   ============================================================ */

:root{
  /* color tokens */
  --bg-page:            #faf7fd;
  --bg-secondary:       #ffffff;

  --text-primary:       #1a0b2e;
  --text-heading:       #17082e;
  --text-secondary:     #5c4878;
  --text-tertiary:      #6b5b87;
  --text-interactive:   #8b5cf6;

  --border-subtle:      #efe8fb;
  --border-medium:      #ddd2f7;

  --color-blush-100:    #fae8ef;
  --color-blush-500:    #d4578c;
  --color-blush-600:    #b8386e;

  --color-lavender-100: #efe8fb;
  --color-lavender-200: #ddd2f7;
  --color-lavender-600: #7c3aed;

  --color-info-100:     #e0f2fe;
  --color-info-600:     #0284c7;

  --color-green-100:    #d1fae5;
  --color-green-600:    #059669;

  --interactive-primary:#8b5cf6;

  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-card: 0px 2px 8px 0px rgba(0,0,0,0.05), 0px 8px 32px 0px rgba(180,120,160,0.12);
  --shadow-nav:  0px 2px 8px 0px rgba(0,0,0,0.06), 0px 8px 28px 0px rgba(0,0,0,0.08);
  --shadow-contact: 0px 8px 24px 0px rgba(0,0,0,0.09), 0px 28px 64px 0px rgba(180,120,160,0.22);

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans:  "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html{ scroll-behavior: smooth; overflow-x: hidden; }

body{
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
}

a{ text-decoration: none; color: inherit; }
ul{ list-style: none; }

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

/* ---------- shared utility classes ---------- */

.eyebrow{
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1.28px;
  text-transform: uppercase;
}
.eyebrow--blush{ color: var(--color-blush-500); }

.section-title{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 60px;
  letter-spacing: -0.3px;
  line-height: 1.1;
  color: var(--text-heading);
}

.label-small{
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.dot{ color: var(--text-tertiary); font-size: 14px; }

.headline{
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1.28px;
  color: var(--text-heading);
  flex-wrap: wrap;
}
.headline__company{ color: var(--text-interactive); }

.divider{
  border: none;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.icon{ width: 18px; height: 18px; flex-shrink: 0; }
.icon--sm{ width: 18px; height: 18px; }
.icon--lg{ width: 24px; height: 24px; }
.icon--blush{ color: var(--color-blush-500); }

.badge-row{ display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.badge{
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
}
.badge--info{ background: var(--color-info-100); color: var(--color-info-600); }
.badge--lavender{ background: var(--color-lavender-100); color: var(--color-lavender-600); }
.badge--green{ background: var(--color-green-100); color: var(--color-green-600); }
.badge--blush{ background: var(--color-blush-100); color: var(--color-blush-600); }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1.28px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); }

.btn--ghost{
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid #ffffff;
  padding: 13px 21px;
  box-shadow: var(--shadow-card);
}

.btn--primary{
  background: var(--interactive-primary);
  color: #ffffff;
  padding: 12px 16px 12px 20px;
  box-shadow: 0px 4px 14px 0px rgba(139,92,246,0.25);
  border: none;
  outline: none;
}

.award-row{ display:flex; align-items:center; gap:8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
  padding: 40px 80px 0;
  height: 650px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(209,219,208,0) 86%, rgb(223,208,225) 99.5%),
    linear-gradient(180deg, rgba(255,255,255,0) 80%, rgb(255,255,255) 99.6%);
}

.blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.36;
  pointer-events: none;
  z-index: 0;
}
.blob--blue{   background: #bae6fd; width: 365px; height: 365px; left: 41px;  top: 467px; }
.blob--purple{ background: #ddd2f7; width: 341px; height: 341px; left: 921px; top: 148px; }
.blob--pink{   background: #f5cede; width: 464px; height: 464px; left: -77px; top: -145px; }

.navbar{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  width: 100%;
}
.navbar__list{
  display: flex;
  align-items: center;
  gap: 0;
  padding: 7px 9px;
  background: rgba(252,249,246,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-nav);
}
.navbar__link{
  display: inline-flex;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color .15s ease, background .15s ease;
}
.navbar__link:hover{ color: var(--text-primary); }
.navbar__link--active{
  background: var(--color-lavender-200);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.05), 0px 8px 32px 0px rgba(180,120,160,0.12);
}

.hero__text{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 738px;
  max-width: 100%;
}

.hero__title{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1.1;
  letter-spacing: -1.152px;
  color: var(--text-heading);
}

.hero__subtitle{
  font-size: 30px;
  line-height: 1.2;
  color: var(--text-tertiary);
  font-weight: 400;
}

.hero__photo{
  position: absolute;
  width: 1005px;
  height: 700px;
  left: 544px;
  top: -51px;
  overflow: hidden;
  pointer-events: none;
}
.hero__photo img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 40px 80px;
}

.portfolio__heading{
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.portfolio__stack{
  position: relative;
  width: 100%;
  height: 456px;
}

.project-card{
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 400px;
  background: #F8F5FD;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ============================================================
   SCROLL-REVEAL STACK
   Shared by index.html ("All projects") and tastemaker.html
   ("up next" case-study list): each card pins to the top of the
   viewport as you scroll, and the next card scrolls up to fully
   cover it — no clicks or swipes needed, cards reveal themselves
   as the page scrolls past them.
   ============================================================ */
#cardStack,
#caseCardStack{
  position: relative;
  height: auto;
  display: block;
}

#cardStack .project-card,
#caseCardStack .project-card{
  position: sticky;
  top: 40px;
  left: auto;
  right: auto;
  margin-bottom: 32px;
  transform: none;
  opacity: 1;
  transition: none;
}

#cardStack .project-card:nth-child(1),
#caseCardStack .project-card:nth-child(1){ z-index: 1; }
#cardStack .project-card:nth-child(2),
#caseCardStack .project-card:nth-child(2){ z-index: 2; }
#cardStack .project-card:nth-child(3),
#caseCardStack .project-card:nth-child(3){ z-index: 3; }
#cardStack .project-card:nth-child(4),
#caseCardStack .project-card:nth-child(4){ z-index: 4; }
#cardStack .project-card:nth-child(4){ margin-bottom: 0; }
#caseCardStack .project-card:nth-child(5){ z-index: 5; margin-bottom: 0; }

.project-card__body{
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 40px;
  min-width: 0;
}

.project-card__top{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card__title{
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text-primary);
}

.project-card__desc{
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.project-card__cta{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.project-card__lock-note{
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.project-card__media{
  flex-shrink: 0;
  width: 845px;
  max-width: 50%;
  position: relative;
  overflow: hidden;
  background: var(--color-lavender-100);
}
.project-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about{
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 40px 80px;
}

.about__grid{
  display: flex;
  gap: 64px;
  align-items: flex-start;
  width: 100%;
}

.profile-card{
  flex-shrink: 0;
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
}

.profile-card__header{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-card__name{
  font-size: 30px;
  line-height: 1.2;
  color: var(--text-heading);
}

.award-item{ display:flex; flex-direction:column; gap:4px; }
.award-item__row{ display:flex; align-items:flex-start; gap:8px; }
.award-item__title{ font-weight:500; font-size:14px; color: var(--text-primary); }
.award-item__line{ font-size:14px; color: var(--text-secondary); }

.experience-list{
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.experience-item{ display:flex; flex-direction:column; gap:4px; }
.experience-item__dates{ font-size:16px; color: var(--text-tertiary); }
.experience-item__desc{ font-size:16px; color: var(--text-secondary); }

.about__main{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.bio{
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.skills{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.skills__title{
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: var(--text-tertiary);
}

.skills__cloud{
  position: relative;
  width: 100%;
  height: 280px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(180,160,210,0.35) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(90deg, #f8f7fc 0%, #f8f7fc 100%);
}
.skills__cloud::before{
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(140,100,180,0.18) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

@keyframes skillFloat{
  0%{   transform: translate(0, 0) rotate(var(--rot, 0deg)); }
  20%{  transform: translate(5px, -9px) rotate(calc(var(--rot, 0deg) + 2deg)); }
  40%{  transform: translate(-4px, -14px) rotate(calc(var(--rot, 0deg) - 1.4deg)); }
  60%{  transform: translate(-7px, -5px) rotate(calc(var(--rot, 0deg) + 1deg)); }
  80%{  transform: translate(4px, -11px) rotate(calc(var(--rot, 0deg) - 0.6deg)); }
  100%{ transform: translate(0, 0) rotate(var(--rot, 0deg)); }
}

.tag{
  position: absolute;
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 8.8px 21.6px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.28px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0px 1px 2px rgba(0,0,0,0.06), 0px 4px 8px rgba(0,0,0,0.1);
  animation: skillFloat 3s ease-in-out infinite;
}
.tag--orange{ background:#ffd09b; color:#5a3000; }
.tag--blue{   background:#a8d4f5; color:#0e3558; }
.tag--green{  background:#a8e6c8; color:#0e4228; }
.tag--purple{ background:#c8b4f5; color:#2a0e6e; }
.tag--red{    background:#f5a8a8; color:#5a0e0e; }
.tag--pink{   background:#f5b4d4; color:#5a0e34; }
.tag--yellow{ background:#FEF08A; color:#422006; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 100%;
  padding: 40px 80px 80px;
}

.contact__heading{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 700px;
  text-align: center;
}

.contact__title{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}
.contact__title em{
  font-style: italic;
  color: var(--color-blush-500);
}

.contact__subtitle{
  font-size: 16px;
  color: var(--text-secondary);
}

.contact__cards{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  width: 100%;
}

.contact-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 618px;
  max-width: 100%;
  padding: 60px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-contact);
  transition: transform .15s ease;
}
.contact-card:hover{ transform: translateY(-2px); }

.contact-card--email{ background: var(--color-lavender-100); }
.contact-card--linkedin{ background: var(--color-info-100); }

.contact-card__intro{
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.contact-card__title{
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  color: #000000;
}

.contact-card__subtitle{
  font-weight: 500;
  font-size: 20px;
  color: var(--text-secondary);
}

.contact-card__pill{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 40px 20px 20px;
  border-radius: 40px;
  background: #fffefc;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.1), inset 1.5px 1px 2.3px rgba(255,255,255,0.9), inset -1px -2px 2.3px rgba(255,255,255,0.6);
}

.contact-card__pill-left{
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1 1 auto;
}

.contact-card__text{
  font-weight: 500;
  font-size: 20px;
  color: var(--text-primary);
  white-space: nowrap;
}
.contact-card__text--grow{
  overflow: hidden;
  text-overflow: ellipsis;
}

.linkedin-logo{
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}

.mail-icon{
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ============================================================
   CASE STUDY PAGE
   ============================================================ */
.case-hero{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
  padding: 40px 80px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(209,219,208,0) 86%, rgb(223,208,225) 99.5%),
    linear-gradient(180deg, rgba(255,255,255,0) 80%, rgb(255,255,255) 99.6%);
}

.case-hero--no-fade{
  background: none;
}

.case-hero--tight{
  padding-bottom: 0;
}

.case-hero__text{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.case-hero__title{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 60px;
  line-height: 1.1;
  letter-spacing: -0.3px;
  color: var(--text-heading);
}

.case-detail__heading .section-title,
.contact__title--case{
  font-size: 48px;
  letter-spacing: 0;
}

.case-hero__desc{
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-tertiary);
  width: 100%;
}

.case-toolbar{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.project-focus{ display: flex; flex-direction: column; gap: 12px; }
.project-focus__list{ display: flex; flex-direction: column; gap: 4px; }
.project-focus__item{
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-tertiary);
}
.project-focus__item .icon{ color: var(--color-blush-500); }

/* Focus panel: glass card wrapping Project Focus + Extra Context (tastemaker.html) */
.focus-panel{
  display: flex;
  gap: 80px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  padding: 25px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
  overflow: hidden;
}
.focus-panel .project-focus{ flex-shrink: 0; min-width: 0; }

.extra-context{ display: flex; flex-direction: column; gap: 12px; flex: 1 1 0; min-width: 0; }
.extra-context__list{ display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; width: 100%; }
.extra-context__card{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.78);
  background: linear-gradient(165deg, rgba(245,206,222,0.42) 0%, rgba(221,210,255,0.42) 100%);
  flex: 1 1 220px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.extra-context__icon{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 21px;
  background: rgba(245,206,222,0.7);
  border: 1px solid rgba(255,255,255,0.78);
}
.extra-context__icon .icon{ width: 18px; height: 18px; color: var(--color-blush-600); }
.extra-context__text{ display: flex; flex-direction: column; min-width: 0; }
.extra-context__title{ font-weight: 500; font-size: 14px; line-height: 1.6; color: var(--text-primary); white-space: normal; overflow-wrap: break-word; }
.extra-context__desc{ font-size: 12px; line-height: 1.6; color: var(--text-tertiary); white-space: normal; overflow-wrap: break-word; }

.extra-context__card--link{
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.extra-context__card--link:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.only-mobile{ display: none; }

.tab-group{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  background: rgba(252,249,246,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-nav);
  flex-wrap: wrap;
}
.tab-group__item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1.28px;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.tab-group__item:hover{ color: var(--text-primary); }
.tab-group__item--active{
  background: var(--bg-secondary);
  color: var(--text-secondary);
  box-shadow: 0px 1px 1px rgba(0,0,0,0.04), 0px 2px 4px rgba(0,0,0,0.07);
}

/* ============================================================
   CASE DETAIL PAGE (individual case study deep-dive)
   ============================================================ */
.case-detail__section{
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding: 40px 80px;
}

.case-detail__section--gap-lg{ gap: 40px; }

.case-detail__heading{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-detail__columns{
  position: relative;
  z-index: 2;
  display: flex;
  gap: 64px;
  align-items: flex-start;
  width: 100%;
}

.case-detail__left{
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex-shrink: 0;
  width: 320px;
}

.case-detail__field{ display: flex; flex-direction: column; gap: 12px; }

.case-detail__role{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.case-detail__role-title{ font-weight: 500; font-size: 14px; color: var(--text-heading); }
.case-detail__role-company{ font-weight: 500; font-size: 14px; color: var(--text-interactive); }

.case-detail__team-list{ display: flex; flex-direction: column; gap: 8px; }
.case-detail__team-item{ display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-tertiary); }

.dot-bullet{
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.case-detail__right{ flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.case-detail__copy{ font-size: 20px; line-height: 1.6; color: var(--text-secondary); }
.case-detail__copy-block{ display: flex; flex-direction: column; gap: 20px; width: 100%; }

.case-detail__list{ list-style: decimal; padding-left: 30px; display: flex; flex-direction: column; gap: 0; font-size: 20px; line-height: 1.6; color: var(--text-secondary); }
.case-detail__list li{ font-size: 20px; line-height: 1.6; color: var(--text-secondary); }

.compare-grid{ display: flex; gap: 24px; width: 100%; }
.before-after-col{ display: flex; flex-direction: column; gap: 24px; flex: 1 1 0; min-width: 0; }
.compare-card{
  position: relative;
  width: 100%;
  aspect-ratio: 628 / 400;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow-card);
}
.compare-card img{ width: 100%; height: 100%; object-fit: cover; }
.compare-card__tag{
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 13px;
}
.compare-card__tag--before{ background: rgba(255,255,255,0.92); color: var(--text-primary); }
.compare-card__tag--after{ background: rgba(26,11,46,0.85); color: #ffffff; }

/* Output Page Enhancement: before/after media row, then insight columns row below */
.output-compare{ display: flex; flex-direction: column; gap: 40px; width: 100%; }
.output-compare__media-row{ display: flex; gap: 24px; align-items: flex-start; width: 100%; flex-wrap: wrap; }
.output-compare__insights-row{ display: flex; gap: 64px; align-items: flex-start; width: 100%; }
.output-compare__insights-row .insight-col{ flex: 1 1 0; min-width: 280px; }
.compare-card.output-compare__media--before{ width: 617px; max-width: 100%; height: 928px; aspect-ratio: auto; flex-shrink: 0; }
.compare-card.output-compare__media--after{ flex: 1 1 320px; min-width: 280px; height: 928px; aspect-ratio: auto; }
/* Tall screenshots exceed the fixed card height — scroll inside the box instead of cropping */
.compare-card__scroll{ position: absolute; inset: 0; overflow-y: auto; }
.compare-card__scroll img{ display: block; width: 100%; height: auto; }

.insight-grid{ display: flex; gap: 64px; width: 100%; align-items: flex-start; }
.insight-col{ flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.insight-col p{ font-size: 20px; line-height: 1.6; color: var(--text-secondary); }
.insight-col ul{ list-style: disc; padding-left: 30px; display: flex; flex-direction: column; gap: 0; }
.insight-col li{ font-size: 20px; line-height: 1.6; color: var(--text-secondary); }

.final-product-frame{
  display: block;
  width: 100%;
  height: 756px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* What's Cooking App: flat before/after cards (no insight column) */
.flat-compare-grid{ display: flex; gap: 24px; width: 100%; }
.flat-compare-card{
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow-card);
}
.flat-compare-card img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* What's Cooking App: standalone statement paragraph (larger, no label) */
.case-detail__statement{ font-size: 30px; line-height: 1.2; color: var(--text-secondary); width: 100%; }

/* What's Cooking App: workshop image pair */
.workshop-grid{ display: flex; gap: 24px; width: 100%; }
.workshop-card{
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow-card);
  background: var(--bg-secondary);
}
.workshop-card img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.workshop-card--tall{ height: 491px; }
.workshop-card--short{ height: 270px; }

/* What's Cooking App: empty design placeholder boxes (no prototype/screens provided in source) */
.placeholder-box{
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.placeholder-box--a{ height: auto; aspect-ratio: 2000 / 1223; }
.placeholder-box--b{ height: auto; aspect-ratio: 2000 / 1200; }
.placeholder-box--c{ height: auto; aspect-ratio: 2000 / 1000; }

/* Heinz Redesign 2025: Final Design section placeholders */
.placeholder-box--heinz-hero{ height: auto; aspect-ratio: 1280 / 607; }
.placeholder-box--heinz-campaigns{ height: auto; aspect-ratio: 1280 / 1230; }
.placeholder-box--heinz-products{ height: auto; aspect-ratio: 1280 / 1135; }
.placeholder-box--heinz-recipes{ height: auto; aspect-ratio: 1280 / 1230; }
.placeholder-box--heinz-brandvalues{ height: auto; aspect-ratio: 1280 / 1230; }

.placeholder-box--lottie{ overflow: hidden; }
.placeholder-box__lottie{ display: block; width: 100%; height: 100%; overflow: hidden; }
.placeholder-box__lottie svg{ width: 100% !important; height: 100% !important; }
.placeholder-box__lottie--mobile{ display: none; }

.inline-link{ text-decoration: underline; }

.next-case-grid{ display: flex; gap: 24px; align-items: flex-end; width: 100%; }
.next-case-card{
  display: block;
  min-width: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.next-case-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-contact); }
.next-case-card--lg{ flex: 0 1 748px; max-width: 748px; aspect-ratio: 3 / 2; }
.next-case-card--sm{ flex: 1 1 0; height: 368px; }
.next-case-card img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   CAMPAIGN PAGE BUILDER (tastemaker-dxpage.html)
   ============================================================ */

/* Section heading alias (same as .section-title) */
.case-detail__section-title{
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 60px;
  letter-spacing: -0.3px;
  line-height: 1.1;
  color: var(--text-heading);
}

/* Prose copy block: lets <p>, <ul>, <ol> inside carry spacing */
.case-detail__copy--prose{ display: flex; flex-direction: column; gap: 16px; }
.case-detail__copy--prose p,
.case-detail__copy--prose li{ font-size: 20px; line-height: 1.6; color: var(--text-secondary); }
.case-detail__copy--prose ul,
.case-detail__copy--prose ol{ padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.case-detail__copy--prose ol{ list-style: decimal; }
.case-detail__copy--prose ul{ list-style: disc; }
.case-detail__copy--prose li > ul{ list-style: disc; margin-top: 8px; }
.case-detail__copy--prose strong{ font-weight: 600; color: var(--text-heading); }
.case-detail__copy--prose a{ color: var(--text-interactive); text-decoration: underline; }

/* Full-width copy paragraph (no left sidebar constraint) */
.case-detail__copy--wide{ font-size: 20px; line-height: 1.6; color: var(--text-secondary); width: 100%; }

/* Field with extra top margin */
.case-detail__field--mt{ margin-top: 40px; }

/* Placeholder boxes for dxpage */
.placeholder-box--dxpage-prototype{ aspect-ratio: 1512 / 756; overflow: hidden; }
.placeholder-box--dxpage-prototype iframe{ display: block; width: 100%; height: 100%; border: none; }
.placeholder-box--dxpage-final{
  aspect-ratio: 1512 / 900;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}
.placeholder-box--dxpage-final video{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* User flow image frame */
.case-detail__frame{
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow-card);
  background: var(--bg-secondary);
}
.case-detail__frame img{ display: block; width: 100%; height: auto; }

/* Objectives + KPI: two-column layout */
.dxpage-objectives{
  display: flex;
  gap: 32px;
  width: 100%;
  align-items: flex-start;
}
.dxpage-objectives__list{
  flex: 1 1 0;
  min-width: 0;
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dxpage-objectives__list li{
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* KPI table */
.dxpage-kpi-table{
  flex: 0 0 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
}
.dxpage-kpi-table__header{
  display: flex;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid var(--border-medium);
}
.dxpage-kpi-table__body{ display: flex; flex-direction: column; }
.dxpage-kpi-table__row{
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}
.dxpage-kpi-table__row:last-child{ border-bottom: none; }
.dxpage-kpi-table__cell{
  flex: 1 1 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-subtle);
}
.dxpage-kpi-table__cell:last-child{ border-right: none; }
.dxpage-kpi-table__cell--metric{ flex: 0 0 200px; }
.dxpage-kpi-table__cell p{ font-size: 14px; line-height: 1.6; }
.dxpage-kpi-table__header .dxpage-kpi-table__cell .label-small{ margin: 0; }

@media (max-width: 900px){
  .dxpage-objectives{ flex-direction: column; }
  .dxpage-kpi-table{ flex: 0 0 auto; width: 100%; }
  .case-detail__section-title{ font-size: 40px; }
}

@media (max-width: 640px){
  .case-detail__copy--wide{ font-size: 16px; }
  .case-detail__copy--prose p,
  .case-detail__copy--prose li{ font-size: 16px; }

  /* KPI table: shrink metric column + tighten padding so all 3 cols fit on small screens */
  .dxpage-kpi-table__cell--metric{ flex: 0 0 130px; }
  .dxpage-kpi-table__cell{ padding: 10px 12px; font-size: 13px; }
}

/* ============================================================
   DESTIN.AI BRANDING (destinaibranding.html)
   ============================================================ */

/* small copy variant for short bio blurbs in the sidebar */
.case-detail__copy--sm{ font-size: 16px; }

/* generic text+image / image+image row (stacks on tablet, unlike the wider sidebar breakpoint) */
.case-detail__row{ display: flex; gap: 40px; align-items: flex-start; width: 100%; }

/* image frame with a second image absolutely layered on top (e.g. a sticker/label over a photo) */
.case-detail__frame--layered{ position: relative; overflow: hidden; aspect-ratio: 1280 / 641; }
.case-detail__frame--layered img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* fixed-width / flexible variants used when frames sit side-by-side and shouldn't stretch evenly */
.case-detail__frame--fixed-500{ width: 500px; flex-shrink: 0; }
.case-detail__frame--flex{ flex: 1 1 0; min-width: 0; width: auto; }

/* equal-split image pairs (rough sketches) */
.workshop-card--destin-sm{ height: auto; aspect-ratio: 620 / 267; }
.workshop-card--destin-md{ height: auto; aspect-ratio: 628 / 364; }

/* Process table: STAGE 1 / STAGE 2 / FINAL STAGE */
.stage-table{
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stage-table__header{ display: flex; width: 100%; background: #f8f5fd; }
.stage-table__header-cell{
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.78);
}
.stage-table__header-cell .label-small{ margin: 0; }
.stage-table__body{ display: flex; flex-direction: column; width: 100%; }
.stage-table__row{ display: flex; width: 100%; border-bottom: 1px solid var(--border-subtle); }
.stage-table__row:last-child{ border-bottom: none; }
.stage-table__cell{
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: center;
  padding: 24px 16px;
}
.stage-table__cell-title{
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1.28px;
  color: var(--text-primary);
  width: 100%;
  text-align: left;
}
.stage-table__cell-list{
  list-style: disc;
  padding-left: 21px;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  width: 100%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px){
  .case-detail__row{ flex-direction: column; }
  .case-detail__frame--fixed-500{ width: 100%; }
}

@media (max-width: 640px){
  .stage-table__cell{ padding: 16px 8px; gap: 8px; }
  .stage-table__cell-title{ font-size: 14px; }
  .stage-table__cell-list{ font-size: 12px; }
  .stage-table__header-cell{ padding: 10px 8px; }
}

/* ============================================================
   SOCIAL CONTENT STUDIO (tastemaker-social.html)
   ============================================================ */

/* Eyebrow-style kicker with icon, sits above the case-hero title */
.case-hero__kicker{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1.28px;
  color: var(--color-blush-500);
  text-transform: uppercase;
}
.case-hero__kicker .icon{ color: var(--color-blush-500); }

/* "How might we" callout box */
.hmw-callout{
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 24px 32px;
  background: var(--color-lavender-100);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
}
.hmw-callout p{ font-size: 22px; line-height: 1.5; color: var(--text-heading); }

/* Simple pill-chain flow diagram (User Flow) */
.flow-diagram{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 24px;
  background: var(--color-lavender-100);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}
.flow-diagram__pill{
  flex: 0 0 auto;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
}
.flow-diagram__pill--start{ color: var(--text-interactive); }
.flow-diagram__arrow{ flex: 1 1 24px; min-width: 16px; height: 1px; background: var(--border-medium); position: relative; }
.flow-diagram__arrow::after{
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--text-tertiary);
  border-bottom: 1px solid var(--text-tertiary);
  transform: translate(-1px, -50%) rotate(-45deg);
}

/* Placeholder boxes: real screenshots not yet exported for this exploratory concept */
.placeholder-box--social-journey{ height: auto; aspect-ratio: 1280 / 811; }
.placeholder-box--social-sitemap{ height: auto; aspect-ratio: 1280 / 1307; }
.placeholder-box--social-journey img,
.placeholder-box--social-sitemap img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.placeholder-box--social-direction{ height: auto; aspect-ratio: 1280 / 866; overflow: hidden; }
.placeholder-box--social-direction iframe{ display: block; width: 100%; height: 100%; border: none; }

@media (max-width: 900px){
  .case-hero__kicker{ font-size: 14px; }
  .hmw-callout{ padding: 20px 24px; }
  .hmw-callout p{ font-size: 18px; }
  .flow-diagram{ padding: 16px; gap: 8px; }
  .flow-diagram__pill{ padding: 10px 14px; font-size: 13px; }

  .placeholder-box--social-journey{ aspect-ratio: 354 / 224; }
  .placeholder-box--social-sitemap{ aspect-ratio: 354 / 362; }
  .placeholder-box--social-direction{ aspect-ratio: 354 / 478; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  display: flex;
  justify-content: center;
  padding: 32px 80px 48px;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1440px){
  .compare-grid{ flex-direction: column; gap: 40px; }
}

@media (max-width: 1180px){
  .hero, .portfolio, .about, .contact{ padding-left: 48px; padding-right: 48px; }

  .hero__photo{ left: auto; right: -120px; width: 760px; height: 600px; }

  .project-card__media{ width: 360px; }

  .about__grid{ flex-direction: column; }
  .profile-card{ width: 100%; }

  .case-hero, .case-detail__section{ padding-left: 48px; padding-right: 48px; }
  .case-detail__columns{ flex-direction: column; gap: 40px; }
  .case-detail__left{ width: 100%; order: 2; }
  .case-detail__right{ order: 1; }

  .next-case-card--sm{ height: auto; aspect-ratio: 3 / 2; min-width: 180px; }
}

@media (max-width: 900px){
  .only-desktop{ display: none; }
  .only-mobile{ display: inline; }

  .focus-panel{ flex-direction: column; gap: 40px; }
  .extra-context__list{ flex-direction: column; flex-wrap: nowrap; gap: 12px; width: 100%; }
  .extra-context__card{ width: 100%; flex: 1 1 auto; padding: 16px 20px; }

  .hero{ height: auto; gap: 32px; }
  .hero__photo{
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 2011 / 1401;
    left: 0;
    top: 0;
    border-radius: var(--radius-xl);
  }
  .hero__photo img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }

  .portfolio__stack{ height: auto; }
  .project-card{
    position: relative;
    top: 0;
    height: auto;
    flex-direction: column;
    margin-bottom: 24px;
    transform: none !important;
    opacity: 1 !important;
    z-index: 1 !important;
    pointer-events: auto !important;
  }
  .project-card__media{ width: 100%; max-width: 100%; height: 220px; order: -1; }

  .contact-card{ padding: 40px 24px; }
  .contact-card__pill{ padding: 20px; }
  .contact-card__subtitle{ font-size: 16px; letter-spacing: 1.28px; }
  .mail-icon, .linkedin-logo{ display: none; }

  .next-case-grid{ flex-direction: column; }
  .next-case-card--lg, .next-case-card--sm{ flex: 0 1 auto; width: 100%; max-width: 100%; min-width: 0; height: auto; aspect-ratio: 3 / 2; }
  .next-case-card--mobile-first{ order: -1; }
  .final-product-frame{ height: 478px; }

  .output-compare__media-row{ flex-direction: column; }
  .output-compare__insights-row{ flex-direction: column; gap: 40px; }
  .compare-card.output-compare__media--before,
  .compare-card.output-compare__media--after{ width: 100%; height: 420px; flex: none; }

  .flat-compare-grid{ flex-direction: column; }
  .flat-compare-card{ height: 225px; flex: none; }

  .case-detail__statement{ font-size: 20px; line-height: 1.6; }

  .workshop-grid{ flex-direction: column; }
  .workshop-card--tall, .workshop-card--short{ width: 100%; height: 270px; }

  .placeholder-box--a{ height: auto; aspect-ratio: 1200 / 1223; }
  .placeholder-box--b{ height: auto; aspect-ratio: 1; }
  .placeholder-box--c{ height: auto; aspect-ratio: 1; }
  .placeholder-box__lottie--desktop{ display: none; }
  .placeholder-box__lottie--mobile{ display: block; }

  .case-detail__section--gap-lg{ gap: 24px; }
  .placeholder-box--heinz-hero{ aspect-ratio: 354 / 168; }
  .placeholder-box--heinz-campaigns{ aspect-ratio: 354 / 341; }
  .placeholder-box--heinz-products{ aspect-ratio: 354 / 314; }
  .placeholder-box--heinz-recipes{ aspect-ratio: 354 / 341; }
  .placeholder-box--heinz-brandvalues{ aspect-ratio: 354 / 341; }

  /* Portfolio stacks (index.html "All projects" + tastemaker.html "up
     next" list): below 900px the scroll-reveal sticky effect turns off
     and cards just flow as a plain vertical list (mirrors the
     desktop-only "md:sticky" fallback pattern). */
  #cardStack,
  #caseCardStack{ height: auto; }
  #cardStack .project-card,
  #caseCardStack .project-card{
    position: relative;
    top: 0;
    height: auto;
    flex-direction: column;
    margin-bottom: 24px;
  }
  #cardStack .project-card:nth-child(4),
  #caseCardStack .project-card:nth-child(4){ margin-bottom: 24px; }
  #cardStack .project-card__media,
  #caseCardStack .project-card__media{ width: 100%; max-width: 100%; height: 167px; }
  #cardStack .project-card__body,
  #caseCardStack .project-card__body{ padding: 20px; gap: 16px; }
  #cardStack .project-card__title,
  #caseCardStack .project-card__title{ font-size: 20px; }
  #cardStack .project-card__desc,
  #caseCardStack .project-card__desc{ font-size: 14px; }
  #cardStack .project-card__cta,
  #caseCardStack .project-card__cta{ width: 100%; align-items: stretch; }
  #cardStack .project-card__cta .btn,
  #caseCardStack .project-card__cta .btn{ width: 100%; justify-content: center; }
  #cardStack .project-card__lock-note{ width: 100%; text-align: center; }
}

@media (max-width: 768px){
  /* Below 768px the .about__grid (stacked since 1180px) leaves .skills__cloud
     too narrow for the desktop-tuned left/top % positions: the absolutely
     positioned, infinitely-animating .tag pills overlap and clip each other.
     Flatten into a static wrapped list before that happens. */
  .skills__cloud{ height: auto; min-height: 320px; display: flex; flex-wrap: wrap; align-content: flex-start; padding: 16px; }
  .tag{ position: static; margin: 4px; transform: none !important; animation: none !important; }
}

@media (max-width: 640px){
  .case-hero{ padding-left: 24px; padding-right: 24px; gap: 40px; }
  .hero, .portfolio, .about, .contact{ padding-left: 20px; padding-right: 20px; }
  .hero{ padding-left: 24px; padding-right: 24px; }
  .case-detail__section{ padding-left: 24px; padding-right: 24px; }
  .navbar__link{ padding: 8px 12px; font-size: 13px; }

  .hero__title{ font-size: 44px; letter-spacing: -0.5px; }
  .hero__subtitle{ font-size: 16px; line-height: 1.6; }

  .case-hero__title{ font-size: 48px; letter-spacing: 0; }
  .section-title{ font-size: 40px; }
  .contact__title{ font-size: 34px; }
}
