/* Carmela Fashion — Body sections V3 (PDF layout)
   Header/footer chrome styles live in components.css (unchanged). */

/* ===== Hero: cream split — left copy + right vertical photo ===== */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--color-bg);
  color: var(--color-text);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    /* PDF: text ≈ photo width (photo slightly narrower); was 0.95/1.2 too wide */
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.95fr);
    gap: clamp(2.25rem, 4vw, 3.75rem);
    min-height: 0;
    align-items: center;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  margin-inline: 0;
  text-align: left;
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-brown);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  color: var(--color-brown);
  max-width: 12em;
  margin: 0 0 var(--space-4);
  text-shadow: none;
}

.hero__sub {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 32em;
  margin: 0 0 var(--space-6);
  text-shadow: none;
}

.hero .cluster {
  justify-content: flex-start;
  gap: var(--space-3);
}

.hero__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-slot);
  /* PDF hero poster ~5:4 landscape — was 4/5 + vh stretch (too tall) */
  aspect-ratio: 5 / 4;
  min-height: 0;
  max-height: min(28rem, 52vw);
}

@media (min-width: 900px) {
  .hero__media {
    aspect-ratio: 5 / 4;
    min-height: 0;
    max-height: min(28rem, 42vw);
    height: auto;
    align-self: center;
  }
}

.hero__media img,
.hero__media .media-carousel,
.hero__media .media-carousel__track,
.hero__media .media-carousel__slide,
.hero__media .media-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media .media-carousel {
  aspect-ratio: auto;
  height: 100%;
  border-radius: 0;
}

.hero__bg,
.hero__scrim { display: none; }

/* Cap poster width so 5:4 frame doesn't span ultrawide like a banner */
.hero__media,
.about__media {
  width: 100%;
  max-width: 32.5rem;
  justify-self: end;
}

@media (max-width: 899px) {
  .hero__media,
  .about__media {
    max-width: none;
    justify-self: stretch;
  }
}


/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
}

@media (min-width: 800px) {
  .about__grid {
    /* Same column ratio as Hero — PDF side-by-side balance */
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.95fr);
    gap: clamp(2.25rem, 4vw, 3.75rem);
    align-items: start;
  }
}

.about__body .section__title {
  max-width: 14em;
  margin-bottom: var(--space-5);
}

.about__body p {
  color: var(--color-text);
  max-width: 36em;
  margin-bottom: var(--space-4);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.stat {
  text-align: left;
  padding-right: var(--space-4);
  border-right: 1px solid var(--color-border);
}

.stat:last-child {
  border-right: none;
  padding-right: 0;
}

.stat__value {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-medium);
  color: var(--color-brown);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-snug);
}

.about__media {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-slot);
}

.about__media {
  max-height: min(28rem, 42vw);
}

.about__photo,
.about__media > img {
  display: block;
  width: 100%;
  height: 100%;
  /* PDF About frame matches Hero width ~5:4 (not 1:1 square tall) */
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 20%;
  min-height: 0;
  max-height: min(28rem, 42vw);
  border-radius: var(--radius-md);
}

.about__media .media-carousel,
.about__media .img-slot {
  aspect-ratio: 5 / 4;
  min-height: 0;
  max-height: min(28rem, 42vw);
  border-radius: var(--radius-md);
}

/* ===== Where we work ===== */
#markets .section__title {
  max-width: 18em;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
}

@media (min-width: 640px) {
  .markets-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .markets-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
  }
}

.market-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.market-card__flag {
  display: none; /* Vincent: no country flags */
}

.market-card__region {
  display: block;
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-mustard);
  margin-bottom: var(--space-2);
}

.market-card__name {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--color-brown);
  margin: 0;
}

#markets .section__eyebrow,
#markets .section__title {
  text-align: center;
  margin-inline: auto;
}

/* ===== Our two businesses — cream, image ABOVE text ===== */
.biz-section {
  background: var(--color-bg);
  color: var(--color-text);
}

