@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F7F6F3;
  --dark: #2D2D2D;
  --text-sec: #6B7280;
  --text-muted: #9CA3AF;
  --blue: #3D5A80;
  --blue-light: #8FAABE;
  --red: #C53D43;
  --border: #E8E6E1;
  --font: 'Sora', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --pad: 64px;
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }

/* ─── PAGE WRAPPER ─── */
.page {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ─── SHARED LABEL ─── */
.label-mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--blue);
}

/* ───────────────────────────────
   MAIN PORTFOLIO — HEADER
─────────────────────────────── */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.nav-logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--dark);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--dark);
}
.nav-links a.contact { color: var(--blue); }

/* ───────────────────────────────
   HERO
─────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.hero-name {
  font-size: 72px;
  font-weight: 300;
  letter-spacing: -1.5px;
  text-align: center;
  color: var(--dark);
}
.hero-subtitle {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-align: center;
  color: var(--text-sec);
}
.hero-accent {
  width: 60px;
  height: 2px;
  background: var(--red);
}
.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 1306px;
  height: 532px;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-wrap img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.hero-tagline {
  position: relative;
  z-index: 1;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: #191e29;
  max-width: 674px;
  padding: 0 24px;
}

/* ── TextRotate pill ── */
.rotate-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2B3A55;
  color: #F7F6F3;
  border-radius: 8px;
  padding: 4px 20px;
  position: relative;
  overflow: hidden;
  vertical-align: baseline;
  line-height: inherit;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rotate-inner {
  display: inline-flex;
  white-space: nowrap;
  overflow: hidden;
}

.rotate-char {
  display: inline-block;
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.rotate-char.exit {
  transform: translateY(-120%);
  opacity: 0;
}

.rotate-char.enter {
  transform: translateY(100%);
  opacity: 0;
  transition: none;
}

.rotate-measure {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

/* ───────────────────────────────
   ABOUT
─────────────────────────────── */
.about {
  display: flex;
  flex-direction: row;
  gap: 64px;
  padding: 64px var(--pad);
  background: var(--bg);
  width: 100%;
}
.about-portrait {
  position: relative;
  width: 400px;
  max-width: 100%;
  min-width: 0;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-portrait img { object-fit: cover; height: 404px; }
.portrait-label {
  display: block;
  position: static;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dark);
}
.about-bio {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}
.about-heading {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
.about-accent {
  width: 40px;
  height: 2px;
  background: var(--red);
}
.about-bio p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sec);
}
.ask-heading {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
.ask-input {
  width: 100%;
  max-width: 613px;
  height: 40px;
  border-radius: 16px;
  border: 1.5px solid #d9d7d7;
  background: var(--bg);
  padding: 0 16px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--dark);
  outline: none;
  cursor: pointer;
}
.ask-input:focus { border-color: var(--blue); }

/* ───────────────────────────────
   SELECTED WORK
─────────────────────────────── */
.work {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
  padding: 80px var(--pad);
  background: var(--bg);
  width: 100%;
}
.work-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 413px;
  max-width: 100%;
  min-width: 0;
}
.work-title {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
}
.work-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-sec);
}
.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #2b3a55;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--bg);
  width: fit-content;
  transition: opacity 0.2s;
}
.view-btn:hover { opacity: 0.85; }

/* ─── WORK CARDS ACCORDION ─── */
.cards-right {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex: 1;
  height: 450px;
}

.work-card {
  position: relative;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  flex: 1;
  min-width: 60px;
  transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.work-card.active {
  flex: 5;
}

.cards-right:hover .work-card {
  flex: 1;
}

.cards-right:hover .work-card:hover {
  flex: 5;
}

.work-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}

