/* ==========================================================================
   CPM SYSTEMS — 2026-27 additions
   Header CTAs, hero video + slideshow, corporate video, certifications,
   product range cards, E-Brochure modal, contact map. Loaded after
   responsive.css so it can adjust the base breakpoints.
   ========================================================================== */

/* Header: two CTAs ------------------------------------------------------- */
.header-ctas { display: flex; align-items: center; gap: .6rem; flex: none; }
.header-cta--brochure { --btn-fg: currentColor; --btn-bd: currentColor; }
.site-header.is-solid .header-cta--brochure { --btn-fg: var(--primary); --btn-bd: var(--border); backdrop-filter: none; }
.site-header.is-solid .header-cta--brochure:hover { --btn-bg: var(--primary); --btn-fg: var(--white); --btn-bd: var(--primary); }
.header-cta--brochure .icon { width: 1.05em; height: 1.05em; }
.dropdown a small { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: .1rem; }

/* Hero: corporate video only (dark brand colour until it starts) ------------------------ */
.hero .hero__title { font-size: clamp(2.3rem, 1.1rem + 3.9vw, 4.6rem); }
.hero__content { max-width: 820px; }
.hero__media--video { background: #0B2723; }
.hero__video { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.hero__video.is-ready { opacity: 1; }
.hero__video iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100%, 177.78vh); height: max(100%, 56.25vw);
  transform: translate(-50%, -50%) scale(1.18);
}

/* Corporate video (click-to-play) and modal ----------------------------- */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.video-embed img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform 1s var(--ease), opacity .4s; }
.video-embed:hover img { transform: scale(1.03); opacity: .85; }
.video-embed iframe, .video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--secondary); color: var(--dark); box-shadow: 0 0 0 12px rgba(214,168,95,.25); transition: transform .4s var(--ease), box-shadow .4s;
}
.video-embed__play .icon { width: 38%; height: 38%; fill: currentColor; margin-left: 6%; }
.video-embed__play:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 18px rgba(214,168,95,.2); }
.video-embed__label { position: absolute; left: 1.25rem; bottom: 1.1rem; color: rgba(255,255,255,.85); }
.video-embed.is-playing .video-embed__label { display: none; }
.video-embed__note {
  position: absolute; inset: auto 1rem 1rem; z-index: 2; display: grid; gap: .3rem; padding: 1rem 1.25rem;
  background: rgba(8,28,25,.92); color: var(--white); border-radius: var(--radius-sm); font-size: .9rem;
}
.video-embed__note span { color: rgba(255,255,255,.75); }
.video-modal__frame .video-embed__note { inset: 50% 1rem auto; transform: translateY(-50%); }
.video-embed.is-local .video-embed__play { display: none; }
.video-modal__frame {position: relative; width: min(1200px, 92vw); aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-sm); overflow: hidden; }
[data-video-open] .icon { fill: currentColor; }

/* Founder's journey ------------------------------------------------------- */
.journey__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 1100px) { .journey__grid { grid-template-columns: 1.65fr 1fr; } }
.journey__yt { display: inline-flex; margin-top: 1rem; color: var(--secondary); }
.journey__who { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.journey__who strong { display: block; color: var(--white); font-family: var(--font-display); font-stretch: 112%; font-size: 1.1rem; }
.journey__who span { font-size: .85rem; color: rgba(255,255,255,.6); }
.journey__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--secondary); }
.journey__photo--ph { display: grid; place-items: center; flex: none; background: rgba(214,168,95,.15); color: var(--secondary); font-family: var(--font-display); font-stretch: 115%; font-weight: 600; font-size: 1.4rem; letter-spacing: .02em; }
.journey__quote {margin: 0 0 1.75rem; padding-left: 1.25rem; border-left: 2px solid var(--secondary); }
.journey__quote p { color: var(--white); font-size: 1.1rem; line-height: 1.55; }
.journey__quote cite { display: block; margin-top: .6rem; font-style: normal; font-size: .85rem; color: rgba(255,255,255,.6); }
.journey__steps { display: grid; gap: 0; border-left: 1px solid var(--line-dark); }
.journey__steps li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.journey__steps li::before { content: ""; position: absolute; left: -5px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--secondary); }
.journey__year { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); }
.journey__steps p { margin-top: .25rem; color: rgba(255,255,255,.78); font-size: .95rem; }