.biz-section .section__eyebrow { color: var(--color-mustard); }
.biz-section .section__title {
  color: var(--color-brown);
  max-width: 16em;
  margin-bottom: var(--space-7);
}

.biz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 800px) {
  .biz-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }
}

.biz-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
}

.biz-card__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-slot);
  aspect-ratio: 16 / 11;
}

.biz-card__media img,
.biz-card__media .media-carousel {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.biz-card__media .media-carousel {
  aspect-ratio: 16 / 11;
}

.biz-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-5) 0 0;
  flex: 1;
  background: transparent;
}

.biz-card__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.biz-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  color: var(--color-brown);
  margin: 0;
}

.biz-card__made {
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-mustard);
  white-space: nowrap;
}

.biz-card__intro {
  font-size: var(--fs-sm);
  color: var(--color-text);
  max-width: none;
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.biz-card__points {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.biz-card__points > div {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.biz-card__points > div:last-child {
  border-bottom: none;
}

.biz-point__title {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-brown);
  margin-bottom: 0.25rem;
}

.biz-point__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: none;
  margin: 0;
}

.biz-card__link {
  margin-top: var(--space-4);
  padding-top: 0;
}

.biz-card__link .text-link {
  color: var(--color-brown);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Footwear expertise ===== */
.expertise-section .section__eyebrow {
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
}

.expertise-section .section__title {
  max-width: 16em;
  margin-bottom: var(--space-7);
  letter-spacing: -0.01em;
  line-height: var(--lh-tight);
}

.expertise-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  align-items: start;
}

@media (min-width: 900px) {
  .expertise-block {
    grid-template-columns: minmax(14rem, 0.85fr) 1.4fr;
    gap: var(--space-7);
  }
}

.expertise-block__region {
  display: block;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-mustard);
  margin-bottom: var(--space-2);
}

.expertise-block__heading {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-medium);
  color: var(--color-brown);
  margin: 0 0 var(--space-5);
}

.expertise-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.expertise-points li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}

.expertise-points li:last-child {
  border-bottom: none;
}

.expertise-points strong {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-brown);
  margin-bottom: 0.25rem;
}

.expertise-points span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-snug);
}

/* China + Myanmar: PDF 3×2 product grids (2 rows) */
.expertise-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .expertise-products {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

.expertise-products--china,
.expertise-products--myanmar {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .expertise-products--china,
  .expertise-products--myanmar {
    grid-template-columns: repeat(3, 1fr); /* 3 cols × 2 rows */
  }
}

.expertise-products--wide {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .expertise-products--wide {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expertise-product {
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.expertise-product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 0.5rem;
}

/* ===== A to Z — white cards on cream (3×2 like PDF) ===== */
.atoz__intro { margin-bottom: var(--space-7); }
.atoz__intro .section__lead { margin-top: var(--space-3); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  border: none;
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  padding: var(--space-5);
  min-height: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.step--empty { display: none !important; }

.step__num {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-mustard);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

.step__title {
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  color: var(--color-brown);
}

.step__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: none;
  margin: 0;
}

/* ===== Quality — full deep-brown band + 5 cells ===== */
.quality-section {
  background: var(--color-brown);
  color: var(--color-text-on-dark);
}

.quality-section .section__eyebrow { color: var(--color-mustard); }
.quality-section .section__title {
  color: #fff;
  max-width: 14em;
  margin-bottom: var(--space-4);
}

.quality-section > .container > .quality__lead {
  color: rgba(245, 242, 232, 0.88);
  max-width: 42em;
  margin-bottom: var(--space-7);
}

.quality-cells {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid rgba(245, 242, 232, 0.28);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (min-width: 640px) {
  .quality-cells { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .quality-cells { grid-template-columns: repeat(5, 1fr); }
}

.quality-cell {
  padding: var(--space-5);
  border-right: 1px solid rgba(245, 242, 232, 0.22);
  border-bottom: 1px solid rgba(245, 242, 232, 0.22);
  min-height: 11rem;
}

@media (min-width: 1100px) {
  .quality-cell { border-bottom: none; }
  .quality-cell:last-child { border-right: none; }
}

.quality-cell__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  height: 1.75rem;
  padding: 0 0.55rem;
  margin-bottom: var(--space-3);
  border-radius: 4px; /* PDF: rectangle, fine radius — not pill */
  background: var(--color-mustard);
  color: var(--color-brown-deep);
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
}

.quality-cell__title {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: #fff;
  margin: 0 0 var(--space-2);
}

.quality-cell__text {
  font-size: var(--fs-sm);
  color: rgba(245, 242, 232, 0.82);
  margin: 0;
  line-height: var(--lh-snug);
}

.quality-cell__text strong {
  color: #fff;
  font-weight: var(--fw-semibold);
}

/* ===== Produce ===== */
#produce,
#contact { position: relative; }

/* ===== Footer — PDF deep-brown chrome (content stays current fused copy) ===== */
.site-footer {
  position: relative;
  background: var(--color-footer-bg);
  color: rgba(245, 242, 232, 0.88);
  padding-block: var(--space-8) var(--space-6);
  border-top: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.35fr 1fr 1.35fr 0.9fr;
    gap: var(--space-6);
  }
}

.footer__logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: var(--space-3);
  background: none;
  box-shadow: none;
  filter: none;
}

.footer__tagline {
  font-size: var(--fs-sm);
  color: rgba(245, 242, 232, 0.78);
  max-width: 22em;
  line-height: var(--lh-relaxed);
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mustard-footer);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: rgba(245, 242, 232, 0.82);
}

.footer__links a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: rgba(245, 242, 232, 0.88);
}

.footer__links a:hover {
  color: var(--color-mustard-footer);
}

.footer__bottom {
  padding-top: var(--space-5);
  border-top: 1px solid rgba(245, 242, 232, 0.18);
  font-size: var(--fs-xs);
  color: rgba(245, 242, 232, 0.65);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-footer .footer__icon {
  color: var(--color-mustard-footer);
}

.site-footer .footer__sep {
  color: rgba(245, 242, 232, 0.45);
}

.site-footer .footer__contact-item {
  color: rgba(245, 242, 232, 0.88);
}

.produce-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  margin-top: var(--space-7);
}

@media (min-width: 800px) {
  .produce-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
  }
}

.produce-card {
  display: flex;
  flex-direction: column;
}

.produce-card__media,
.produce-card .media-carousel {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-slot);
}

.produce-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produce-card__country {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  margin: var(--space-4) 0 var(--space-3);
  color: var(--color-brown);
}

.produce-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: none;
  margin-top: var(--space-4);
}

.produce-card__meta {
  font-size: var(--fs-sm);
  color: var(--color-brown);
  font-weight: var(--fw-semibold);
  margin-top: var(--space-2) !important;
}

/* ===== Team ===== */
.team-section .section__title {
  max-width: 14em;
  margin-bottom: var(--space-3);
}

.team-section__lead {
  max-width: 36em;
  margin-bottom: var(--space-7);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}

@media (min-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.team-card {
  text-align: left;
}

.team-card__photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-slot);
  aspect-ratio: 4 / 5;
  margin-bottom: var(--space-4);
}

.team-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__name {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--color-brown);
  margin: 0 0 var(--space-2);
}

.team-card__role {
  display: block;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-mustard);
  margin-bottom: var(--space-3);
}

.team-card__bio {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
  max-width: 28em;
}

.team-support__label {
  font-size: var(--fs-sm);
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}

.team-support {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .team-support {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-support__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-brown);
}

/* ===== Contact CTA — light beige, centered (PDF) ===== */
.contact-cta-section {
  background: var(--color-bg-soft); /* PDF warm cream ~#EFE3CC */
  border-top: 1px solid var(--color-border-soft);
  border-bottom: none;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  padding-block: var(--space-2);
}