.work-card-label {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 400;
  color: var(--bg);
  white-space: nowrap;
  padding: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-card:not(.active) .work-card-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ───────────────────────────────
   SERVICES
─────────────────────────────── */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 64px var(--pad);
  background: var(--dark);
  width: 100%;
  min-height: 615px;
}
.services-hdr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: center;
}
.services-title {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--bg);
}
.services-sub {
  font-size: 14px;
  color: var(--text-muted);
}
.table-wrap {
  width: 800px;
  max-width: 100%;
}
.table-top {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  background: var(--bg);
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
}
.table-handle {
  width: 60px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.table-red-line {
  height: 3px;
  background: var(--red);
}
.table-cols {
  display: flex;
  flex-direction: row;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.table-col {
  flex: 0 0 auto;
  width: 25%;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  min-height: 220px;
  overflow: hidden;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.table-col:last-child { border-right: none; }

.table-col.active {
  width: 52%;
  cursor: default;
}
.table-col:not(.active) {
  width: 16%;
}

.col-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.col-hdr span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col-hdr svg { width: 14px; height: 14px; color: var(--text-muted); }

.col-body {
  overflow: hidden;
  max-height: 300px;
  opacity: 1;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease 0.1s;
}

.col-body.hidden {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
}

.col-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sec);
  margin-bottom: 16px;
}
.pill-wrap { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.pill-row { display: flex; gap: 10px; }
.pill {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dark);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  white-space: nowrap;
}

/* ───────────────────────────────
   CTA
─────────────────────────────── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px var(--pad);
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid transparent;
}
.cta-bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.06);
  z-index: 0;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: #000000b3;
  z-index: 1;
}
.cta-heading {
  position: relative;
  z-index: 2;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1px;
  text-align: center;
  color: var(--red);
}
.cta-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--bg);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--bg);
  transition: opacity 0.2s;
}
.cta-btn:hover { opacity: 0.8; }

/* ───────────────────────────────
   FOOTER
─────────────────────────────── */
footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 48px var(--pad);
  background: var(--dark);
  width: 100%;
}
.foot-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-name { font-size: 18px; font-weight: 500; color: var(--bg); }
.foot-tag { font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.foot-copy { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }

.foot-right { display: flex; gap: 40px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col-head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.foot-col a,
.foot-col span { font-size: 13px; color: var(--bg); display: block; }
.foot-col a.email { color: var(--blue); }

/* ───────────────────────────────
   PROJECT PAGES — NAV
─────────────────────────────── */
.proj-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  width: 100%;
}
.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--blue-light);
}
.back-link svg { width: 16px; height: 16px; }
.proj-logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--dark);
}

/* ───────────────────────────────
   PROJECT PAGES — HERO IMAGE
─────────────────────────────── */
.proj-hero {
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border);
}
.proj-hero img { object-fit: cover; }

/* ───────────────────────────────
   PROJECT PAGES — INFO
─────────────────────────────── */
.proj-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px var(--pad);
  width: 100%;
}
.proj-title {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1px;
}
.proj-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-sec);
  max-width: 720px;
}
.meta-row {
  display: flex;
  flex-direction: row;
  gap: 48px;
  flex-wrap: wrap;
}
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.meta-value { font-size: 13px; color: var(--dark); }

/* ───────────────────────────────
   PROJECT PAGES — GALLERY
─────────────────────────────── */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 var(--pad);
  width: 100%;
}
.gallery-full {
  width: 100%;
  border-radius: 2px;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 300px;
}
.gallery-row {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
}
.gallery-row > .gallery-img {
  flex: 1;
}
/* Cover row: respect inline widths instead of equal flex */
.gallery-img {
  border-radius: 2px;
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 300px;
}

/* ─── PACK SPLIT (packaging page — 50/50 mockup + text) ─── */
.pack-split {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
  min-height: 400px;
}
.pack-split-img {
  flex: 1;
  border-radius: 2px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.pack-split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pack-split-text {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.pack-split-text p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-sec);
}
.gallery-img img { object-fit: cover; width: 100%; height: 100%; }

/* ───────────────────────────────
   PROJECT PAGES — NEXT
─────────────────────────────── */
.next-proj {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 48px var(--pad);
  width: 100%;
}
.next-proj a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-light);
  transition: opacity 0.2s;
}
.next-proj a:hover { opacity: 0.75; }
.next-proj svg { width: 16px; height: 16px; }

/* ───────────────────────────────
   RESPONSIVE — 1200px
─────────────────────────────── */
@media (max-width: 1200px) {
  :root { --pad: 40px; }
  .hero-name { font-size: 56px; }
  .hero-image-wrap { width: 100%; height: 420px; }
  .work { flex-direction: column; }
  .work-header { width: 100%; min-width: unset; }
  .cards-right { height: 400px; }
  .table-wrap { width: 100%; }
}