/* Certifications --------------------------------------------------------- */
.certs-band { border-block: 1px solid var(--border); }
.certs-band .container { display: grid; gap: 2rem; }
.certs-band__head { display: grid; gap: .5rem 3rem; align-items: end; }
.certs-band__head .eyebrow { margin-bottom: 0; }
.certs-band__head .muted { font-size: .95rem; max-width: 60ch; }
@media (min-width: 900px) { .certs-band__head { grid-template-columns: auto 1fr; } .certs-band__head .muted { justify-self: end; text-align: right; } }

/* One card per certificate */
/* flex (not grid) so an incomplete last row sits centred */
.certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.certs > .cert { flex: 0 1 calc((100% - 3rem) / 4); min-width: 255px; }
@media (max-width: 640px) { .certs > .cert { flex: 1 1 100%; min-width: 0; } }
.cert {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.cert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--secondary); transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 10px 30px rgba(11,39,35,.1)); border-color: rgba(214,168,95,.55); }
.cert:hover::before { transform: scaleY(1); }
.cert__logo { flex: none; width: 88px; height: 68px; display: grid; place-items: center; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.cert__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cert__badge { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; line-height: 1; border-radius: 8px; background: linear-gradient(145deg, var(--primary), #0B2723); color: #fff; }
.cert__badge b { font-size: 1rem; font-weight: 800; letter-spacing: .02em; }
.cert__badge small { margin-top: .3rem; font-size: 11px; font-weight: 600; color: var(--secondary); letter-spacing: .02em; }
.cert__txt { display: grid; gap: .2rem; min-width: 0; }
.cert__txt strong { font-size: 1rem; font-weight: 700; color: var(--dark); line-height: 1.25; }
.cert__txt span { font-size: .85rem; color: var(--muted); line-height: 1.45; }


/* Footer: compact chips (logo + name) */
.footer-certs { display: grid; gap: .9rem; padding: 1.5rem; margin-bottom: 3rem; background: var(--white); border-radius: var(--radius); }
.footer-certs .mono { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.certs--compact { gap: .6rem; }
.certs--compact > .cert { flex: 0 1 calc((100% - 4.2rem) / 8); min-width: 175px; }
.certs--compact .cert { padding: .55rem .7rem; gap: .7rem; }
.certs--compact .cert__logo { width: 60px; height: 46px; padding: 4px; border-radius: 9px; }
.certs--compact .cert__badge b { font-size: .8rem; }
.certs--compact .cert__badge small { font-size: 9.5px; margin-top: .2rem; }
.certs--compact .cert__txt strong { font-size: .88rem; }
@media (max-width: 480px) { .certs--compact > .cert { flex: 1 1 calc(50% - .3rem); min-width: 0; } .certs--compact .cert__logo { width: 52px; height: 40px; } }

/* Product range cards ---------------------------------------------------- */
.pcard .frame { background: #F4F4F1; }
.frame.frame--contain { background: var(--white); }
.frame.frame--contain img { object-fit: contain; padding: 4%; }
.pcard__count, .new-badge {
  position: absolute; left: .75rem; top: .75rem; z-index: 1; padding: .3rem .6rem; border-radius: 100px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(11,39,35,.85); color: var(--white);
}
.new-badge { left: auto; right: .75rem; background: var(--secondary); color: var(--dark); font-weight: 600; }
.pd__gallery .frame.frame--contain img { padding: 2%; }
.gallery-grid.gallery-grid--even { grid-auto-rows: auto; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery-grid--even .gallery-item .frame { aspect-ratio: 4 / 3; height: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.gallery-grid--even .gallery-item img { object-fit: contain; padding: 4%; }
.craft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.craft-grid .frame { aspect-ratio: 4 / 5; border-radius: var(--radius); }

/* Products page: all-products vs single-category view ------------------- */
[data-allonly][hidden], [data-back-all][hidden], [data-ph-crumbcat][hidden] { display: none !important; }
.products-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section--tight-top {padding-top: clamp(2.5rem, 5vw, 4rem); }
.link-arrow--back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--primary); }
.link-arrow--back .icon { width: 1.1em; height: 1.1em; }
.page-hero [data-ph-lead] .mono { display: block; margin-top: .75rem; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); }

/* Category grid for 5 categories ---------------------------------------- */
.cat-grid.cat-grid--5 { grid-auto-rows: 190px; }
.cat-grid--5 .cat-card:nth-child(n) { grid-column: span 4; grid-row: span 2; }
.cat-grid--5 .cat-card:nth-child(1), .cat-grid--5 .cat-card:nth-child(2) { grid-column: span 6; grid-row: span 3; }
.cat-grid--5 .cat-card:nth-child(n) p { display: block; }

/* Contact: map + people -------------------------------------------------- */
.map-embed { position: relative; margin-top: 2rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; min-height: 320px; background: var(--light); box-shadow: var(--shadow); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__btn { position: absolute; right: 1rem; bottom: 1rem; }
.contact-line { display: grid; margin-bottom: .55rem; }
.contact-line .muted { font-size: .8rem; }
.contact-card .icon { vertical-align: -.15em; }

/* E-Brochure modal ------------------------------------------------------- */
.modal.brochure-modal { background: rgba(6,18,16,.82); padding: 1rem; }
.brochure {
  position: relative; display: grid; grid-template-columns: 1fr; width: min(940px, 100%); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow: auto;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.98); transition: transform .5s var(--ease);
}
.brochure-modal.is-open .brochure { transform: none; }
.brochure .modal__close { position: absolute; top: .75rem; right: .75rem; z-index: 2; }
.brochure__media { position: relative; min-height: 180px; background: var(--primary-deep); overflow: hidden; }
.brochure__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.brochure__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,28,25,.92), rgba(8,28,25,.15) 70%); }
.brochure__media-copy { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; z-index: 1; color: var(--white); display: grid; gap: .4rem; }
.brochure__media-copy .mono { color: var(--secondary); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.brochure__media-copy strong { font-family: var(--font-display); font-stretch: 112%; font-size: 1.35rem; line-height: 1.2; font-weight: 560; }
.brochure__body { padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.brochure__body h2 { font-size: var(--fs-xl); margin-block: .4rem .6rem; }
.brochure__body .muted { font-size: .92rem; }
.form-grid.form-grid--1 { grid-template-columns: 1fr; margin-block: 1.25rem; }
.brochure__status { min-height: 1.2em; margin-block: .85rem .5rem; font-size: .88rem; color: var(--primary); }
.brochure__status.err { color: #B42318; }
.brochure__status a { text-decoration: underline; }
.brochure__done { display: grid; gap: .75rem; justify-items: start; padding-block: 1rem; }
.brochure__done[hidden], .brochure form[hidden] { display: none; }
.brochure__done > svg { width: 72px; height: 72px; }
.brochure__done .c { fill: none; stroke: var(--secondary); stroke-width: 4; }
.brochure__done .t { fill: none; stroke: var(--primary); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 768px) { .brochure { grid-template-columns: .9fr 1.1fr; } }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1500px) {
  .header-cta--brochure .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-cta--brochure { padding-inline: .75rem; }
}
@media (max-width: 1366px) { .nav__link { padding-inline: .5rem; font-size: .86rem; } }
@media (max-width: 1280px) {
  .nav, .header-cta, .header-ctas { display: none; }
  .burger { display: block; margin-left: auto; }
}
@media (max-width: 1100px) {
  .cat-grid--5 .cat-card:nth-child(n) { grid-column: span 3; grid-row: span 2; }
  .cat-grid--5 .cat-card:nth-child(1) { grid-column: span 6; grid-row: span 3; }
  .craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-embed { aspect-ratio: 4 / 3; }
}
@media (max-width: 767px) {
  .cat-grid--5 .cat-card:nth-child(n) { grid-column: auto; grid-row: auto; }
  .footer-certs { padding: 1rem; overflow-x: auto; }
  .footer-certs .certs-img { min-width: 640px; }
  .certs-band__strip { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .certs-band__strip .certs-img { min-width: 720px; }
  .brochure__media { min-height: 140px; }
  .map-embed { aspect-ratio: 1 / 1; min-height: 0; }
}

/* Made in India badge (trust bar) */
.trust__badge { display: block; height: clamp(58px, 3.2rem + 1.2vw, 78px); width: auto; max-width: 100%; object-fit: contain; margin-bottom: .2rem; }
/* Lead form success — immediate assistance line */
.form-success p.form-success__help { margin-top: -.5rem; font-size: .95rem; color: var(--text); }
.form-success__help a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* E-Brochure thank-you window: download list + WhatsApp */
.brochure__done { justify-items: stretch; }
.brochure__done:focus { outline: none; }
.brochure__done h2 { margin: 0; }
.brochure-dl-list { display: grid; gap: .6rem; margin-block: .25rem; }
.brochure-dl { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--light); transition: border-color .25s, background .25s, transform .25s; }
.brochure-dl:hover, .brochure-dl:focus-visible { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.brochure-dl > span:nth-child(2) { flex: 1; display: grid; }
.brochure-dl strong { color: var(--dark); font-size: .98rem; }
.brochure-dl small { color: var(--muted); font-size: .82rem; }
.brochure-dl__icon, .brochure-dl__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; }
.brochure-dl__icon { background: var(--white); color: #B42318; box-shadow: var(--shadow-sm); }
.brochure-dl__go { background: var(--primary); color: var(--white); }
.brochure__help { font-size: .92rem; color: var(--text); }
.brochure__help a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.brochure__done-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn--wa { --btn-bg: #25D366; --btn-fg: #fff; --btn-bd: #25D366; }
.btn--wa:hover { --btn-bg: #1EB857; --btn-bd: #1EB857; }
.brochure-dl .icon { width: 20px; height: 20px; }

/* Made In-House: then (first factory) → today */
.mfg-media--journey { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; }
.mfg-era { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.mfg-era .frame { aspect-ratio: 4 / 3; border-radius: 0; margin: 0; }
.mfg-era .frame img { width: 100%; height: 100%; object-fit: cover; }
.mfg-era figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: .2rem; padding: 3.5rem 1.4rem 1.25rem;
  background: linear-gradient(to top, rgba(6,18,16,.92), rgba(6,18,16,.55) 55%, transparent); color: rgba(255,255,255,.8); font-size: .92rem;
}
.mfg-era figcaption strong { color: #fff; font-size: 1.15rem; font-weight: 700; }
.mfg-era__yr { justify-self: start; padding: .2rem .65rem; border-radius: 999px; background: var(--secondary); color: var(--dark); font-size: .8rem; font-weight: 700; letter-spacing: .04em; margin-bottom: .3rem; }
.mfg-era__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(214,168,95,.5); color: var(--secondary); }
@media (max-width: 991px) {
  .mfg-media--journey { grid-template-columns: 1fr; }
  .mfg-era__arrow { justify-self: center; transform: rotate(90deg); }
}

/* Associates — two-row logo marquee (row 2 runs the other way) */
.associates .container { display: grid; gap: 1.25rem; }
.associates__head { display: grid; justify-items: center; text-align: center; gap: .4rem; margin-bottom: .75rem; }
.associates__head .eyebrow { margin-bottom: 0; }
.associates__head .muted { font-size: .95rem; max-width: 60ch; }
.associates .logos__track { gap: 1rem; padding-block: .35rem; animation-duration: 55s; }
.associates .logos--reverse .logos__track { animation-direction: reverse; }
.assoc { flex: none; display: grid; place-items: center; width: 180px; height: 92px; padding: .8rem 1.1rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.assoc:hover { transform: translateY(-3px); border-color: rgba(214,168,95,.55); box-shadow: 0 10px 26px rgba(11,39,35,.1); }
.assoc img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 640px) { .assoc { width: 140px; height: 74px; padding: .6rem .8rem; } }

/* Infrastructure — machinery lines (real machines, photo cards) */
.mline { margin-top: 2.75rem; }
.mline__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark); }
.mline__head h3 { color: #fff; font-size: var(--fs-lg); }
.mline__head p { color: rgba(255,255,255,.7); font-size: .95rem; margin-top: .2rem; }
.mline__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(214,168,95,.14); color: var(--secondary); }
.mline__icon .icon { width: 22px; height: 22px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.mcard { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.mcard:hover { transform: translateY(-4px); border-color: rgba(214,168,95,.55); box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.mcard__img { position: relative; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.mcard__img img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; transition: transform .5s var(--ease); }
.mcard:hover .mcard__img img { transform: scale(1.05); }
.mcard__body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: .3rem; }
.mcard__body h4 { color: #fff; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.mcard__body p { color: rgba(255,255,255,.68); font-size: .86rem; line-height: 1.5; }

/* Photo gallery — every tile the same horizontal (3:2) size */
.gallery-grid--uniform { grid-auto-rows: auto; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.gallery-grid--uniform .gallery-item { grid-row: auto; grid-column: auto; border-radius: 12px; background: var(--light); }
.gallery-grid--uniform .gallery-item .frame { aspect-ratio: 3 / 2; height: auto; }
.gallery-grid--uniform .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1199px) { .gallery-grid--uniform { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .gallery-grid--uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } }
/* chair cut-outs on white: show the whole product inside the same 3:2 tile */
.gallery-grid--uniform .gallery-item--fit { background: #fff; border: 1px solid var(--border); }
.gallery-grid--uniform .gallery-item--fit img { object-fit: contain; padding: 6%; }
.gallery-grid--uniform .gallery-item--fit .frame { background: #fff; }

/* Instagram reels (gallery) */
.reels__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; justify-items: center; }
.reel { width: 100%; max-width: 360px; }
.reel .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; border-radius: 14px !important; border: 1px solid var(--border) !important; box-shadow: none !important; }
.reel__fallback { display: grid; place-items: center; gap: .6rem; aspect-ratio: 9 / 14; padding: 1.5rem; text-align: center; color: var(--primary); font-weight: 600; background: linear-gradient(160deg, #fdf3e3, #f6f6f2); border-radius: 14px; }
.reel__fallback .icon { width: 42px; height: 42px; color: #C13584; }

/* Project Glimpse — Projects / Reels tabs */
.view-tabs { display: inline-flex; gap: .35rem; padding: .35rem; margin-bottom: 1.75rem; background: var(--light); border: 1px solid var(--border); border-radius: 999px; }
.view-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.35rem; border-radius: 999px; font-weight: 600; color: var(--text); transition: background .25s, color .25s; }
.view-tab .icon { width: 18px; height: 18px; }
.view-tab[aria-selected="true"] { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(11,39,35,.2); }
.view-tab__count { font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; background: rgba(214,168,95,.25); }
.view-tab[aria-selected="true"] .view-tab__count { background: var(--secondary); color: var(--dark); }
.preels[hidden], #projects-panel[hidden] { display: none; }
.preels__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1.1rem; }
.preel { display: grid; gap: .6rem; }
.preel h3 { font-size: .92rem; font-weight: 600; line-height: 1.4; color: var(--dark); }
.preel__play { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #0B2723; cursor: pointer; }
.preel__play img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.preel__play:hover img { transform: scale(1.04); opacity: .9; }
.preel__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,18,16,.55), transparent 45%); pointer-events: none; }
.preel__play.is-playing::after { display: none; }
.preel__btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--primary); box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: transform .3s var(--ease); }
.preel__play:hover .preel__btn { transform: translate(-50%, -50%) scale(1.08); }
.preel__btn .icon { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.preel__play iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.preels__more { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
@media (max-width: 640px) { .preels__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } .preel h3 { font-size: .82rem; } .preel__btn { width: 46px; height: 46px; } .view-tab { padding: .6rem 1rem; } }