.contact-cta__title {
  color: var(--color-brown);
  margin: 0 0 var(--space-3);
  max-width: none;
  font-size: var(--fs-3xl);
}

.contact-cta__text {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  max-width: 32em;
  margin: 0 auto;
}

.contact-cta .btn { flex-shrink: 0; }

/* ===== Media carousel ===== */
.media-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-slot);
  aspect-ratio: 4 / 3;
}

.about__media .media-carousel { aspect-ratio: 5 / 4; min-height: 0; max-height: min(28rem, 42vw); }

.media-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.media-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.media-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.media-carousel__slide img,
.media-carousel__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--color-slot);
}

.media-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.media-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(245, 242, 232, 0.55);
  cursor: pointer;
}

.media-carousel__dot[aria-selected="true"] {
  background: var(--color-mustard);
}

#projects[hidden],
.projects--hidden { display: none !important; }


/* V3.1 media strips */
.expertise-media-strip,
.team-media-strip {
  margin: 0 0 var(--space-8);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.expertise-media-strip .media-carousel,
.team-media-strip .media-carousel {
  aspect-ratio: 21 / 9;
  min-height: 12rem;
}

@media (max-width: 700px) {
  .expertise-media-strip .media-carousel,
  .team-media-strip .media-carousel {
    aspect-ratio: 16 / 10;
  }
}

.produce-card__media .media-carousel {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  height: 100%;
}


/* ===== Scroll motion (motion.js) — enter/exit replay ===== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(0);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal--from-left {
  transform: translate3d(-28px, 18px, 0) scale(0.985);
}

.reveal--from-right {
  transform: translate3d(28px, 18px, 0) scale(0.985);
}

.reveal--from-up {
  transform: translate3d(0, -22px, 0) scale(0.985);
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* keep old class alias during transition */
.reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 700px) {
  .reveal,
  .reveal--from-left,
  .reveal--from-right,
  .reveal--from-up {
    transform: translate3d(0, 14px, 0);
    transition-duration: 0.4s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--from-left,
  .reveal--from-right,
  .reveal--from-up {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* ===== Mobile professional polish (≤899 / ≤639) — desktop ≥1080 rules untouched ===== */

@media (max-width: 899px) {
  /* Hero */
  .hero {
    padding-block: clamp(2rem, 6vw, 2.75rem);
  }

  .hero__content {
    max-width: none;
  }

  .hero__title {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
    max-width: none;
    margin-bottom: var(--space-3);
  }

  .hero__sub {
    font-size: var(--fs-base);
    margin-bottom: var(--space-5);
  }

  .hero__media {
    aspect-ratio: 4 / 3;
    max-height: min(22rem, 78vw);
  }

  .hero__media .media-carousel {
    max-height: min(22rem, 78vw);
  }

  /* About — fix desktop vw caps that crush phone images */
  .about__grid {
    gap: var(--space-6);
  }

  .about__media,
  .about__photo,
  .about__media > img,
  .about__media .media-carousel,
  .about__media .img-slot {
    max-height: min(22rem, 78vw);
  }

  .about__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding-top: var(--space-5);
  }

  .stat {
    padding-right: var(--space-3);
  }

  .stat__value {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  }

  .stat__label {
    font-size: var(--fs-xs);
  }

  /* Markets — tablet: 2 cols (override 640→3 until 960) */
  .markets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
  }

  .market-card {
    padding: var(--space-5) var(--space-4);
  }

  /* Biz */
  .biz-grid {
    gap: var(--space-6);
  }

  .biz-section .section__title {
    margin-bottom: var(--space-5);
  }

  .biz-card__title {
    font-size: clamp(1.45rem, 5vw, 1.75rem);
  }

  /* Expertise */
  .expertise-section .section__title {
    margin-bottom: var(--space-5);
  }

  .expertise-block {
    gap: var(--space-5);
    margin-bottom: var(--space-7);
  }

  .expertise-block__heading {
    font-size: clamp(1.45rem, 5vw, 1.75rem);
    margin-bottom: var(--space-4);
  }

  .expertise-products {
    gap: var(--space-3);
  }

  .expertise-product img {
    padding: 0.4rem;
  }

  /* AtoZ */
  .atoz__intro {
    margin-bottom: var(--space-5);
  }

  .step {
    padding: var(--space-5) var(--space-4);
  }

  /* Quality — roomy deep-brown cells */
  .quality-section > .container > .quality__lead {
    margin-bottom: var(--space-5);
  }

  .quality-cell {
    padding: var(--space-6) var(--space-5);
    min-height: 0;
  }

  /* Produce / Team */
  .produce-grid {
    gap: var(--space-6);
    margin-top: var(--space-5);
  }

  .team-grid {
    gap: var(--space-6);
    margin-bottom: var(--space-6);
  }

  .team-section__lead {
    margin-bottom: var(--space-5);
  }

  .team-card__photo {
    max-height: 22rem;
  }

  /* Footer — avoid cramped 4-col on mid tablets */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
  }

  .footer__logo {
    height: 40px;
    max-width: 160px;
  }

  .footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  /* Contact CTA */
  .contact-cta {
    gap: var(--space-4);
    align-items: stretch;
  }

  .contact-cta__title {
    font-size: clamp(1.55rem, 6vw, 2rem);
  }

  /* Media strips */
  .expertise-media-strip,
  .team-media-strip {
    margin-bottom: var(--space-6);
  }

  .expertise-media-strip .media-carousel,
  .team-media-strip .media-carousel {
    aspect-ratio: 16 / 10;
    min-height: 10rem;
  }
}