/* ───────────────────────────────
   RESPONSIVE — 900px (tablets)
─────────────────────────────── */
@media (max-width: 900px) {
  :root { --pad: 24px; }

  /* Header */
  .nav-links { gap: 20px; }

  /* Hero */
  .hero { padding: 48px var(--pad); gap: 16px; }
  .hero-name { font-size: 40px; }
  .hero-image-wrap { height: 320px; }
  .hero-tagline { font-size: 24px; max-width: 100%; padding: 0 16px; }
  .rotate-pill { padding: 2px 12px; border-radius: 6px; }

  /* About */
  .about { flex-direction: column; gap: 32px; }
  .about-portrait { width: 100%; min-width: unset; }
  .about-portrait img { height: 320px; }
  .ask-heading { font-size: 24px; }
  .ask-input { width: 100%; }

  /* Selected Work */
  .work { padding: 48px var(--pad); gap: 32px; }
  .work-title { font-size: 36px; }
  .cards-right { height: 300px; width: 100%; }
  .work-card.active { flex: 3; }
  .cards-right:hover .work-card:hover { flex: 3; }

 /* Services */
  .services { padding: 48px var(--pad); gap: 32px; }
  .services-title { font-size: 36px; }
  .table-cols { flex-direction: column; }
  .table-col {
    width: 100% !important;
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: unset;
    padding: 14px 16px;
    gap: 0;
    transition: gap 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .table-col.active {
    gap: 16px;
    padding: 16px;
  }
  .table-col:last-child { border-bottom: none; }
  .col-body {
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease 0.05s;
  }
  .col-body.hidden {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease;
  }

  /* CTA */
  .cta { padding: 48px var(--pad); }
  .cta-heading { font-size: 36px; }

  /* Footer */
  footer { flex-direction: column; gap: 32px; }
  .foot-right { flex-wrap: wrap; gap: 24px; }

  /* Project pages */
  .proj-title { font-size: 36px; }
  .proj-info { padding: 32px var(--pad); gap: 20px; }
  .meta-row { gap: 24px; }

  /* Gallery — override inline styles */
  .gallery { padding: 0 var(--pad); gap: 12px; }
  .gallery-row { flex-direction: column; }
  .gallery-img { width: 100% !important; height: auto !important; min-height: 200px; flex-shrink: 0; }
  .gallery-full { height: auto !important; min-height: 200px; }
  .gallery-row > div { width: 100% !important; height: auto !important; min-height: 200px; }
  .gallery-row > div img { height: auto !important; min-height: 200px; }

  /* Numra overrides */
  .numra-logo-row { gap: 12px; flex-direction: row !important; }
  .numra-logo-tile { height: 160px !important; min-width: 0; }
  .numra-logo-row > .numra-logo-tile { width: auto !important; min-height: unset; }

  /* Chat/email modals */
  .chat-modal { width: 90vw; }
  .email-modal { width: 90vw; }

  /* Packaging 50/50 split — stack on tablet */
  .pack-split {
    flex-direction: column;
    min-height: unset;
  }
  .pack-split-img {
    min-height: 300px;
  }
  .pack-split-text {
    padding: 16px;
  }
}

/* ───────────────────────────────
   RESPONSIVE — 600px (phones)
─────────────────────────────── */
@media (max-width: 600px) {
  :root { --pad: 16px; }

  /* Header — stack or shrink */
  .main-nav { padding: 16px var(--pad); }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }

  /* Hero */
  .hero { padding: 32px var(--pad); gap: 12px; }
  .hero-name { font-size: 28px; letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 12px; letter-spacing: 1px; }
  .hero-accent { width: 40px; }
  .hero-image-wrap { height: 240px; border-radius: 8px; }
  .hero-tagline { font-size: 18px; line-height: 1.4; }
  .rotate-pill { padding: 2px 10px; border-radius: 5px; font-size: inherit; }

  /* About */
  .about { padding: 32px var(--pad); gap: 24px; }
  .about-portrait img { height: 260px; }
  .about-heading { font-size: 24px; }
  .about-bio p { font-size: 13px; }
  .ask-heading { font-size: 22px; }
  .ask-input { height: 44px; border-radius: 12px; font-size: 14px; }

  /* Selected Work — narrow bars that expand on tap */
  .work { padding: 32px var(--pad); gap: 24px; }
  .work-title { font-size: 28px; }
  .work-desc { font-size: 13px; }
  .cards-right {
    flex-direction: column;
    height: auto;
    gap: 8px;
    width: 100%;
    flex: none;
  }
  .work-card {
    flex: unset !important;
    height: 80px;
    min-width: unset;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .work-card.active {
    flex: unset !important;
    height: 220px;
  }
  .cards-right:hover .work-card { flex: unset !important; }
  .cards-right:hover .work-card:hover { flex: unset !important; }
  .cards-right:hover .work-card.active { height: 220px; }
  .work-card:not(.active) .work-card-label {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .work-card > img {
    object-position: center center;
  }

  /* Services */
  .services { padding: 32px var(--pad); gap: 24px; min-height: unset; }
  .services-title { font-size: 28px; }
  .table-col { padding: 16px; }
  .col-hdr span { font-size: 12px; }
  .col-desc { font-size: 12px; }
  .pill { font-size: 11px; padding: 6px 12px; }
  .pill-row { flex-wrap: wrap; }

  /* CTA */
  .cta { padding: 48px var(--pad); }
  .cta-heading { font-size: 28px; }

  /* Footer */
  footer { padding: 32px var(--pad); gap: 24px; }
  .foot-name { font-size: 16px; }
  .foot-right { flex-direction: column; gap: 20px; }

  /* Project pages */
  .proj-nav { padding: 16px var(--pad); }
  .proj-hero { height: auto !important; }
  .proj-hero img { height: auto !important; min-height: 180px; }
  .proj-info { padding: 24px var(--pad); }
  .proj-title { font-size: 28px; }
  .proj-desc { font-size: 13px; }
  .meta-row { flex-direction: column; gap: 16px; }
  .next-proj { padding: 32px var(--pad); }

  /* Gallery — phone sizes */
  .gallery { gap: 8px; }
  .gallery-img { min-height: 160px; }
  .gallery-full { min-height: 160px; }

  /* Numra */
  .numra-logo-row { gap: 8px; }
  .numra-logo-tile { height: 120px !important; }

  /* Chat modal — mobile */
  .chat-modal {
    width: 92vw;
    max-width: 92vw;
    max-height: 80vh;
    border-radius: 16px;
  }
  .chat-messages {
    min-height: 120px;
    max-height: 50vh;
    padding: 48px 16px 16px;
  }
  .chat-input-wrap { padding: 12px 16px 20px; }
  .email-modal { width: 92vw; padding: 24px 20px 20px; }
  .email-heading { font-size: 18px; }

  /* Design choices text on packaging page */
  .pack-split-text p { font-size: 12px; }
  .pack-split-text { padding: 12px 8px; }
}

/* ───────────────────────────────
   ASK ME ANYTHING — CHAT MODAL
─────────────────────────────── */
.chat-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.chat-overlay.active {
  display: flex;
}

.chat-modal {
  position: relative;
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font);
  animation: chatSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  padding: 4px;
  border-radius: 4px;
  z-index: 2;
  transition: color 0.2s;
}
.chat-close:hover { color: var(--dark); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 48px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  max-height: 50vh;
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 16px;
  border-radius: 16px 16px 4px 16px;
  max-width: 80%;
  animation: bubbleFadeIn 0.3s ease;
}

.chat-bubble-ai {
  align-self: flex-start;
  background: #fff;
  color: var(--dark);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 16px;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid var(--border);
  max-width: 80%;
  animation: bubbleFadeIn 0.3s ease;
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  animation: bubbleFadeIn 0.3s ease;
}
.chat-typing-dot {
  width: 6px;
  height: 6px;
  background: #9CA3AF;
  border-radius: 50%;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

@keyframes bubbleFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  padding: 0 16px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}
.chat-input:focus { border-color: var(--blue); }
.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.chat-send:hover { opacity: 0.85; }
.chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Email CTA Modal ── */
.email-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.email-overlay.active {
  display: flex;
}

.email-modal {
  position: relative;
  width: 400px;
  max-width: 90vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  padding: 32px 28px 28px;
  font-family: var(--font);
  animation: chatSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.email-heading {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 8px;
}

.email-text {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.5;
  margin: 0 0 24px;
}

.email-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.email-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.email-btn-primary:hover { opacity: 0.85; }

.email-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: none;
  color: var(--text-sec);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.email-btn-secondary:hover {
  border-color: #9CA3AF;
  color: var(--dark);
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }