/*
Theme Name: Randomly Jiva
Theme URI: https://randomlyjiva.com/
Author: Randomly Jiva - TiaKari Enterprises
Description: Custom standalone theme for RandomlyJiva.com and its branded sections.
Version: 0.11.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: randomlyjiva
*/

:root {
  --rj-black: #101010;
  --rj-charcoal: #1a1a1a;
  --rj-snow: #f8f8f5;
  --rj-white: #ffffff;
  --rj-gray: #8f8f8f;
  --rj-line: rgba(255,255,255,.13);
  --rj-blue: #1686d9;
  --rj-purple: #6a35a5;
  --rj-lavender: #a58bd4;
  --rj-max: 1380px;
  --rj-pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rj-snow);
  color: #151515;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

/* Shared interior shell — XStore Dark-inspired structure */
.rj-site-header {
  background: var(--rj-black);
  color: var(--rj-white);
  border-bottom: 1px solid var(--rj-line);
}
.rj-masthead {
  min-height: 112px;
  max-width: var(--rj-max);
  margin: 0 auto;
  padding: 20px var(--rj-pad);
  display: grid;
  grid-template-columns: minmax(180px,1fr) minmax(260px,auto) minmax(180px,1fr);
  align-items: center;
  gap: 28px;
}
.rj-header-left { justify-self: start; min-width: 0; }
.rj-parent-brand, .rj-main-brand { display: inline-flex; align-items:center; text-decoration:none; }
.rj-parent-brand img { max-height: 48px; width:auto; display:block; }
.rj-main-brand img { max-height: 70px; width:auto; display:block; margin:0 auto; }
.rj-parent-brand .rj-wordmark-fallback { font-size: 18px; font-weight:800; letter-spacing:-.03em; }
.rj-main-brand .rj-wordmark-fallback { font-size: clamp(26px,3vw,44px); font-weight:800; letter-spacing:-.04em; }
.rj-header-balance { display:block; width:150px; height:1px; }
.rj-section-brand { text-align:center; justify-self:center; min-width:0; }
.rj-section-brand img { max-height:72px; max-width:min(420px,42vw); width:auto; display:block; margin:0 auto; }
.rj-section-brand__text { font-size:clamp(26px,3vw,44px); font-weight:800; letter-spacing:-.04em; white-space:nowrap; }
.rj-header-tools { justify-self:end; display:flex; align-items:center; gap:4px; }
.rj-header-tool {
  position:relative; width:42px; height:42px; border:0; border-radius:0;
  background:transparent; color:inherit; cursor:pointer;
  display:grid; place-items:center; text-decoration:none; opacity:.88;
}
.rj-header-tool:hover, .rj-header-tool:focus-visible { opacity:1; background:rgba(255,255,255,.065); outline:none; }
.rj-header-tool svg { width:20px; height:20px; }
.rj-cart-count {
  position:absolute; top:4px; right:2px; min-width:16px; height:16px; padding:0 4px;
  display:grid; place-items:center; border-radius:999px; background:var(--rj-accent,#fff);
  color:#fff; font-size:9px; font-weight:800; line-height:1;
}
body:not(.rj-section-unholy-geek):not(.rj-section-tiakari):not(.rj-section-jivafang) .rj-cart-count { background:#fff; color:#111; }
.rj-search-panel {
  max-height:0; overflow:hidden; opacity:0;
  background:var(--rj-black); color:var(--rj-white);
  transition:max-height .25s ease, opacity .2s ease;
  border-top:1px solid transparent;
}
.rj-search-panel.is-open { max-height:110px; opacity:1; border-top-color:var(--rj-line); }
.rj-search-panel__inner { max-width:var(--rj-max); margin:0 auto; padding:14px var(--rj-pad) 20px; }
.rj-search-form { display:flex; gap:10px; max-width:760px; margin:0 auto; }
.rj-search-form input[type="search"] {
  flex:1; min-width:0; border:0; border-bottom:1px solid rgba(255,255,255,.52);
  background:transparent; color:white; padding:12px 2px; outline:none;
}
.rj-search-form button { border:1px solid rgba(255,255,255,.25); background:transparent; color:white; padding:10px 16px; cursor:pointer; }
.rj-primary-nav { border-top:1px solid var(--rj-line); }
.rj-primary-nav__inner { max-width:var(--rj-max); margin:0 auto; padding:0 var(--rj-pad); }
.rj-primary-nav ul { margin:0; padding:0; list-style:none; display:flex; justify-content:center; gap:clamp(24px,4vw,60px); }
.rj-primary-nav a { display:block; padding:16px 0 15px; text-decoration:none; text-transform:uppercase; font-size:12px; font-weight:700; letter-spacing:.13em; opacity:.82; }
.rj-primary-nav a:hover, .rj-primary-nav .current-menu-item > a { opacity:1; }

/* Section accents */
body.rj-section-unholy-geek { --rj-accent: var(--rj-blue); }
body.rj-section-tiakari { --rj-accent: var(--rj-purple); }
body.rj-section-jivafang { --rj-accent: var(--rj-lavender); }
body:not(.rj-section-unholy-geek):not(.rj-section-tiakari):not(.rj-section-jivafang) { --rj-accent: #111111; }
.rj-accent-line { height: 3px; background: var(--rj-accent); }
.rj-content a:not(.button):not(.wp-block-button__link) { text-decoration-color: var(--rj-accent); text-underline-offset: 3px; }

.rj-content { max-width: var(--rj-max); margin: 0 auto; padding: clamp(44px, 7vw, 90px) var(--rj-pad); }
.rj-page-title { font-size: clamp(42px, 7vw, 92px); margin: 0 0 28px; line-height: .92; letter-spacing: -.055em; }

/* Footer */
.rj-footer-widgets { background: var(--rj-charcoal); color: white; border-top: 3px solid var(--rj-accent); }
.rj-footer-widgets__inner { max-width: var(--rj-max); margin: 0 auto; padding: 46px var(--rj-pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 32px; }
.rj-footer-widgets .widget { margin: 0; }
.rj-footer-widgets h2, .rj-footer-widgets h3 { margin-top: 0; }
.rj-site-footer { background: var(--rj-black); color: rgba(255,255,255,.72); }
.rj-site-footer__inner { max-width: var(--rj-max); margin: 0 auto; padding: 19px var(--rj-pad); display: flex; justify-content: space-between; gap: 18px; align-items: center; font-size: 12px; }

/* Gateway/front page */
body.home { background: var(--rj-black); }
.rj-gateway { min-height: 100svh; background: var(--rj-black); color: white; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.rj-gateway-header { border-bottom: 1px solid var(--rj-line); }
.rj-gateway-header__inner { max-width: var(--rj-max); margin: 0 auto; padding: 20px var(--rj-pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rj-gateway-brand img { max-height: 62px; width: auto; display: block; }
.rj-gateway-brand .rj-wordmark-fallback { font-weight: 800; }
.rj-gateway-menu ul { margin: 0; padding: 0; display: flex; gap: clamp(18px,3vw,40px); list-style: none; }
.rj-gateway-menu a { color: white; text-decoration: none; font-size: 12px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; opacity: .78; }
.rj-logo-rail { border-bottom: 1px solid rgba(255,255,255,.04); }
.rj-logo-rail__inner { max-width: var(--rj-max); margin: 0 auto; padding: 4px var(--rj-pad) 7px; display: flex; justify-content: center; gap: clamp(22px, 4vw, 54px); overflow-x: auto; scrollbar-width: thin; }
.rj-logo-rail button { flex: 0 0 auto; appearance: none; border: 0; border-bottom: 2px solid transparent; background: transparent; color: rgba(255,255,255,.48); padding: 4px 0 3px; font-weight: 800; cursor: pointer; }
.rj-logo-rail button:hover, .rj-logo-rail button.is-active { color: white; border-bottom-color: white; }
.rj-logo-rail button img { display:block; width:auto; height:clamp(28px,3vw,44px); max-width:150px; object-fit:contain; }
.rj-logo-rail button .rj-rail-label--sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.rj-hero-art__logo { display:block; width:auto; max-width:min(70vw,420px); max-height:100px; object-fit:contain; }


.rj-hero-shell { position: relative; min-height: 0; background: var(--rj-snow); color: #111; overflow: hidden; }
.rj-hero-edge { position: absolute; left: 0; width: 100%; height: clamp(70px,10vw,145px); z-index: 8; pointer-events: none; background-repeat: repeat-x; background-size: auto 100%; }
.rj-hero-edge--top { top: -2px; background-image: url('assets/img/grunge-edge-top.png'); background-position: center top; }
.rj-hero-edge--bottom { bottom: -2px; background-image: url('assets/img/grunge-edge-bottom.png'); background-position: center bottom; }
.rj-hero-stage { position: relative; min-height: clamp(420px, 56vh, 650px); height: 100%; }
.rj-hero-panel { position:absolute; inset:0; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr); gap:clamp(34px,6vw,90px); align-items:center; padding:clamp(62px,7vw,98px) var(--rj-pad) clamp(105px,10vw,145px); opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .32s ease,transform .32s ease,visibility 0s linear .32s; pointer-events:none; cursor:pointer; }
.rj-hero-panel.is-active { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; pointer-events: auto; }
.rj-hero-panel.no-hero-image{grid-template-columns:1fr}.rj-hero-panel.no-hero-image .rj-hero-content{width:min(100%,1080px);margin-inline:auto}
.rj-hero-content{display:grid;grid-template-columns:minmax(120px,30%) minmax(0,1fr);gap:clamp(22px,4vw,54px);align-items:center;min-width:0;z-index:9}
.rj-hero-identity-logo { display:flex; justify-content:center; align-items:center; min-height:64px; position:relative; z-index:9; }
.rj-hero-copy,.rj-hero-image { min-width:0; z-index:9; }
.rj-hero-copy { display:flex; flex-direction:column; justify-content:center; align-items:flex-end; text-align:right; position:static; }
.rj-hero-image { position:relative; }
.rj-hero-image { height:100%; max-height:330px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.rj-hero-image img { width:100%; height:100%; object-fit:contain; filter:grayscale(1) contrast(1.05); }
.rj-hero-art__fallback { font-size: clamp(42px,6vw,88px); line-height: .9; font-weight: 900; letter-spacing: -.065em; }
.rj-hero-content .rj-hero-art__logo{max-width:100%;max-height:110px}
.rj-kicker { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .24em; font-size: 11px; color: #777; }
.rj-hero-title { margin: 0; font-size: clamp(44px,6vw,86px); line-height: .9; letter-spacing: -.06em; text-wrap: balance; }
.rj-hero-description { margin: 22px 0 0; font-size: clamp(16px,1.6vw,22px); max-width: 690px; }
.rj-hero-meta { margin: 18px 0 0; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: #777; }
.rj-hero-cta { display: inline-flex; margin-top: 25px; font-weight: 800; text-decoration: none; border-bottom: 2px solid #111; padding-bottom: 2px; }
.rj-hero-cta::after{content:'';position:absolute;inset:0;z-index:20}.rj-hero-cta:focus-visible{outline:3px solid #111;outline-offset:4px}
.rj-gateway-footer { text-align: center; padding: 15px var(--rj-pad); font-size: 11px; color: rgba(255,255,255,.75); }

/* Shop */
.rj-shop-hero { min-height: 250px; background: var(--rj-charcoal); color: white; display: flex; align-items: center; }
.rj-shop-hero__inner { width: 100%; max-width: var(--rj-max); margin: 0 auto; padding: 38px var(--rj-pad); }
.rj-shop-hero h1 { margin: 0; font-size: clamp(48px,7vw,86px); line-height: .9; letter-spacing: -.055em; }
.rj-shop-hero p { max-width: 640px; margin: 16px 0 0; color: rgba(255,255,255,.68); }
.rj-shop-bands { max-width: var(--rj-max); margin: 0 auto; padding: 44px var(--rj-pad) 0; }
.rj-band { margin-bottom: 46px; }
.rj-band__head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.rj-band__head h2 { margin: 0; font-size: clamp(24px,3vw,38px); letter-spacing: -.04em; }
.rj-category-grid { display:grid; grid-template-columns:repeat(var(--rj-cat-count,5),minmax(0,1fr)); gap:16px; }
.rj-category-band:not(.has-desktop-categories),.rj-category-grid--mobile{display:none}.rj-category-card { min-height:0; aspect-ratio:1.65/1; background:#e9e9e5; position:relative; overflow:hidden; text-decoration:none; display:flex; align-items:end; padding:17px; font-weight:800; }
.rj-category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.rj-category-card::after { content: ''; position:absolute; inset:0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 65%); z-index:1; }
.rj-category-card span { position: relative; z-index:2; color:white; }
.rj-featured-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }.rj-featured-product{display:flex;flex-direction:column;min-width:0}.rj-featured-product>a:first-child{text-decoration:none}.rj-featured-product img{display:block;width:100%;aspect-ratio:1/1;object-fit:contain}.rj-featured-product h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;line-height:1.35;min-height:4.05em;margin:12px 0 8px}.rj-featured-product .price{margin-bottom:12px}.rj-featured-product .button{margin-top:auto;text-align:center}
.rj-shop-layout { max-width: var(--rj-max); margin: 0 auto; padding: 0 var(--rj-pad) 70px; display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 40px; align-items: start; }
.rj-shop-main .products { display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px 18px; }
.rj-shop-main .products::before, .rj-shop-main .products::after { display:none !important; }
.rj-shop-main .products li.product,.related.products li.product { width:auto !important; float:none !important; margin:0 !important; display:flex;flex-direction:column;min-width:0; }.products li.product .woocommerce-loop-product__link{display:block}.products li.product img{width:100%;aspect-ratio:1/1;object-fit:contain}.products li.product .woocommerce-loop-product__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;line-height:1.35;min-height:4.05em}.products li.product .price{min-height:1.5em;margin-bottom:12px!important}.products li.product .button{margin-top:auto!important;text-align:center}
.rj-shop-sidebar { border-left: 1px solid #d8d8d4; padding-left: 26px; position: sticky; top: 24px; }
.rj-shop-sidebar .widget { margin-bottom: 30px; }
.rj-shop-sidebar .widget-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }

/* Product */
.single-product .product { max-width: var(--rj-max); margin: 0 auto !important; padding: 58px var(--rj-pad) 24px; }
.single-product div.product .woocommerce-product-gallery { width: 54%; }
.single-product div.product .summary { width: 41%; }
.rj-product-meta-block { border-top: 1px solid #d7d7d2; border-bottom: 1px solid #d7d7d2; padding: 16px 0; margin: 22px 0; font-size: 13px; }
.rj-product-additional { margin-top: 24px; }
.rj-product-additional h3 { margin-bottom: 12px; }
.rj-product-additional table { width: 100%; border-collapse: collapse; }
.rj-product-additional th, .rj-product-additional td { text-align: left; vertical-align: top; padding: 8px 0; border-bottom: 1px solid #e1e1dd; font-size: 13px; }
.rj-product-info-grid { max-width:var(--rj-max); margin:36px auto 72px; padding:0 var(--rj-pad); display:grid; grid-template-columns:1fr; gap:clamp(30px,4vw,52px); }
.rj-product-info-panel { border-top: 2px solid #151515; padding-top: 16px; }
.rj-product-info-panel h3 { margin: 0 0 12px; font-size: 20px; }
.rj-product-info-panel p:first-child { margin-top: 0; }
.rj-product-description-extra{margin-top:28px;padding-top:18px;border-top:1px solid #d7d7d2}
.woocommerce-tabs { display:none !important; }
.single-product .flex-control-thumbs{display:flex!important;flex-wrap:nowrap!important;gap:10px;overflow-x:auto;clear:both;margin-top:12px!important;padding-bottom:6px!important}.single-product .flex-control-thumbs li{float:none!important;width:82px!important;flex:0 0 82px!important;margin:0!important}.single-product .flex-control-thumbs img{width:82px!important;height:82px!important;object-fit:cover}.single-product .flex-control-thumbs img:focus-visible{outline:3px solid var(--rj-accent);outline-offset:2px}.single-product .wc-stripe-product-checkout-container,.single-product .wc-stripe-payment-request-wrapper,.single-product .wcpay-payment-request-wrapper,.single-product .ppc-button-wrapper,.single-product .woocommerce-PaymentRequest{display:none!important}

/* Portfolio template placeholder/plugin-ready */
.rj-portfolio-shell { max-width: var(--rj-max); margin: 0 auto; padding: 54px var(--rj-pad) 80px; }
.rj-portfolio-viewer { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,34%); align-items: center; min-height: 560px; }
.rj-portfolio-image { min-height: 520px; background: #ddd; overflow:hidden; }
.rj-portfolio-image img { width:100%; height:100%; object-fit:cover; }
.rj-portfolio-card { margin-left: -90px; background: rgba(248,248,245,.9); backdrop-filter: blur(9px); padding: clamp(28px,4vw,56px); position: relative; z-index:2; box-shadow: 0 18px 45px rgba(0,0,0,.11); }
.rj-portfolio-card h2 { font-size: clamp(34px,4vw,56px); line-height: .95; margin:0 0 18px; letter-spacing:-.05em; }
.rj-portfolio-thumbs { display:flex; gap:10px; overflow-x:auto; padding-top:18px; min-height:75px; }
.rj-portfolio-thumb { width:92px; height:62px; flex:0 0 auto; border:2px solid transparent; padding:0; background:#ddd; cursor:pointer; }
.rj-portfolio-thumb.is-active { border-color:#111; }
.rj-portfolio-thumb img { width:100%; height:100%; object-fit:cover; }

@media (max-width: 1000px) {
  .rj-category-grid--desktop { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
  .rj-featured-grid, .rj-shop-main .products { grid-template-columns: repeat(2,1fr) !important; }
  .rj-shop-layout { grid-template-columns: 1fr 220px; }
  .rj-hero-panel { grid-template-columns:minmax(0,1.1fr) minmax(230px,.9fr);gap:28px }
}
@media (max-width: 760px) {
  .rj-masthead { grid-template-columns: 1fr auto; min-height:auto; gap:14px; padding-top:16px; padding-bottom:16px; }
  .rj-header-left { grid-column:1; grid-row:1; }
  .rj-header-tools { grid-column:2; grid-row:1; }
  .rj-section-brand { grid-column:1 / -1; grid-row:2; padding-top:4px; }
  .rj-section-brand img { max-width:min(88vw,420px); }
  .rj-header-balance { display:none; }
  .rj-primary-nav__inner { overflow-x:auto; }
  .rj-primary-nav ul { justify-content:flex-start; width:max-content; }
  .rj-site-footer__inner { flex-direction:column; align-items:flex-start; }
  .rj-gateway-header__inner { flex-direction:column; align-items:flex-start; }
  .rj-gateway-menu { width:100%; overflow-x:auto; }
  .rj-gateway-menu ul { width:max-content; }
  .rj-hero-stage { min-height:700px; }
  .rj-hero-panel { grid-template-columns:1fr; grid-template-rows:auto minmax(160px,1fr); gap:24px; align-content:start; padding-top:92px; padding-bottom:118px; }
  .rj-hero-content{grid-template-columns:minmax(90px,28%) minmax(0,1fr);gap:18px}.rj-hero-copy { justify-content:flex-start; }
  .rj-hero-image { max-height:230px; }
  .rj-shop-layout { grid-template-columns:1fr; }
  .rj-shop-sidebar { border-left:0; border-top:1px solid #d8d8d4; padding:28px 0 0; position:static; }
  .rj-category-band:not(.has-desktop-categories){display:block}.rj-category-band:not(.has-mobile-categories){display:none}.rj-category-grid--desktop{display:none}.rj-category-grid--mobile{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rj-category-card{aspect-ratio:1.5/1;padding:13px}.rj-featured-product:nth-child(n+3){display:none}
  .single-product div.product .woocommerce-product-gallery, .single-product div.product .summary { width:100%; float:none; }
  .rj-portfolio-viewer { grid-template-columns:1fr; }
  .rj-portfolio-card { margin:-50px 18px 0; }
}
@media (max-width: 480px) {
  .rj-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}.rj-shop-main .products { grid-template-columns:1fr !important; }
  .rj-search-form { flex-direction:column; }
}


/* Reusable identity landing page: optional banner -> 2/3 About + 1/3 Explore -> modules */
.rj-identity-page { --rj-identity-accent: var(--rj-accent); }
.rj-identity-banner { width:100%; background:var(--rj-black); overflow:hidden; }
.rj-identity-banner{display:flex;align-items:center;justify-content:center;min-height:0;background:#000}.rj-identity-banner img { display:block; width:100%; height:clamp(165px,22.5vw,315px); object-fit:contain; object-position:center; }
.rj-identity-intro { max-width:var(--rj-max); margin:0 auto; padding:clamp(26px,4vw,52px) var(--rj-pad) clamp(42px,6vw,72px); display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:clamp(42px,6vw,90px); align-items:start; }
.rj-identity-about h1, .rj-identity-explore h2 { margin-top:0; letter-spacing:-.045em; }
.rj-identity-about h1 { font-size:clamp(38px,5vw,68px); line-height:.95; margin-bottom:24px; }
.rj-identity-about__logo { float:left; width:min(34%,260px); max-height:190px; object-fit:contain; object-position:left top; margin:4px clamp(22px,3vw,38px) 18px 0; }
.rj-identity-about__copy { font-size:clamp(14px,1vw,16px); line-height:1.65; }
.rj-identity-about__copy p{margin:0 0 1em}
.rj-identity-about__copy::after { content:''; display:block; clear:both; }
.rj-identity-about__copy > :first-child { margin-top:0; }
.rj-identity-explore { border-left:2px solid var(--rj-accent); padding-left:clamp(22px,3vw,38px); }
.rj-identity-explore h2 { font-size:clamp(25px,3vw,38px); line-height:1; margin-bottom:20px; }
.rj-identity-links { list-style:none; margin:0; padding:0; }
.rj-identity-links li { border-top:1px solid #d9d9d4; }
.rj-identity-links li:last-child { border-bottom:1px solid #d9d9d4; }
.rj-identity-links a { display:flex; justify-content:space-between; gap:20px; align-items:center; padding:15px 2px; text-decoration:none; font-weight:700; }
.rj-identity-links a::after { content:'↗'; color:var(--rj-accent); font-size:1.1em; }
.rj-identity-links a:hover { color:var(--rj-accent); }
.rj-identity-portfolio { background:var(--rj-black); color:white; padding:clamp(44px,6vw,72px) 0; overflow:hidden; }
.rj-identity-portfolio__head { max-width:var(--rj-max); margin:0 auto 24px; padding:0 var(--rj-pad); display:flex; justify-content:space-between; align-items:end; gap:20px; }
.rj-identity-portfolio__head h2 { margin:0; font-size:clamp(32px,4.5vw,60px); letter-spacing:-.05em; line-height:.95; }
.rj-identity-portfolio__head span { color:var(--rj-accent); font-size:12px; text-transform:uppercase; letter-spacing:.14em; font-weight:800; }
.rj-identity-marquee { display:flex; width:max-content; animation:rjIdentityMarquee 42s linear infinite; }
.rj-identity-marquee:hover { animation-play-state:paused; }
.rj-identity-marquee__group { display:flex; gap:18px; padding-right:18px; }
.rj-identity-project { width:clamp(240px,27vw,390px); flex:0 0 auto; text-decoration:none; color:white; }
.rj-identity-project__image { aspect-ratio:4/3; background:#292929; overflow:hidden; }
.rj-identity-project__image img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.rj-identity-project:hover img { transform:scale(1.025); }
.rj-identity-project h3 { margin:12px 0 0; font-size:18px; }
.rj-identity-project p { margin:5px 0 0; color:rgba(255,255,255,.62); font-size:13px; }
.rj-identity-page-content { max-width:var(--rj-max); margin:0 auto; padding:clamp(48px,7vw,90px) var(--rj-pad); }
@keyframes rjIdentityMarquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@media (prefers-reduced-motion: reduce) { .rj-identity-marquee { animation:none; max-width:100vw; overflow-x:auto; } }

@media (max-width:760px) {
  .rj-identity-intro { grid-template-columns:1fr; }
  .rj-identity-explore { border-left:0; border-top:2px solid var(--rj-accent); padding:24px 0 0; }
  .rj-identity-about__logo { width:min(42vw,190px); }
}

/* v0.7.0 interior theme system ------------------------------------------------ */
:root {
  --rj-page-bg: #f8f8f5;
  --rj-surface: #ffffff;
  --rj-surface-2: #ecece8;
  --rj-text: #151515;
  --rj-muted: #686868;
  --rj-border: #d9d9d4;
  --rj-overlay: rgba(248,248,245,.90);
}
html[data-rj-theme="dark"] {
  --rj-page-bg: #141414;
  --rj-surface: #1d1d1d;
  --rj-surface-2: #242424;
  --rj-text: #eeeeea;
  --rj-muted: #aaa9a4;
  --rj-border: #373737;
  --rj-overlay: rgba(24,24,24,.90);
}
body.rj-interior { background:var(--rj-page-bg); color:var(--rj-text); transition:background-color .2s ease,color .2s ease; }
body.rj-interior .rj-site-footer,
body.rj-interior .rj-shop-bands,
body.rj-interior .rj-shop-layout,
body.rj-interior .rj-identity-intro,
body.rj-interior .rj-identity-page-content { color:var(--rj-text); }
body.rj-interior .rj-identity-links li,
body.rj-interior .rj-product-meta-block,
body.rj-interior .rj-product-additional th,
body.rj-interior .rj-product-additional td,
body.rj-interior .rj-shop-sidebar { border-color:var(--rj-border); }
body.rj-interior .rj-category-card { background:var(--rj-surface-2); }

/* Compact three-level interior header */
.rj-announcement-bar { min-height:24px; background:#090909; border-bottom:1px solid rgba(255,255,255,.09); overflow:hidden; }
.rj-announcement-bar[hidden] { display:none; }
.rj-announcement-bar__inner { min-height:24px; max-width:var(--rj-max); margin:0 auto; padding:3px var(--rj-pad); position:relative; display:flex; align-items:center; justify-content:center; text-align:center; }
.rj-announcement { display:none; font-size:10px; line-height:1.45; letter-spacing:.05em; color:rgba(255,255,255,.78); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.rj-announcement.is-active { display:block; }
.rj-masthead { min-height:54px; padding:5px var(--rj-pad); gap:18px; }
.rj-parent-brand img { max-height:30px; }
.rj-main-brand img { max-height:42px; }
.rj-parent-brand .rj-wordmark-fallback { font-size:15px; }
.rj-main-brand .rj-wordmark-fallback { font-size:clamp(22px,2.3vw,34px); }
.rj-section-brand img { max-height:42px; max-width:min(360px,38vw); }
.rj-section-brand__text { font-size:clamp(21px,2.4vw,34px); }
.rj-header-tool { width:34px; height:34px; }
.rj-header-tool svg { width:18px; height:18px; }
.rj-primary-nav a { padding:9px 0 8px; font-size:10px; letter-spacing:.14em; }
.rj-primary-nav ul { gap:clamp(18px,3vw,46px); }
.rj-accent-line { height:2px; background:var(--rj-accent); }
.rj-theme-toggle[aria-pressed="true"] { background:rgba(255,255,255,.08); }

.rj-page-heading { display:flex; justify-content:space-between; gap:24px; align-items:end; margin-bottom:28px; border-bottom:1px solid var(--rj-border); padding-bottom:18px; }
.rj-page-heading h1 { margin:0; font-size:clamp(38px,5vw,70px); line-height:.9; letter-spacing:-.055em; }
.rj-page-heading p { margin:0; color:var(--rj-muted); text-transform:uppercase; letter-spacing:.12em; font-size:11px; }

/* Portfolio: mosaic selector + large right-side stage */
.rj-portfolio-shell { max-width:var(--rj-max); margin:0 auto; padding:42px var(--rj-pad) 72px; }
.rj-portfolio-layout { display:grid; grid-template-columns:minmax(330px,42%) minmax(0,1fr); gap:clamp(24px,4vw,56px); align-items:start; }
.rj-portfolio-mosaic { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:82px; grid-auto-flow:dense; gap:8px; }
.rj-mosaic-tile { border:0; padding:0; overflow:hidden; position:relative; background:var(--rj-surface-2); color:var(--rj-text); cursor:pointer; min-width:0; }
.rj-mosaic-tile::after { content:''; position:absolute; inset:0; border:2px solid transparent; transition:border-color .18s ease,background-color .18s ease; }
.rj-mosaic-tile:hover::after,.rj-mosaic-tile.is-active::after { border-color:var(--rj-accent); background:color-mix(in srgb,var(--rj-accent) 8%,transparent); }
.rj-mosaic-tile img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease; }
.rj-mosaic-tile:hover img { transform:scale(1.025); }
.rj-mosaic-tile.is-wide { grid-column:span 2; grid-row:span 2; }
.rj-mosaic-tile.is-tall { grid-column:span 1; grid-row:span 3; }
.rj-mosaic-tile.is-square { grid-column:span 2; grid-row:span 2; }
.rj-mosaic-tile.is-standard { grid-column:span 2; grid-row:span 2; }
.rj-portfolio-stage { position:sticky; top:18px; min-height:620px; background:var(--rj-surface-2); overflow:hidden; }
.rj-portfolio-image { width:100%; min-height:620px; height:min(70vh,760px); background:var(--rj-surface-2); }
.rj-portfolio-image img { width:100%; height:100%; object-fit:contain; display:block; }
.rj-portfolio-card { position:absolute; right:0; bottom:0; width:min(78%,560px); margin:0; padding:clamp(22px,3vw,38px); background:var(--rj-overlay); color:var(--rj-text); backdrop-filter:blur(10px); box-shadow:-16px -16px 40px rgba(0,0,0,.14); border-top:2px solid var(--rj-accent); }
.rj-portfolio-card[hidden] { display:none; }
.rj-portfolio-card h2 { margin:0 0 12px; font-size:clamp(27px,3vw,44px); line-height:.95; letter-spacing:-.045em; }
.rj-portfolio-card p:last-child { margin-bottom:0; }
.rj-portfolio-card a { font-weight:800; text-decoration:none; border-bottom:2px solid var(--rj-accent); }

/* Services: same selector/detail interaction language */
.rj-services-shell { max-width:var(--rj-max); margin:0 auto; padding:42px var(--rj-pad) 76px; }
.rj-services-layout { display:grid; grid-template-columns:minmax(240px,34%) minmax(0,1fr); gap:clamp(30px,5vw,74px); align-items:start; }
.rj-service-list { border-top:1px solid var(--rj-border); }
.rj-service-choice { width:100%; border:0; border-bottom:1px solid var(--rj-border); background:transparent; color:var(--rj-text); padding:17px 4px; display:flex; align-items:center; justify-content:space-between; gap:20px; text-align:left; font-weight:800; cursor:pointer; }
.rj-service-choice:hover,.rj-service-choice.is-active { color:var(--rj-accent); }
.rj-service-detail { min-height:420px; background:var(--rj-surface); padding:clamp(26px,4vw,52px); border-top:3px solid var(--rj-accent); box-shadow:0 18px 45px rgba(0,0,0,.07); }
.rj-service-detail h2 { margin:0 0 18px; font-size:clamp(34px,4vw,58px); line-height:.95; letter-spacing:-.05em; }
.rj-service-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:28px 0; }
.rj-service-meta div { background:var(--rj-surface-2); padding:15px; }
.rj-service-meta strong,.rj-service-section h3 { display:block; text-transform:uppercase; letter-spacing:.11em; font-size:10px; margin-bottom:5px; }
.rj-service-section { border-top:1px solid var(--rj-border); padding-top:18px; margin-top:20px; }
.rj-service-cta { display:inline-flex; margin-top:26px; padding:11px 16px; background:var(--rj-accent); color:#fff; text-decoration:none; font-weight:800; }

/* Jiva Random: readable text-first masonry */
.rj-random-shell { max-width:var(--rj-max); margin:0 auto; padding:42px var(--rj-pad) 76px; }
.rj-random-tools { display:grid; grid-template-columns:minmax(0,1fr) 150px auto; gap:10px; margin-bottom:26px; }
.rj-random-tools input,.rj-random-tools select,.rj-random-tools button { border:1px solid var(--rj-border); background:var(--rj-surface); color:var(--rj-text); padding:11px 12px; }
.rj-random-tools button { background:var(--rj-black); color:#fff; cursor:pointer; }
.rj-random-masonry { columns:3 300px; column-gap:18px; }
.rj-random-card { break-inside:avoid; margin:0 0 18px; display:inline-block; width:100%; background:var(--rj-surface); border:1px solid var(--rj-border); padding:20px; }
.rj-random-card__content > :first-child { margin-top:0; }
.rj-random-card__content > :last-child { margin-bottom:0; }
.rj-random-card footer { border-top:1px solid var(--rj-border); margin-top:18px; padding-top:10px; display:flex; justify-content:space-between; gap:12px; color:var(--rj-muted); font-size:10px; text-transform:uppercase; letter-spacing:.09em; }

/* v0.8.0 focused accessibility and content updates. */
body.rj-interior .rj-site-footer { color:#f0f0f0; }
body.rj-interior .rj-site-footer a { color:#fff; }
.rj-services-shell { --rj-service-accent:#8c62bb; }
.rj-service-choice.is-active { color:var(--rj-text); background:color-mix(in srgb,var(--rj-service-accent) 20%,var(--rj-surface)); box-shadow:inset 4px 0 var(--rj-service-accent); padding-left:14px; }
.rj-service-choice:hover { color:var(--rj-text); background:color-mix(in srgb,var(--rj-service-accent) 12%,var(--rj-surface)); }
.rj-service-choice:focus-visible,.rj-service-cta:focus-visible { outline:3px solid var(--rj-service-accent); outline-offset:2px; }
.rj-service-choice__indicator { transition:transform .2s ease; font-size:22px; }
.rj-service-choice[aria-expanded="true"] .rj-service-choice__indicator { transform:rotate(180deg); }
.rj-service-detail[hidden] { display:none; }
.rj-service-meta { grid-template-columns:repeat(3,minmax(0,1fr)); }
.rj-service-options ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 28px; padding-left:20px; }
.rj-service-cta { background:var(--rj-service-accent); color:#fff; }
.rj-random-card { overflow:hidden; }
.rj-random-card img { display:inline-block; width:auto; max-width:100%; height:100px; object-fit:contain; margin:3px; vertical-align:top; }
.rj-random-card iframe,.rj-random-card video,.rj-random-card embed { display:block; max-width:100%; width:100%; height:auto; aspect-ratio:16/9; }
.rj-random-card .wp-block-embed,.rj-random-card .wp-block-embed__wrapper,.rj-random-card .wp-video { max-width:100%; margin-inline:0; overflow:hidden; }
.rj-random-card__permalink { display:block; font-weight:800; margin-top:12px; }
.rj-random-pagination { display:flex; gap:14px; justify-content:center; margin-top:26px; }
.rj-thought-single { max-width:800px; }
.rj-thought-media { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:15px; margin-top:30px; }
.rj-thought-media img,.rj-thought-media video { max-width:100%; height:auto; }
@media (max-width:760px) {
  .rj-services-layout { display:block; }
  .rj-service-list { display:block; }
  .rj-service-detail { min-height:0; padding:24px; box-shadow:none; }
  .rj-service-meta { grid-template-columns:1fr; }
  .rj-service-options ul { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) { .rj-service-choice__indicator { transition:none; } }

/* Identity landing variations and account/cart refinements. */
.rj-identity-about__label{font-size:12px;text-transform:uppercase;letter-spacing:.14em;font-weight:800}.rj-portfolio-category-links a.is-active{color:var(--rj-accent);box-shadow:inset 3px 0 var(--rj-accent);padding-left:12px}.rj-mini-thoughts h2 a{color:inherit;text-decoration:none}.rj-mini-thoughts__grid{columns:3 150px;column-gap:12px}.rj-mini-thought{display:inline-block;width:100%;box-sizing:border-box;margin:0 0 12px;padding:15px;background:var(--rj-surface);border:1px solid var(--rj-border);box-shadow:0 5px 14px rgba(0,0,0,.04);color:var(--rj-text);text-decoration:none;break-inside:avoid;font-size:13px;line-height:1.5}.rj-mini-thought:hover{border-color:var(--rj-accent);transform:translateY(-1px)}.rj-mini-thought p{margin:0}
.rj-identity-page--randomly-jiva .rj-identity-intro{grid-template-columns:repeat(2,minmax(0,1fr))}.rj-identity-page--randomly-jiva .rj-identity-explore{border-left:1px solid var(--rj-border)}
.wc-stripe-cart-checkout-container,.wc-stripe-product-checkout-container,.ppc-button-wrapper,.wc-block-components-express-payment{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}.wc-stripe-cart-checkout-container>*,.wc-stripe-product-checkout-container>*,.ppc-button-wrapper>*,.wc-block-components-express-payment>*{flex:1 1 180px;max-width:320px}.rj-empty-cart{margin-left:8px!important}
@media(max-width:760px){.rj-identity-page--randomly-jiva .rj-identity-intro{grid-template-columns:1fr}.rj-mini-thoughts__grid{columns:1}.wc-stripe-cart-checkout-container,.wc-stripe-product-checkout-container,.ppc-button-wrapper,.wc-block-components-express-payment{display:block}.wc-stripe-cart-checkout-container>*,.wc-stripe-product-checkout-container>*,.ppc-button-wrapper>*,.wc-block-components-express-payment>*{max-width:none;width:100%}.rj-empty-cart{margin:8px 0 0!important;width:100%;text-align:center}}

@media (max-width:900px){
  .rj-portfolio-layout,.rj-services-layout{grid-template-columns:1fr;}
  .rj-portfolio-stage{position:relative;top:auto;min-height:500px;}
  .rj-portfolio-image{min-height:500px;height:60vh;}
  .rj-portfolio-mosaic{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:70px;}
  .rj-mosaic-tile.is-wide,.rj-mosaic-tile.is-square,.rj-mosaic-tile.is-standard{grid-column:span 3;}
  .rj-mosaic-tile.is-tall{grid-column:span 2;}
}
@media (max-width:760px){
  .rj-announcement-bar__inner{justify-content:flex-start;text-align:left;}
  .rj-masthead{min-height:auto;padding:7px var(--rj-pad);}
  .rj-section-brand{padding-top:0;}
  .rj-main-brand img,.rj-section-brand img{max-height:38px;}
  .rj-primary-nav a{padding:8px 0;}
  .rj-portfolio-card{width:calc(100% - 24px);right:12px;bottom:12px;}
  .rj-service-meta{grid-template-columns:1fr;}
  .rj-random-tools{grid-template-columns:1fr;}
}
@media (max-width:520px){
  .rj-portfolio-mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:100px;}
  .rj-mosaic-tile.is-wide,.rj-mosaic-tile.is-square,.rj-mosaic-tile.is-standard{grid-column:span 2;grid-row:span 2;}
  .rj-mosaic-tile.is-tall{grid-column:span 1;grid-row:span 2;}
  .rj-portfolio-stage,.rj-portfolio-image{min-height:420px;height:60vh;}
}

/* Core 0.8 business/media integrations. */
.rj-hero-shell.has-managed-background{background-image:var(--rj-hero-bg);background-size:var(--rj-hero-bg-size,cover);background-position:var(--rj-hero-bg-position,center);background-repeat:no-repeat}.rj-hero-shell.has-managed-background::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;opacity:var(--rj-hero-overlay-opacity,.3)}.rj-hero-shell.rj-hero-overlay--dark::before{background:#000}.rj-hero-shell.rj-hero-overlay--light::before{background:#fff}.rj-hero-shell.rj-hero-overlay--none::before{display:none}.rj-hero-shell.has-managed-background .rj-hero-stage{z-index:2}.rj-hero-shell.rj-hero-overlay--dark{color:#fff}.rj-hero-shell.rj-hero-overlay--dark .rj-kicker{color:rgba(255,255,255,.72)}.rj-hero-shell.rj-hero-overlay--dark .rj-hero-cta{color:#fff;border-color:#fff}
.rj-identity-page--randomly-jiva .rj-identity-intro{grid-template-columns:minmax(0,2fr) minmax(260px,1fr)}.rj-identity-page--unholy-geek .rj-identity-intro{grid-template-columns:minmax(260px,1fr) minmax(0,2fr)}.rj-identity-page--unholy-geek .rj-identity-explore{grid-column:1;grid-row:1;border-left:0;border-right:2px solid var(--rj-accent);padding:0 clamp(22px,3vw,38px) 0 0}.rj-identity-page--unholy-geek .rj-identity-about{grid-column:2;grid-row:1}.rj-identity-page--unholy-geek .rj-identity-links a{padding:10px 2px}
.rj-footer-menu{background:#202124;color:#fff;border-top:1px solid rgba(255,255,255,.12)}.rj-footer-menu__inner{max-width:var(--rj-max);margin:0 auto;padding:22px var(--rj-pad)}.rj-footer-menu ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px clamp(18px,3vw,40px)}.rj-footer-menu li{margin:0}.rj-footer-menu a{color:#fff;text-decoration:none;font-weight:700;font-size:13px}.rj-footer-menu a:hover{text-decoration:underline;text-underline-offset:4px}.rj-footer-menu .sub-menu{margin-top:7px;display:grid;gap:5px}.rj-footer-menu .sub-menu a{font-weight:400;color:rgba(255,255,255,.75)}
.rj-service-families{display:flex;gap:7px;overflow-x:auto;margin:0 0 20px;padding:0 0 8px}.rj-service-families button{flex:0 0 auto;border:1px solid var(--rj-border);background:var(--rj-surface);color:var(--rj-text);padding:8px 11px;font-weight:800;cursor:pointer}.rj-service-families button:hover,.rj-service-families button.is-active{background:var(--rj-service-accent);border-color:var(--rj-service-accent);color:#fff}.rj-service-families button:focus-visible{outline:3px solid var(--rj-service-accent);outline-offset:2px}.rj-service-choice[hidden]{display:none!important}
.rj-videos-shell,.rj-video-single{max-width:var(--rj-max);margin:0 auto;padding:42px var(--rj-pad) 76px}.rj-video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:20px}.rj-video-card{min-width:0}.rj-video-open{width:100%;height:100%;border:1px solid var(--rj-border);padding:0;background:var(--rj-surface);color:var(--rj-text);text-align:left;cursor:pointer}.rj-video-open:focus-visible,.rj-video-close:focus-visible{outline:3px solid var(--rj-accent);outline-offset:3px}.rj-video-poster{display:grid;place-items:center;position:relative;aspect-ratio:16/9;overflow:hidden;background:#111}.rj-video-poster img{grid-area:1/1;width:100%;height:100%;object-fit:cover}.rj-video-poster__fallback{font-size:42px;color:#fff}.rj-video-play{grid-area:1/1;position:relative;z-index:2;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:rgba(0,0,0,.72);color:#fff;padding-left:4px}.rj-video-card__copy{display:grid;gap:7px;padding:14px}.rj-video-card__copy strong{font-size:18px}.rj-video-card__copy span{font-size:13px;color:var(--rj-muted)}.rj-video-dialog{width:min(1100px,92vw);max-height:90vh;border:0;padding:42px 18px 18px;background:#111;color:#fff}.rj-video-dialog::backdrop{background:rgba(0,0,0,.84)}.rj-video-close{position:absolute;right:8px;top:6px;border:0;background:transparent;color:#fff;font-size:30px;cursor:pointer}.rj-video-dialog__player{display:grid;place-items:center}.rj-video-dialog iframe,.rj-video-dialog video,.rj-video-dialog .wp-video,.rj-video-single iframe,.rj-video-single video,.rj-video-single .wp-video{width:100%!important;max-width:100%;aspect-ratio:16/9;height:auto}.rj-video-single{max-width:1100px}.rj-video-single h1{font-size:clamp(38px,6vw,72px);margin:0 0 28px}.rj-video-single__player{background:#111}.rj-video-single__content{max-width:780px;margin:34px auto 0}
.rj-portfolio-single{max-width:var(--rj-max);margin:0 auto;padding:42px var(--rj-pad) 76px}.rj-portfolio-single header{max-width:850px;margin-bottom:28px}.rj-portfolio-single h1{font-size:clamp(40px,6vw,76px);line-height:.95;margin:0}.rj-portfolio-single__excerpt{font-size:18px;color:var(--rj-muted)}.rj-portfolio-single__hero{margin:0 0 34px;background:#111}.rj-portfolio-single__hero img{display:block;max-width:100%;max-height:80vh;margin:auto;object-fit:contain}.rj-portfolio-single__content{max-width:850px}.rj-portfolio-single__gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:34px 0}.rj-portfolio-single__gallery img{width:100%;height:100%;max-height:520px;object-fit:contain;background:#111}
@media(max-width:760px){.rj-identity-page--randomly-jiva .rj-identity-intro,.rj-identity-page--unholy-geek .rj-identity-intro{grid-template-columns:1fr}.rj-identity-page--unholy-geek .rj-identity-about{grid-column:1;grid-row:1}.rj-identity-page--unholy-geek .rj-identity-explore{grid-column:1;grid-row:2;border-right:0;border-top:2px solid var(--rj-accent);padding:20px 0 0}.rj-footer-menu ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rj-videos-shell,.rj-video-single{padding-top:28px}}
