/*
Theme Name: FOUR20SA Cinematic Freebuff Editable
Theme URI: https://four20sa.co.za/
Description: Editable FOUR20SA cinematic child theme for Inspiro with Freebuff-inspired motion and WooCommerce presentation.
Author: FOUR20SA
Template: inspiro
Version: 8.0.0
Text Domain: four20sa-cinematic
*/
:root{--f20-black:#000;--f20-ivory:#f5f1e8;--f20-stone:#aaa59b;--f20-brass:#b39762;--f20-ease:cubic-bezier(.22,1,.36,1)}
html{scroll-behavior:auto;background:#000}body{background:#000;color:var(--f20-ivory)}.site{position:relative;z-index:1;background:transparent}.site-header{background:rgba(0,0,0,.72)!important;backdrop-filter:blur(14px);border-bottom:1px solid rgba(179,151,98,.15)}
.f20-home{overflow:clip;background:#000}.f20-hero{position:relative;min-height:100svh;background:#000;display:grid;align-items:center;padding:clamp(7rem,12vw,10rem) clamp(1.25rem,6vw,7rem) 5rem;isolation:isolate}.f20-hero-copy{position:relative;z-index:4;max-width:62rem}.f20-kicker,.f20-eyebrow{font:600 .68rem/1.2 Inter,Arial,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:var(--f20-brass)}.f20-title{margin:.7rem 0 1rem;font-family:Fraunces,Georgia,serif;font-size:clamp(4rem,10vw,10.5rem);font-weight:400;line-height:.78;letter-spacing:-.055em;color:var(--f20-ivory)}.f20-title span{display:block}.f20-lede{max-width:34rem;color:#c9c4ba;font:400 clamp(1rem,1.5vw,1.2rem)/1.7 Inter,Arial,sans-serif}.f20-cta{display:inline-flex;margin-top:1.6rem;color:var(--f20-ivory);text-decoration:none;border-bottom:1px solid var(--f20-brass);padding:.45rem 0;font:600 .72rem Inter,Arial,sans-serif;letter-spacing:.15em;text-transform:uppercase}
.f20-orbit{position:absolute;right:-10vw;top:50%;width:min(58vw,760px);aspect-ratio:1;transform:translateY(-50%);z-index:2;perspective:900px;pointer-events:none}.f20-ring{position:absolute;inset:13%;border:1px solid rgba(179,151,98,.72);border-radius:50%;box-shadow:0 0 35px rgba(179,151,98,.08);transform-style:preserve-3d}.f20-ring:nth-child(1){transform:rotateX(68deg) rotateZ(12deg)}.f20-ring:nth-child(2){transform:rotateY(68deg) rotateZ(38deg)}.f20-ring:nth-child(3){inset:23%;transform:rotateX(48deg) rotateY(45deg)}.f20-core{position:absolute;inset:35%;border:1px solid rgba(245,241,232,.3);transform:rotate(45deg);box-shadow:inset 0 0 45px rgba(179,151,98,.09)}
.f20-featured-object{position:absolute;z-index:3;right:7vw;top:50%;width:min(32vw,470px);transform:translate3d(0,-50%,0);filter:drop-shadow(0 35px 50px rgba(0,0,0,.6));pointer-events:none}.f20-featured-object img{display:block;width:100%;height:auto;object-fit:contain;background:transparent!important}.f20-editor{position:relative;z-index:5}.f20-editor>.wp-block-group,.f20-editor>section{padding:clamp(5rem,10vw,10rem) clamp(1.25rem,6vw,7rem)}.f20-editor h1,.f20-editor h2,.f20-editor h3{font-family:Fraunces,Georgia,serif}.f20-editor h2{font-size:clamp(3rem,7vw,7rem);line-height:.92;letter-spacing:-.04em}.f20-editor p{font-family:Inter,Arial,sans-serif;line-height:1.75}.f20-editor .wp-block-cover,.f20-editor .wp-block-group{min-height:min(78vh,850px);display:flex;flex-direction:column;justify-content:center}.f20-shop-scene{padding:clamp(6rem,10vw,10rem) clamp(1.25rem,6vw,7rem);background:var(--f20-ivory);color:#0b0b0b}.f20-shop-head{display:flex;justify-content:space-between;gap:2rem;align-items:end;margin-bottom:4rem}.f20-shop-head h2{margin:0;font:400 clamp(3rem,7vw,7rem)/.9 Fraunces,Georgia,serif;letter-spacing:-.04em}.f20-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.5rem,4vw,5rem)}.f20-product{text-decoration:none;color:inherit;display:block;perspective:1000px}.f20-product-media{aspect-ratio:4/5;display:grid;place-items:center;position:relative}.f20-product-media img{width:88%;height:88%;object-fit:contain;background:transparent!important;filter:drop-shadow(0 28px 25px rgba(0,0,0,.18));will-change:transform}.f20-product h3{font:400 clamp(1.4rem,2.2vw,2.3rem)/1 Fraunces,Georgia,serif;margin:.8rem 0 .4rem}.f20-product .price{font:600 .72rem Inter,Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase}.f20-empty{grid-column:1/-1;padding:4rem 0;border-top:1px solid rgba(0,0,0,.15);font-family:Inter,Arial,sans-serif}.f20-cinematic-layer{position:fixed;inset:0;pointer-events:none;z-index:0}[data-four20-reveal]{opacity:0;transform:translate3d(0,32px,0)}
@media(max-width:800px){.f20-hero{align-items:end;padding-bottom:7rem}.f20-title{font-size:clamp(3.5rem,17vw,6rem)}.f20-orbit{width:105vw;right:-58vw;top:38%;opacity:.65}.f20-featured-object{width:55vw;right:-6vw;top:36%;opacity:.95}.f20-products{grid-template-columns:1fr 1fr}.f20-shop-head{display:block}.f20-editor>.wp-block-group,.f20-editor>section{padding-left:1.25rem;padding-right:1.25rem}}
@media(max-width:520px){.f20-products{grid-template-columns:1fr}.f20-featured-object{width:68vw;right:-15vw}}
@media(prefers-reduced-motion:reduce){[data-four20-reveal]{opacity:1!important;transform:none!important}.f20-ring,.f20-featured-object,.f20-product-media img{animation:none!important;transform:none!important}}

/* v4 — full Freebuff-inspired editable product experience */
.f20-product-experience,.f20-story,.four20-terpenes{background:#050505;color:#f3efe7;position:relative;overflow:hidden}.f20-product-experience{min-height:100vh;display:grid;grid-template-columns:minmax(280px,.75fr) 1.25fr;align-items:center;padding:8vw 6vw;gap:5vw}.f20-exp-copy>span,.f20-story-index,.f20-story-main>span,.f20-craft>span,.four20-terpenes__intro>span{font:600 11px/1.2 Inter,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:#b89a62}.f20-exp-copy h2,.f20-story h2,.four20-terpenes h2{font:400 clamp(48px,7vw,112px)/.88 Fraunces,Georgia,serif;letter-spacing:-.045em;margin:.6em 0 .25em}.f20-exp-copy em,.f20-story em,.four20-terpenes em{font-weight:300}.f20-exp-copy p{max-width:420px;color:#a9a59d}.f20-view-controls{display:flex;gap:8px;margin-top:36px}.f20-view-controls button{appearance:none;background:transparent;border:1px solid #4b463e;color:#c9c3b8;padding:12px 18px;font:600 10px Inter,sans-serif;letter-spacing:.16em;cursor:pointer}.f20-view-controls button.is-active{background:#b89a62;color:#050505;border-color:#b89a62}.f20-exp-stage{height:min(78vh,820px);position:relative;display:grid;place-items:center;overflow:hidden;perspective:1400px}.f20-exp-image{width:min(66vw,720px);height:100%;display:grid;place-items:center;transform-origin:center}.f20-exp-image img{width:100%;height:100%;object-fit:contain;display:block;will-change:transform;transform:translateZ(0)}.f20-exp-mode{position:absolute;right:2%;bottom:2%;font:600 10px Inter,sans-serif;letter-spacing:.2em;color:#8d887f}.f20-story{padding:10vw 6vw;display:grid;grid-template-columns:1fr 3fr;gap:5vw;border-top:1px solid #24211d}.f20-story-main{max-width:1100px}.f20-story-text{max-width:720px;font:300 clamp(20px,2.2vw,34px)/1.45 Fraunces,Georgia,serif;color:#d9d3c8}.f20-story dl{margin:7vw 0;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #38332c}.f20-story dl div{padding:24px 12px 32px 0;border-bottom:1px solid #38332c}.f20-story dt{font:600 10px Inter,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#827d74}.f20-story dd{margin:10px 0 0;font:400 18px Fraunces,Georgia,serif}.f20-craft{margin-left:auto;max-width:760px;padding-top:8vw}.f20-craft h3{font:400 clamp(40px,5vw,76px)/.95 Fraunces,Georgia,serif;margin:.4em 0}.four20-terpenes{min-height:260vh}.four20-terpenes__stage{height:100vh;position:sticky;top:0;display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;padding:6vw}.four20-terpenes__intro{z-index:2}.four20-terpenes__viz{width:min(62vw,760px);aspect-ratio:1;position:relative;justify-self:center;display:grid;place-items:center;transform-style:preserve-3d}.four20-terpenes__orbit{position:absolute;inset:10%;border:1px solid rgba(184,154,98,.55);border-radius:50%;box-shadow:0 0 0 18px rgba(184,154,98,.025),0 0 0 54px rgba(184,154,98,.018)}.four20-terpenes__orbit:after,.four20-terpenes__orbit:before{content:"";position:absolute;inset:12%;border:1px solid rgba(184,154,98,.25);border-radius:50%;transform:rotateX(62deg)}.four20-terpenes__orbit:after{transform:rotateY(64deg)}.four20-terpenes__core{width:22%;aspect-ratio:1;border-radius:50%;border:1px solid #b89a62;display:grid;place-items:center;font:600 9px Inter,sans-serif;letter-spacing:.18em}.four20-terpene{--r:42%;position:absolute;left:50%;top:50%;width:120px;margin:-30px -60px;text-align:center;transform:rotate(var(--angle)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--angle)));font-family:Inter,sans-serif}.four20-terpene strong{display:block;font-size:11px;letter-spacing:.08em}.four20-terpene span{font:400 22px Fraunces,Georgia,serif;color:#b89a62}.four20-terpene i{display:block;width:1px;height:clamp(12px,calc(var(--level) * 70px),70px);background:#b89a62;margin:8px auto}.four20-terpenes__progress{position:absolute;left:0;bottom:0;height:2px;width:calc(var(--f20-progress,0)*100%);background:#b89a62}.single-product .product{overflow:visible}.single-product .woocommerce-tabs{position:relative;z-index:2}.single-product .related.products{padding:8vw 5vw;background:#f0ede6}.f20-editor{position:relative;z-index:3}.f20-editor>.wp-block-group,.f20-editor>.wp-block-cover{margin-block:0}
@media(max-width:800px){.f20-product-experience,.f20-story,.four20-terpenes__stage{grid-template-columns:1fr}.f20-product-experience{padding:100px 24px 60px}.f20-exp-stage{height:55vh}.f20-story{padding:100px 24px}.f20-story dl{grid-template-columns:1fr 1fr}.four20-terpenes{min-height:180vh}.four20-terpenes__stage{padding:80px 24px 40px;align-content:center}.four20-terpenes__viz{width:min(90vw,560px)}.four20-terpene{width:90px;margin-left:-45px}.f20-view-controls button{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.four20-terpenes{min-height:auto}.four20-terpenes__stage{position:relative;height:auto;min-height:100vh}.f20-exp-image,.four20-terpenes__viz{transform:none!important}}

/* v5 visibility + pill controls */
/* Force readable typography anywhere the cinematic theme uses a dark surface. */
.f20-home,
.f20-hero,
.f20-product-experience,
.f20-story,
.four20-terpenes,
.f20-cinematic-layer,
body.single-product {
  --f20-on-dark:#f7f3eb;
}
.f20-hero :where(h1,h2,h3,h4,h5,h6,p,li,span:not(.f20-kicker):not(.f20-eyebrow),strong,em,label),
.f20-product-experience :where(h1,h2,h3,h4,h5,h6,p,li,strong,em,label),
.f20-story :where(h1,h2,h3,h4,h5,h6,p,li,strong,em,label,dd),
.four20-terpenes :where(h1,h2,h3,h4,h5,h6,p,li,strong,em,label) {color:var(--f20-on-dark);}
.f20-editor .has-background[style*="background-color:#000"],
.f20-editor .has-background[style*="background-color: #000"],
.f20-editor .has-black-background-color {color:var(--f20-on-dark);}
.f20-editor .has-black-background-color :where(h1,h2,h3,h4,h5,h6,p,li,strong,em,a:not(.wp-element-button)){color:inherit;}

/* FULL / DETAIL / MACRO: high contrast, larger hit area, obvious active state. */
.f20-view-controls{display:flex;flex-wrap:wrap;gap:10px;position:relative;z-index:20;margin-top:36px}
.f20-view-controls button{
  min-height:44px;padding:12px 22px;border:1px solid rgba(247,243,235,.72)!important;
  border-radius:999px!important;background:rgba(5,5,5,.72)!important;color:#fff!important;
  font:700 11px/1 Inter,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;
  opacity:1!important;visibility:visible!important;box-shadow:0 0 0 1px rgba(0,0,0,.2);
}
.f20-view-controls button:hover,.f20-view-controls button:focus-visible{background:#f7f3eb!important;color:#050505!important;border-color:#f7f3eb!important;outline:none}
.f20-view-controls button.is-active{background:#b89a62!important;color:#050505!important;border-color:#d8bd82!important;box-shadow:0 0 24px rgba(184,154,98,.22)}

/* All actionable buttons use the same luxury pill language. */
.f20-home :where(.wp-element-button,.wp-block-button__link,button:not(.components-button),input[type="submit"]),
.woocommerce :where(a.button,button.button,input.button,.button),
.f20-cta{
  border-radius:999px!important;min-height:44px;padding:12px 22px!important;
  display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;
}
.f20-cta{border:1px solid rgba(247,243,235,.72)!important;color:#fff!important;background:transparent!important}
.f20-cta:hover,.f20-cta:focus-visible{background:#f7f3eb!important;color:#050505!important}
.woocommerce :where(a.button,button.button,input.button,.button){border:1px solid currentColor!important}

@media(max-width:800px){.f20-view-controls{gap:8px}.f20-view-controls button{min-height:42px;padding:11px 16px!important;font-size:10px}}


/* v6 — always-visible animated terpene constellation */
.four20-terpenes__status{display:inline-flex;align-items:center;min-height:38px;margin-top:24px;padding:9px 16px;border:1px solid rgba(184,154,98,.58);border-radius:999px;color:#d8bd82!important;font:700 9px/1 Inter,Arial,sans-serif;letter-spacing:.16em;text-transform:uppercase;background:rgba(184,154,98,.06)}
.four20-terpenes__core{position:absolute;left:50%;top:50%;translate:-50% -50%;z-index:2;grid-template-rows:auto auto;gap:7px;text-align:center}
.four20-terpenes__core b{font:500 8px/1 Inter,Arial,sans-serif;letter-spacing:.18em;color:#b89a62!important}
.four20-terpenes.is-empty-profile .four20-terpene span{color:rgba(247,243,235,.52)!important}
.four20-terpenes.is-empty-profile .four20-terpene i{height:14px;opacity:.42}
.four20-terpenes.is-empty-profile .four20-terpenes__orbit{animation:f20TerpeneIdle 18s linear infinite}
.four20-terpenes.is-empty-profile .four20-terpenes__core{box-shadow:0 0 0 1px rgba(184,154,98,.12),0 0 90px rgba(184,154,98,.12)}
@keyframes f20TerpeneIdle{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.four20-terpenes.is-empty-profile .four20-terpenes__orbit{animation:none}}

/* v7 — product-page visibility + contained cinematic scenes */
/* Keep the native WooCommerce product heading/meta readable on the black product page. */
body.single-product .site-main,
body.single-product .product,
body.single-product .summary,
body.single-product .summary.entry-summary{color:#f7f3eb!important;background:#000}
body.single-product .summary :where(h1,h2,h3,h4,h5,h6,p,span,div,small,strong,em,label),
body.single-product .product_title,
body.single-product .woocommerce-product-details__short-description,
body.single-product .product_meta,
body.single-product .product_meta :where(span,a),
body.single-product .price,
body.single-product .price :where(span,bdi){color:#fff!important}
body.single-product .product_meta a{opacity:.92}

/* Object Study must always show the whole source photograph in FULL mode. */
.f20-product-experience{overflow:visible!important;min-height:100svh}
.f20-exp-stage{overflow:hidden!important;min-height:560px;height:min(78svh,820px);isolation:isolate}
.f20-exp-image{width:min(58vw,680px)!important;height:min(70svh,720px)!important;max-width:100%;max-height:100%;display:grid!important;place-items:center!important;transform-origin:center center!important}
.f20-exp-image img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;opacity:1!important;visibility:visible!important}
.f20-exp-mode{color:#fff!important;background:rgba(0,0,0,.58);border:1px solid rgba(255,255,255,.32);border-radius:999px;padding:8px 12px;z-index:8}

/* Terpene chapter: keep the complete title and constellation inside the viewport. */
.four20-terpenes{overflow:visible!important;min-height:180vh!important}
.four20-terpenes__stage{overflow:hidden!important;height:100svh!important;min-height:680px;padding:clamp(32px,5vw,72px)!important;grid-template-columns:minmax(300px,.72fr) minmax(420px,1.28fr)!important;gap:clamp(20px,4vw,70px)}
.four20-terpenes__intro{position:relative!important;left:auto!important;top:auto!important;z-index:8!important;max-width:520px}
.four20-terpenes__intro h2{color:#fff!important;font-size:clamp(52px,6.5vw,108px)!important;line-height:.88!important;margin:24px 0!important}
.four20-terpenes__intro p{display:block!important;color:#d2ccc1!important;max-width:430px}
.four20-terpenes__viz{width:min(52vw,680px)!important;max-width:100%!important;justify-self:center!important;margin:0 auto!important;opacity:1;visibility:visible}
.four20-terpene{opacity:1}

@media(max-width:900px){
 .f20-product-experience{grid-template-columns:1fr!important;padding:96px 22px 64px!important;gap:28px}
 .f20-exp-stage{min-height:480px;height:62svh!important}
 .f20-exp-image{width:min(88vw,620px)!important;height:min(56svh,580px)!important}
 .four20-terpenes{min-height:auto!important;overflow:hidden!important}
 .four20-terpenes__stage{position:relative!important;height:auto!important;min-height:0!important;grid-template-columns:1fr!important;padding:96px 22px 72px!important;gap:44px!important;overflow:visible!important}
 .four20-terpenes__intro{max-width:100%!important}
 .four20-terpenes__intro h2{font-size:clamp(48px,14vw,76px)!important;max-width:100%;overflow-wrap:anywhere}
 .four20-terpenes__intro p{display:block!important}
 .four20-terpenes__viz{width:min(86vw,560px)!important;margin:0 auto!important}
 .four20-terpene{--radius:clamp(112px,31vw,190px)!important;width:88px!important}
}
@media(max-width:520px){
 .f20-exp-stage{min-height:420px;height:54svh!important}
 .f20-exp-image{width:92vw!important;height:48svh!important}
 .four20-terpenes__stage{padding-inline:16px!important}
 .four20-terpenes__viz{width:92vw!important}
 .four20-terpene{--radius:clamp(102px,29vw,150px)!important;width:76px!important}
 .four20-terpene strong{font-size:10px!important}.four20-terpene span{font-size:11px!important}
}

/* v8 — full-width product scenes, fully contained terpene profile, editable hero media */
body.single-product .f20-product-experience,
body.single-product .f20-story,
body.single-product .four20-terpenes{
  clear:both!important;
  float:none!important;
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
}

/* Object Study: FULL always presents the entire original source image. */
.f20-product-experience{
  grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr)!important;
  overflow:hidden!important;
}
.f20-exp-stage{
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
}
.f20-exp-image{
  width:100%!important;
  height:100%!important;
  max-width:min(720px,100%)!important;
  max-height:min(720px,72svh)!important;
  display:grid!important;
  place-items:center!important;
}
.f20-exp-image img{
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
}

/* Terpene chapter: labels and orbit remain inside the visual stage. */
.four20-terpenes{overflow:hidden!important;min-height:160vh!important}
.four20-terpenes__stage{overflow:visible!important;box-sizing:border-box!important}
.four20-terpenes__viz{
  width:min(46vw,620px)!important;
  max-width:620px!important;
  aspect-ratio:1/1!important;
  overflow:visible!important;
  transform-origin:center center!important;
}
.four20-terpene{
  --r:35%!important;
  width:108px!important;
  margin:-28px -54px!important;
  z-index:4!important;
}
.four20-terpenes__orbit{inset:14%!important}
.four20-terpenes__core{width:20%!important;min-width:92px!important}

/* Hero image remains a cinematic object regardless of the selected media proportions. */
.f20-featured-object>a{display:block;width:100%;height:100%}
.f20-featured-object img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}

@media(max-width:900px){
 .f20-product-experience{grid-template-columns:1fr!important}
 .f20-exp-stage{width:100%!important;min-height:520px!important;height:64svh!important}
 .f20-exp-image{max-width:min(88vw,620px)!important;max-height:58svh!important}
 .four20-terpenes{min-height:auto!important}
 .four20-terpenes__viz{width:min(82vw,520px)!important;max-width:520px!important}
 .four20-terpene{--r:34%!important;width:86px!important;margin:-25px -43px!important}
}
@media(max-width:520px){
 .f20-exp-stage{min-height:440px!important;height:58svh!important}
 .f20-exp-image{max-width:92vw!important;max-height:52svh!important}
 .four20-terpenes__viz{width:min(80vw,390px)!important}
 .four20-terpene{--r:32%!important;width:70px!important;margin:-22px -35px!important}
 .four20-terpene strong{font-size:9px!important;letter-spacing:.04em!important}
 .four20-terpene span{font-size:12px!important}
 .four20-terpene i{margin-top:5px!important;max-height:34px!important}
}