/* Phone focus ≤639 */
@media (max-width: 639px) {
  .hero__eyebrow {
    margin-bottom: var(--space-3);
  }

  .hero__media {
    aspect-ratio: 5 / 4;
    max-height: min(20rem, 85vw);
  }

  .about__media,
  .about__photo,
  .about__media > img,
  .about__media .media-carousel,
  .about__media .img-slot {
    max-height: min(20rem, 85vw);
  }

  /* Stats: stacked fashion cards, not squashed 3-col */
  .about__stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4) 0;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stat:first-child {
    padding-top: 0;
  }

  .stat__value {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }

  .stat__label {
    font-size: var(--fs-sm);
  }

  /* Markets: single column list cards */
  .markets-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .market-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    min-height: 72px;
  }

  .market-card__flag {
  display: none;
}

  .market-card__region {
    margin-bottom: 0.15rem;
  }

  .market-card__name {
    font-size: var(--fs-lg);
  }

  /* Expertise products stay 2-col on phone (already); widen gap */
  .expertise-products,
  .expertise-products--china,
  .expertise-products--myanmar,
  .expertise-products--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
  }

  .expertise-points li {
    padding: var(--space-4) 0;
  }

  .quality-cells {
    grid-template-columns: 1fr;
  }

  .quality-cell {
    padding: var(--space-6) var(--space-5);
    border-right: none;
    min-height: 0;
  }

  .quality-cell:last-child {
    border-bottom: none;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-support {
    grid-template-columns: 1fr;
  }

  .team-support__card {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
  }

  .produce-card__country {
    font-size: clamp(1.45rem, 6vw, 1.75rem);
  }

  .site-footer {
    padding-block: var(--space-7) var(--space-5);
  }

  .footer__heading {
    margin-bottom: var(--space-3);
  }

  .section__lead,
  .about__body p {
    font-size: var(--fs-base);
  }
}

/* Mid tablet 640–899: keep markets 2-col; stats 3-col with air; footer 2×2 */
@media (min-width: 640px) and (max-width: 899px) {
  .markets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-5);
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-support {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quality-cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone hero type — avoid lh-tight clipping */
@media (max-width: 639px) {
  .hero__title {
    line-height: 1.18;
    overflow-wrap: break-word;
  }

  .hero__sub {
    overflow-wrap: break-word;
  }
}
