/*
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.8.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: 15px var(--rj-pad) 20px; 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: 8px 0 6px; 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(100%,420px); max-height:220px; 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,1fr) minmax(0,2fr); gap: clamp(34px,7vw,100px); align-items: stretch; padding: clamp(90px,10vw,150px) var(--rj-pad); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .32s ease, transform .32s ease, visibility 0s linear .32s; pointer-events: none; }
.rj-hero-panel.is-active { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; pointer-events: auto; }
.rj-hero-art, .rj-hero-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.rj-hero-art { align-items: center; text-align: center; }
.rj-hero-art__fallback { font-size: clamp(42px,6vw,88px); line-height: .9; font-weight: 900; letter-spacing: -.065em; }
.rj-hero-copy { align-items: flex-start; max-width: 820px; }
.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-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(5,minmax(0,1fr)); gap: 16px; }
.rj-category-card { min-height: 130px; 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-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 { width: auto !important; float: none !important; margin: 0 !important; }
.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: repeat(var(--rj-info-cols, 1),minmax(0,1fr)); gap: clamp(22px,3vw,42px); }
.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; }
.woocommerce-tabs { 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 { grid-template-columns: repeat(3,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: 1fr 1.7fr; }
}
@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; gap:20px; align-content:center; padding-top:120px; padding-bottom:120px; }
  .rj-hero-art, .rj-hero-copy { justify-content:flex-start; }
  .rj-hero-art { min-height:150px; }
  .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-grid { grid-template-columns:repeat(2,1fr); }
  .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-category-grid, .rj-featured-grid, .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 img { display:block; width:100%; height:clamp(220px,30vw,420px); object-fit:cover; }
.rj-identity-intro { max-width:var(--rj-max); margin:0 auto; padding:clamp(48px,7vw,90px) var(--rj-pad); 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(16px,1.35vw,20px); }
.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; } }

@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;}
}
