/*
Theme Name: Norem Studio
Theme URI: https://norem.ec
Author: Norem Studio
Author URI: https://norem.ec
Description: Warm, editorial portfolio theme for Norem — a freelance digital illustrator (Quito, Ecuador). Olive ink on cream paper, coral as the single signal color. Single-page portfolio with filterable work grid, services, process, testimonials, FAQ and contact form. Built on the Norem Studio design system.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jollybell
Tags: portfolio, one-page, illustration, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   Norem Studio — Design Tokens
   (ported from the design system: colors, type, spacing)
   ============================================================ */
:root {
  /* Brand raw palette */
  --jb-peach:    #FCBF93;
  --jb-cream:    #F2E8DF;
  --jb-coral:    #FB8159;
  --jb-white:    #FEFEFE;
  --jb-lime:     #D2E186;
  --jb-olive:    #415111;

  /* Tints & shades */
  --jb-coral-700: #E3603A;
  --jb-coral-300: #FDB196;
  --jb-coral-100: #FDE3D8;
  --jb-olive-800: #344010;
  --jb-olive-600: #5A6E22;
  --jb-olive-400: #7E9140;
  --jb-lime-600:  #A9BE55;
  --jb-lime-100:  #EDF3D2;
  --jb-cream-200: #EADFD2;
  --jb-cream-300: #DED0BF;

  /* Semantic surfaces */
  --surface-page:     var(--jb-cream);
  --surface-card:     var(--jb-white);
  --surface-raised:   var(--jb-white);
  --surface-sunken:   var(--jb-cream-200);
  --surface-inverse:  var(--jb-olive);
  --surface-accent:   var(--jb-peach);
  --surface-accent-2: var(--jb-lime);

  /* Semantic text */
  --text-strong:   var(--jb-olive-800);
  --text-body:     var(--jb-olive);
  --text-muted:    var(--jb-olive-400);
  --text-on-coral: var(--jb-white);
  --text-on-olive: var(--jb-cream);
  --text-link:     var(--jb-coral-700);

  /* Lines & borders */
  --border-soft:   var(--jb-cream-300);
  --border-strong: var(--jb-olive);
  --border-coral:  var(--jb-coral);

  /* Brand / action */
  --brand:       var(--jb-coral);
  --brand-hover: var(--jb-coral-700);
  --brand-wash:  var(--jb-coral-100);
  --accent:      var(--jb-lime);
  --accent-soft: var(--jb-peach);

  /* Type families */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* Weights */
  --fw-light: 300; --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;

  /* Type scale */
  --fs-display: clamp(3.5rem, 7vw, 6rem);
  --fs-h1:      clamp(2.75rem, 5vw, 4rem);
  --fs-h2:      2.5rem;
  --fs-h3:      1.75rem;
  --fs-h4:      1.25rem;
  --fs-lead:    1.25rem;
  --fs-body:    1rem;
  --fs-sm:      0.875rem;
  --fs-xs:      0.75rem;

  /* Line heights & spacing */
  --lh-tight: 1.05; --lh-snug: 1.2; --lh-normal: 1.6; --lh-relaxed: 1.75;
  --ls-tight: -0.02em; --ls-wide: 0.08em; --ls-wider: 0.18em;

  /* Spacing scale (8px base) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;  --space-6: 2rem;   --space-7: 3rem;    --space-8: 4rem;
  --space-9: 6rem;    --space-10: 8rem;

  /* Section rhythm / container */
  --section-pad-y:  clamp(4rem, 9vw, 8rem);
  --container-max:  1480px;
  --container-pad:  clamp(1.25rem, 4vw, 3.5rem);

  /* Left floating nav rail */
  --rail-w:    176px;
  --rail-gap:  clamp(0.9rem, 2vw, 1.75rem);

  /* Radii */
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 14px;
  --radius-lg: 22px; --radius-xl: 32px; --radius-pill: 999px;

  /* Shadows — warm, olive-tinted */
  --shadow-xs: 0 1px 2px rgba(65,81,17,0.06);
  --shadow-sm: 0 2px 8px rgba(65,81,17,0.08);
  --shadow-md: 0 10px 30px rgba(65,81,17,0.10);
  --shadow-lg: 0 24px 60px rgba(65,81,17,0.14);
  --shadow-coral: 0 14px 34px rgba(251,129,89,0.30);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 0.16s; --dur-base: 0.28s; --dur-slow: 0.5s;

  --z-header: 100; --z-overlay: 500; --z-modal: 600; --z-toast: 700;
}

/* ============================================================
   Base reset + element defaults
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  font-weight: var(--fw-regular);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-medium); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
::selection { background: var(--jb-lime); color: var(--jb-olive-800); }

/* ============================================================
   Layout helpers
   ============================================================ */
.jb-wrap { max-width: var(--container-max); margin: 0 auto; }
.jb-section { padding: var(--section-pad-y) var(--container-pad); }
.jb-section--sunken { background: var(--surface-sunken); }
.jb-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.jb-eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--brand); display: inline-block; }
.jb-eyebrow--plain::before { display: none; }

/* Section heading block */
.jb-heading { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.jb-heading--center { align-items: center; text-align: center; }
.jb-heading h2 {
  font-size: var(--fs-h2); font-weight: 600; line-height: 1.1;
  letter-spacing: var(--ls-tight); color: var(--text-strong);
  margin: 0; max-width: 34ch;
}
.jb-heading--center h2 { max-width: 24ch; }
.jb-heading .jb-lead {
  font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted);
  margin: 0.25rem 0 0; max-width: 52ch;
}

/* ============================================================
   Button
   ============================================================ */
.jb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: var(--fw-semibold);
  letter-spacing: 0.01em; line-height: 1; cursor: pointer; text-decoration: none;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  padding: 0.75rem 1.5rem; font-size: 0.9375rem;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.jb-btn:hover { text-decoration: none; }
.jb-btn:active { transform: scale(0.97); }
.jb-btn--sm { padding: 0.5rem 1rem;    font-size: 0.8125rem; }
.jb-btn--lg { padding: 1rem 2.25rem;   font-size: 1.0625rem; }
.jb-btn--full { width: 100%; }
.jb-btn--primary {
  background: var(--brand); color: var(--text-on-coral);
  border-color: var(--brand); box-shadow: var(--shadow-coral);
}
.jb-btn--primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--text-on-coral); }
.jb-btn--secondary {
  background: transparent; color: var(--text-strong); border-color: var(--border-strong);
}
.jb-btn--secondary:hover { background: var(--text-strong); color: var(--text-on-olive); }
.jb-btn--ghost { background: transparent; color: var(--text-link); border-color: transparent; }
.jb-btn--ghost:hover { background: var(--brand-wash); }
.jb-btn--lime { background: var(--accent); color: var(--jb-olive-800); border-color: var(--accent); }
.jb-btn--lime:hover { background: var(--jb-lime-600); }

/* ============================================================
   Tag / chip
   ============================================================ */
.jb-tag {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill);
  background: var(--surface-sunken); color: var(--text-body); border: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-out);
}
button.jb-tag { cursor: pointer; }
.jb-tag--coral { background: var(--brand-wash); color: var(--brand-hover); }
.jb-tag--lime  { background: var(--jb-lime-100); color: var(--jb-olive-600); }
.jb-tag--olive { background: var(--surface-inverse); color: var(--text-on-olive); }
.jb-tag.is-active { background: var(--brand); color: var(--text-on-coral); border-color: var(--brand); }

/* ============================================================
   Stat
   ============================================================ */
.jb-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.jb-stat__value {
  font-family: var(--font-display); font-size: clamp(2.75rem, 4vw, 3.75rem);
  font-weight: var(--fw-semibold); line-height: 1; color: var(--text-strong);
  letter-spacing: var(--ls-tight);
}
.jb-stat__value span { color: var(--brand); }
.jb-stat__label {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-muted); max-width: 14ch;
}

/* ============================================================
   Header / nav
   ============================================================ */
.jb-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: transparent; border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease-out);
}
.jb-header.is-scrolled {
  background: rgba(242,232,223,0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.jb-header__inner {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad);
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.jb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.jb-brand:hover { text-decoration: none; }
.jb-brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.jb-brand__name {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  color: var(--text-strong); letter-spacing: -0.01em;
}
.jb-brand__tld { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--brand); }
.jb-nav { display: flex; align-items: center; gap: 28px; }
.jb-nav a {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  color: var(--text-body); text-decoration: none; letter-spacing: 0.01em;
  transition: color var(--dur-base) var(--ease-out);
}
.jb-nav a:hover { color: var(--brand); text-decoration: none; }
.jb-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.jb-burger span { display: block; width: 22px; height: 2px; background: var(--text-strong); margin: 4px 0; transition: all var(--dur-base) var(--ease-out); }

/* ============================================================
   Hero
   ============================================================ */
.jb-hero { position: relative; overflow: hidden; padding: clamp(3rem,7vw,6rem) var(--container-pad) clamp(3rem,6vw,5rem); }
.jb-bloom { position: absolute; border-radius: 50%; pointer-events: none; }
.jb-bloom--peach { top: -120px; right: -80px; width: 420px; height: 420px;
  background: radial-gradient(circle, var(--jb-peach), transparent 68%); opacity: 0.6; }
.jb-bloom--lime { bottom: -160px; left: -120px; width: 460px; height: 460px;
  background: radial-gradient(circle, var(--jb-lime-100), transparent 70%); opacity: 0.7; }
.jb-hero__grid {
  position: relative; max-width: var(--container-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem,5vw,5rem); align-items: center;
}
.jb-hero h1 {
  font-family: var(--font-display); font-size: clamp(3rem,6vw,5.5rem);
  line-height: 1.02; letter-spacing: -0.02em; color: var(--text-strong);
  margin: 0 0 1.25rem; font-weight: 600;
}
.jb-hero h1 em { color: var(--brand); font-weight: 500; font-style: italic; }
.jb-hero__lead {
  font-size: clamp(1rem,1.4vw,1.25rem); line-height: 1.65; color: var(--text-muted);
  max-width: 46ch; margin: 0 0 2rem;
}
.jb-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.jb-hero__stats { display: flex; gap: clamp(2rem,4vw,3.5rem); }
.jb-hero__media { position: relative; }
.jb-hero__frame {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--surface-sunken);
  border: 1px solid var(--border-soft); transform: rotate(1.5deg);
}
.jb-hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.jb-hero__chip {
  position: absolute; bottom: -22px; left: -22px; background: var(--surface-card);
  border-radius: var(--radius-lg); padding: 14px 18px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px; transform: rotate(-2deg);
}
.jb-hero__chip-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--jb-lime);
  display: grid; place-items: center; font-size: 20px; }
.jb-hero__chip-t { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--text-strong); }
.jb-hero__chip-s { font-family: var(--font-body); font-size: 11.5px; color: var(--text-muted); }

/* ============================================================
   Portfolio grid + cards
   ============================================================ */
.jb-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 40px; }
.jb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 30px; }
.jb-card {
  background: var(--surface-card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft); cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  text-align: left; padding: 0; font: inherit; color: inherit; width: 100%; display: block;
}
.jb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.jb-card__media { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-sunken); }
.jb-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.jb-card:hover .jb-card__media img { transform: scale(1.06); }
.jb-card__cat {
  position: absolute; top: 0.875rem; left: 0.875rem; background: var(--surface-card);
  color: var(--brand-hover); font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-xs);
}
.jb-card__body { display: block; padding: var(--space-5); }
.jb-card__body h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--text-strong); margin: 0 0 0.5rem; line-height: 1.15; }
.jb-card__meta { display: flex; gap: 1.25rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.jb-card__meta > span { display: flex; flex-direction: column; gap: 0.1rem; }
.jb-meta__k { font-family: var(--font-body); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); display: block; }
.jb-meta__v { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--text-body); }
.jb-meta__v--accent { color: var(--brand-hover); }
.jb-card__desc { display: block; font-family: var(--font-body); font-size: 0.9375rem; color: var(--text-muted);
  line-height: 1.6; margin: 0 0 1rem; }
.jb-card__cta { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 600; color: var(--brand); letter-spacing: 0.01em; }
.jb-card__cta span { transition: transform var(--dur-base) var(--ease-out); }
.jb-card:hover .jb-card__cta span { transform: translateX(4px); }

/* ============================================================
   Case modal
   ============================================================ */
.jb-modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(52,64,16,0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 24px;
}
.jb-modal-overlay[hidden] { display: none; }
.jb-modal {
  background: var(--surface-card); border-radius: var(--radius-xl); overflow: hidden;
  max-width: 920px; width: 100%; max-height: 88vh; display: grid;
  grid-template-columns: 1.1fr 1fr; box-shadow: var(--shadow-lg);
}
.jb-modal__img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.jb-modal__body { padding: var(--space-7); overflow-y: auto; }
.jb-modal__body h2 { font-family: var(--font-display); font-size: 2.5rem; margin: 16px 0 8px; color: var(--text-strong); }
.jb-modal__facts { display: flex; gap: 28px; margin: 0 0 20px; }
.jb-modal__facts .jb-meta__v { font-size: 1rem; }
.jb-modal__desc { font-family: var(--font-body); line-height: 1.7; color: var(--text-muted); }
.jb-modal__actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   About
   ============================================================ */
.jb-about__grid { max-width: var(--container-max); margin: 0 auto; display: grid;
  grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.jb-about__media { position: relative; }
.jb-about__frame { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5;
  box-shadow: var(--shadow-md); border: 1px solid var(--border-soft); }
.jb-about__frame img { width: 100%; height: 100%; object-fit: cover; }
.jb-about__hi { position: absolute; top: -16px; right: -10px; background: var(--brand); color: #fff;
  font-family: var(--font-display); font-style: italic; font-size: 18px; padding: 10px 16px;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-coral); transform: rotate(4deg); }
.jb-about__body p:first-of-type { font-size: 17px; line-height: 1.75; color: var(--text-body); max-width: 52ch; }
.jb-about__body p:last-of-type { font-size: 15px; line-height: 1.75; color: var(--text-muted); max-width: 52ch; }
.jb-about__values { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.jb-prose { margin-top: var(--space-5); }

/* ============================================================
   Services
   ============================================================ */
.jb-cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.jb-service {
  background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4);
  box-shadow: var(--shadow-xs); height: 100%;
}
.jb-service--featured { background: var(--surface-inverse); border-color: var(--surface-inverse); box-shadow: var(--shadow-md); }
.jb-service__icon { width: 3rem; height: 3rem; border-radius: var(--radius-md); background: var(--brand-wash);
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand); font-size: 1.5rem; }
.jb-service--featured .jb-service__icon { background: rgba(255,255,255,0.12); color: var(--accent-soft); }
.jb-service h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--text-strong); margin: 0; }
.jb-service--featured h3 { color: var(--jb-white); }
.jb-service p { font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.6; color: var(--text-muted); margin: 0; flex: 1; }
.jb-service--featured p { color: rgba(242,232,223,0.8); }
.jb-service__price { display: flex; align-items: baseline; gap: 0.4rem; }
.jb-service__note { font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.jb-service--featured .jb-service__note { color: var(--accent-soft); }
.jb-service__amount { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--text-strong); }
.jb-service--featured .jb-service__amount { color: var(--jb-white); }
.jb-service__btn { width: 100%; padding: 0.7rem 1rem; border-radius: var(--radius-sm); font-family: var(--font-body);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; border: 1.5px solid var(--brand);
  background: transparent; color: var(--brand); transition: all var(--dur-base) var(--ease-out); text-align: center; }
.jb-service__btn:hover { background: var(--brand); color: var(--text-on-coral); }
.jb-service--featured .jb-service__btn { border-color: var(--accent-soft); background: var(--brand); color: var(--text-on-coral); }
.jb-service--featured .jb-service__btn:hover { background: var(--brand-hover); }

/* ============================================================
   Process
   ============================================================ */
.jb-process { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-top: 48px; }
.jb-step { display: flex; flex-direction: column; gap: var(--space-3); position: relative; }
.jb-step__top { display: flex; align-items: center; gap: 0.85rem; }
.jb-step__num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; line-height: 1;
  color: var(--brand); font-style: italic; min-width: 2.5rem; }
.jb-step__rule { flex: 1; height: 1.5px; background: var(--border-soft); }
.jb-step h4 { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--text-strong); margin: 0; }
.jb-step p { font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ============================================================
   Testimonials
   ============================================================ */
.jb-testimonial {
  background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: var(--space-6); margin: 0; display: flex; flex-direction: column; gap: var(--space-4);
  box-shadow: var(--shadow-sm); height: 100%;
}
.jb-testimonial__quote-mark { font-family: var(--font-display); font-size: 3.5rem; line-height: 0.6;
  color: var(--accent-soft); height: 1.4rem; }
.jb-testimonial blockquote { margin: 0; font-family: var(--font-display); font-size: 1.375rem;
  font-style: italic; line-height: 1.4; color: var(--text-strong); flex: 1; }
.jb-testimonial__result { align-self: flex-start; font-family: var(--font-body); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--jb-olive-600);
  background: var(--jb-lime-100); padding: 0.35rem 0.75rem; border-radius: var(--radius-pill); }
.jb-testimonial figcaption { display: flex; align-items: center; gap: 0.85rem;
  border-top: 1px solid var(--border-soft); padding-top: var(--space-4); }
.jb-testimonial__avatar { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-pill);
  flex-shrink: 0; background: var(--surface-accent); display: inline-flex; align-items: center;
  justify-content: center; font-family: var(--font-display); font-size: 1.25rem; color: var(--jb-olive-800); }
.jb-testimonial__name { font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; color: var(--text-strong); display: block; }
.jb-testimonial__company { font-family: var(--font-body); font-size: 0.8125rem; color: var(--text-muted); }

/* ============================================================
   Results band
   ============================================================ */
.jb-results { max-width: var(--container-max); margin: 0 auto; background: var(--surface-inverse);
  border-radius: var(--radius-xl); padding: clamp(2.5rem,5vw,4rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; }
.jb-result { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.jb-result__value { font-family: var(--font-display); font-size: clamp(2.75rem,4vw,3.75rem);
  font-weight: 600; line-height: 1; color: var(--jb-white); }
.jb-result__value span { color: var(--accent-soft); }
.jb-result__label { font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--jb-lime); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.jb-faq { max-width: 820px; margin: 0 auto; }
.jb-accordions { margin-top: 40px; }
.jb-acc { border-bottom: 1px solid var(--border-soft); }
.jb-acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem 0; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; color: var(--text-strong); }
.jb-acc__plus { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: var(--radius-pill);
  background: var(--surface-sunken); color: var(--text-body); display: inline-flex; align-items: center;
  justify-content: center; font-family: var(--font-body); font-size: 1.25rem; line-height: 1;
  transition: all var(--dur-base) var(--ease-out); }
.jb-acc.is-open .jb-acc__plus { background: var(--brand); color: var(--text-on-coral); transform: rotate(45deg); }
.jb-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-out); }
.jb-acc.is-open .jb-acc__panel { grid-template-rows: 1fr; }
.jb-acc__panel-inner { overflow: hidden; }
.jb-acc__content { padding-bottom: 1.4rem; font-family: var(--font-body); font-size: 1rem;
  line-height: 1.7; color: var(--text-muted); max-width: 60ch; }

/* ============================================================
   Contact
   ============================================================ */
.jb-contact__grid { max-width: var(--container-max); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.jb-contact h2 { font-family: var(--font-display); font-size: clamp(2.5rem,4.5vw,4rem); line-height: 1.05;
  color: var(--text-strong); margin: 0 0 1rem; font-weight: 600; }
.jb-contact h2 em { color: var(--brand); font-weight: 500; font-style: italic; }
.jb-contact__lead { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--text-muted); max-width: 40ch; }
.jb-contact__details { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.jb-contact__row { display: flex; gap: 12px; align-items: baseline; }
.jb-contact__k { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand); width: 84px; flex-shrink: 0; }
.jb-contact__v { font-family: var(--font-body); font-weight: 500; color: var(--text-body); }
.jb-form { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: var(--radius-xl);
  padding: clamp(1.75rem,3vw,2.5rem); box-shadow: var(--shadow-sm); }
.jb-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jb-field { display: flex; flex-direction: column; gap: 0.4rem; }
.jb-field--full { grid-column: 1 / -1; }
.jb-field__label { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.jb-field__label span { color: var(--brand); }
.jb-input, .jb-select, .jb-textarea {
  width: 100%; font-family: var(--font-body); font-size: 0.9375rem; color: var(--text-body);
  background: var(--surface-card); border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.jb-input:focus, .jb-select:focus, .jb-textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-wash); }
.jb-textarea { resize: vertical; min-height: 110px; }
.jb-select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) center, calc(100% - 0.8rem) center;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.jb-form__success { text-align: center; padding: 40px 0; }
.jb-form__success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--jb-lime);
  display: grid; place-items: center; margin: 0 auto 18px; font-size: 28px; }
.jb-form__success h3 { font-family: var(--font-display); font-size: 28px; color: var(--text-strong); margin: 0 0 8px; }
.jb-notice { grid-column: 1 / -1; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  background: var(--brand-wash); color: var(--brand-hover); font-size: 0.875rem; font-weight: 600; }

/* ============================================================
   Footer
   ============================================================ */
.jb-footer { background: var(--surface-inverse); color: var(--text-on-olive);
  padding: clamp(3rem,5vw,4.5rem) var(--container-pad) 2rem; }
.jb-footer__inner { max-width: var(--container-max); margin: 0 auto; }
.jb-footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.jb-footer__brand { max-width: 320px; }
.jb-footer__lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.jb-footer__lockup img { width: 44px; height: 44px; border-radius: 50%; }
.jb-footer__name { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--jb-white); }
.jb-footer__name span { font-family: var(--font-body); font-size: 13px; color: var(--accent-soft); }
.jb-footer__brand p { font-family: var(--font-body); font-size: 14px; line-height: 1.7; color: rgba(242,232,223,0.72); }
.jb-socials { display: flex; gap: 14px; flex-wrap: wrap; }
.jb-social { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(242,232,223,0.25);
  display: grid; place-items: center; transition: all 0.2s var(--ease-out); }
.jb-social:hover { background: var(--brand); border-color: var(--brand); }
.jb-social img { width: 18px; height: 18px; }
.jb-footer__bottom { border-top: 1px solid rgba(242,232,223,0.18); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-body); font-size: 12.5px; color: rgba(242,232,223,0.6); }
.jb-footer__bottom a { color: rgba(242,232,223,0.6); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .jb-hero__grid, .jb-about__grid, .jb-contact__grid { grid-template-columns: 1fr; }
  .jb-modal { grid-template-columns: 1fr; max-height: 92vh; }
  .jb-modal__img { max-height: 280px; }
  .jb-nav {
    position: absolute; top: 76px; right: 0; left: 0; flex-direction: column; gap: 0;
    background: rgba(242,232,223,0.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft); padding: 8px 0; display: none;
  }
  .jb-nav.is-open { display: flex; }
  .jb-nav a { width: 100%; padding: 14px var(--container-pad); }
  .jb-burger { display: block; }
  .jb-header.is-nav-open .jb-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .jb-header.is-nav-open .jb-burger span:nth-child(2) { opacity: 0; }
  .jb-header.is-nav-open .jb-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .jb-headcta { display: none; }
  .jb-form__grid { grid-template-columns: 1fr; }
  .jb-hero__stats { flex-wrap: wrap; gap: 1.5rem 2rem; }
}

/* Accessibility */
.jb-skip-link { position: absolute; left: -999px; top: 0; background: var(--brand);
  color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; z-index: 999; }
.jb-skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Left floating nav rail + maximized graphic exposure
   ============================================================ */
html { scroll-padding-top: 32px; }

.jb-rail {
  position: fixed; z-index: var(--z-header);
  top: 50%; left: clamp(14px, 1.6vw, 28px); transform: translateY(-50%);
  width: var(--rail-w);
  max-height: calc(100vh - 28px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 14px 18px;
  background: rgba(254, 254, 254, 0.82);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.jb-rail__brand { display: flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 4px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.jb-rail__brand:hover { text-decoration: none; }
.jb-rail__brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.jb-rail__name { font-family: var(--font-display); font-size: 21px; font-weight: 600;
  color: var(--text-strong); letter-spacing: -0.01em; line-height: 1; }
.jb-rail__name span { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--brand); }
.jb-rail__links { display: flex; flex-direction: column; gap: 2px; }
.jb-rail__links a { font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--text-body); text-decoration: none; letter-spacing: 0.01em;
  padding: 8px 11px; border-radius: var(--radius-sm);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.jb-rail__links a:hover { background: var(--brand-wash); color: var(--brand-hover); text-decoration: none; }
.jb-rail__links a.is-active { background: var(--brand); color: var(--text-on-coral); }
.jb-rail__cta { margin-top: 14px; }
.jb-rail__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.jb-rail__burger span { display: block; width: 22px; height: 2px; background: var(--text-strong);
  margin: 4px 0; border-radius: 2px; transition: all var(--dur-base) var(--ease-out); }

/* Offset page content so it clears the floating rail (desktop + tablet) */
@media (min-width: 761px) {
  body { padding-left: calc(clamp(14px, 1.6vw, 28px) + var(--rail-w) + var(--rail-gap)); }
}

/* --- Maximize graphic exposure --- */
.jb-hero { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(2.625rem, 5.25vw, 4.5rem); }
/* -25% gap between the hero and the Commissions section */
#portafolio { padding-top: clamp(3rem, 6.75vw, 6rem); }
.jb-hero__frame { aspect-ratio: 1 / 1; box-shadow: var(--shadow-lg); }
.jb-bloom--peach { width: 560px; height: 560px; }
.jb-bloom--lime { width: 620px; height: 620px; }
/* Two-column splits only when there is real room beside the rail */
@media (min-width: 1081px) {
  .jb-hero__grid { grid-template-columns: 1fr 1.02fr; gap: clamp(2.5rem, 5vw, 6rem); }
  .jb-about__grid { grid-template-columns: 0.95fr 1.05fr; }
}

/* --- Rail → top floating bar on small screens (phones) --- */
@media (max-width: 760px) {
  .jb-rail {
    top: 12px; left: 12px; right: 12px; transform: none; width: auto;
    flex-direction: row; align-items: center; gap: 12px; padding: 9px 9px 9px 14px;
    max-height: none; overflow: visible;   /* let the dropdown escape the bar */
  }
  .jb-rail__brand { border: none; padding: 0; margin: 0; margin-right: auto; }
  .jb-rail__burger { display: inline-flex; order: 3; }
  .jb-rail__cta { margin-top: 0; order: 2; }
  .jb-rail__links {
    order: 4; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(254, 254, 254, 0.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: 8px; display: none;
  }
  .jb-rail.is-open .jb-rail__links { display: flex; }
  .jb-rail.is-open .jb-rail__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .jb-rail.is-open .jb-rail__burger span:nth-child(2) { opacity: 0; }
  .jb-rail.is-open .jb-rail__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  html { scroll-padding-top: 84px; }
}
@media (max-width: 460px) {
  .jb-rail__cta { display: none; }
}

/* ============================================================
   Work cards — expandable / collapsible
   Collapsed: image + title. Expanded: image grows, text + Request appear.
   ============================================================ */
.jb-wcard {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.jb-wcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.jb-wcard.is-open { transform: none; box-shadow: var(--shadow-lg); grid-column: 1 / -1; }

.jb-wcard__media {
  display: block; position: relative; width: 100%;
  aspect-ratio: 4/3; overflow: hidden; background: var(--surface-sunken);
  border: none; padding: 0; cursor: pointer;
  transition: aspect-ratio var(--dur-slow) var(--ease-out);
}
.jb-wcard.is-open .jb-wcard__media { aspect-ratio: 16/10; max-height: 60vh; }   /* maximize the image, full-row banner */
.jb-wcard.is-open .jb-wcard__content { max-width: 70ch; }
.jb-wcard__media img { width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out); }
.jb-wcard:hover .jb-wcard__media img { transform: scale(1.05); }
.jb-wcard__cat {
  position: absolute; top: 0.875rem; left: 0.875rem; background: var(--surface-card);
  color: var(--brand-hover); font-family: var(--font-body); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-xs);
}

.jb-wcard__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font: inherit; color: inherit; padding: var(--space-5);
}
.jb-wcard__titles { display: flex; flex-direction: column; gap: 2px; }
.jb-wcard__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--text-strong); line-height: 1.15; }
.jb-wcard__client { font-family: var(--font-body); font-size: 0.8125rem; color: var(--text-muted); }
.jb-wcard__toggle {
  flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-pill);
  background: var(--surface-sunken); color: var(--text-body);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 1.4rem; line-height: 1;
  transition: all var(--dur-base) var(--ease-out);
}
.jb-wcard__bar:hover .jb-wcard__toggle { background: var(--brand-wash); color: var(--brand-hover); }
.jb-wcard.is-open .jb-wcard__toggle { background: var(--brand); color: var(--text-on-coral); transform: rotate(45deg); }

.jb-wcard__count {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(52, 64, 16, 0.62); color: var(--jb-cream);
  font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 0.28rem 0.6rem; border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* Gallery thumbnails (revealed when the card is open) */
.jb-wcard__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.jb-thumb {
  width: 72px; height: 54px; flex-shrink: 0; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-sunken); transition: border-color var(--dur-base) var(--ease-out);
}
.jb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jb-thumb:hover { border-color: var(--brand-wash); }
.jb-thumb.is-active { border-color: var(--brand); }

.jb-wcard__panel { display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out); }
.jb-wcard.is-open .jb-wcard__panel { grid-template-rows: 1fr; }
.jb-wcard__panel-inner { overflow: hidden; }
.jb-wcard__content { padding: 0 var(--space-5) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4); }
.jb-wcard__meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.jb-wcard__desc { font-family: var(--font-body); font-size: 0.9375rem;
  color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ============================================================
   Per-image caption + zoom affordance on work cards
   ============================================================ */
.jb-wcard__count { top: 0.75rem; right: 0.75rem; bottom: auto; }   /* move count to top-right */
.jb-wcard__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 3.2rem 0.7rem 1rem;
  background: linear-gradient(to top, rgba(52,64,16,0.74), rgba(52,64,16,0));
  color: var(--jb-cream); font-family: var(--font-body); font-size: 0.8125rem;
  font-weight: 600; letter-spacing: 0.01em; line-height: 1.3;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.jb-wcard.is-open .jb-wcard__caption { opacity: 1; transform: none; }
.jb-wcard__zoom {
  position: absolute; bottom: 0.7rem; right: 0.75rem;
  width: 2rem; height: 2rem; border-radius: var(--radius-pill);
  background: rgba(254,254,254,0.92); color: var(--text-strong);
  display: none; align-items: center; justify-content: center; font-size: 1rem;
  box-shadow: var(--shadow-sm); pointer-events: none;
}
.jb-wcard.is-open .jb-wcard__zoom { display: inline-flex; }
.jb-wcard.is-open .jb-wcard__media { cursor: zoom-in; }

/* ============================================================
   Resources button (under services)
   ============================================================ */
.jb-resources { display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
  margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.jb-resources__note { font-family: var(--font-body); font-size: 0.8125rem; color: var(--text-muted); }

/* ============================================================
   Commission request modal (reuses .jb-modal-overlay base)
   ============================================================ */
.jb-modal--form {
  grid-template-columns: 1fr; max-width: 640px; width: 100%;
  position: relative; max-height: 92vh; overflow-y: auto;
}
.jb-modal__form-body { padding: clamp(1.75rem, 4vw, 2.75rem); }
.jb-modal__form-body h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05; margin: 0.5rem 0 0.5rem; color: var(--text-strong);
}
.jb-modal__form-body h2 em { color: var(--brand); font-style: italic; font-weight: 500; }
.jb-modal__sub { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1.25rem; }
.jb-modal--form .jb-form {
  background: none; border: none; box-shadow: none; padding: 0; border-radius: 0;
}
.jb-modal__close {
  position: absolute; top: 0.85rem; right: 0.85rem; z-index: 2;
  width: 2.4rem; height: 2.4rem; border-radius: var(--radius-pill);
  border: none; background: var(--surface-sunken); color: var(--text-strong);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.jb-modal__close:hover { background: var(--brand); color: var(--text-on-coral); }

/* ============================================================
   Image zoom / lightbox
   ============================================================ */
.jb-lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(52,64,16,0.9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
}
.jb-lightbox[hidden] { display: none; }
.jb-lightbox__stage {
  flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
}
.jb-lightbox__img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  cursor: zoom-in; transition: transform var(--dur-base) var(--ease-out);
  transform-origin: center center; will-change: transform;
}
.jb-lightbox.is-zoomed .jb-lightbox__img { transform: scale(2.4); cursor: zoom-out; }
.jb-lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2rem) 1.2rem; color: var(--jb-cream);
}
.jb-lightbox__caption { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; }
.jb-lightbox__hint { font-family: var(--font-body); font-size: 0.75rem; color: rgba(242,232,223,0.65);
  letter-spacing: 0.04em; }
.jb-lightbox__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 2.6rem; height: 2.6rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(242,232,223,0.3); background: rgba(52,64,16,0.4);
  color: var(--jb-cream); font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background var(--dur-base) var(--ease-out);
}
.jb-lightbox__close:hover { background: var(--brand); border-color: var(--brand); }
@media (max-width: 560px) {
  .jb-lightbox__hint { display: none; }
}

/* Lightbox navigation arrows + counter */
.jb-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 3rem; height: 3rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(242,232,223,0.3); background: rgba(52,64,16,0.45);
  color: var(--jb-cream); font-family: var(--font-body); font-size: 2rem; line-height: 0.9;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.jb-lightbox__nav:hover { background: var(--brand); border-color: var(--brand); }
.jb-lightbox__nav--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.jb-lightbox__nav--next { right: clamp(0.5rem, 2vw, 1.5rem); }
.jb-lightbox__meta { display: inline-flex; align-items: center; gap: 1rem; }
.jb-lightbox__count { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.04em; color: var(--jb-cream); background: rgba(52,64,16,0.5);
  padding: 0.25rem 0.65rem; border-radius: var(--radius-pill); }
@media (max-width: 560px) {
  .jb-lightbox__nav { width: 2.5rem; height: 2.5rem; font-size: 1.6rem; }
}

/* ============================================================
   Portfolio section — wide editable image banner
   ============================================================ */
.jb-portfolio-banner {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  background: var(--surface-sunken);
  aspect-ratio: 16 / 5.2;
}
.jb-portfolio-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jb-portfolio-link { display: block; text-decoration: none; }
.jb-portfolio-link .jb-portfolio-banner {
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.jb-portfolio-link:hover .jb-portfolio-banner { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
@media (max-width: 700px) { .jb-portfolio-banner { aspect-ratio: 16 / 9; } }

/* ============================================================
   Static site background (main site only — body gets .jb-bg)
   Fixed pastel artwork behind a warm cream veil, so it reads as a
   subtle ambient backdrop while text/cards stay legible.
   Sunken/olive sections keep their fills, breaking up the image.
   ============================================================ */
body.jb-bg {
  background-color: var(--surface-page);
  background-image:
    linear-gradient(rgba(242, 232, 223, 0.62), rgba(242, 232, 223, 0.62)),
    url('assets/img/fondo-web-1.webp');
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
}

/* Face-focused cropping for collections flagged .jb-wcard--faces
   (e.g. Original Art): bias the cover/thumbnail crop toward the top so
   characters' faces stay in frame. The lightbox uses object-fit: contain,
   so it always shows the full image regardless. */
.jb-wcard--faces .jb-wcard__main,
.jb-wcard--faces .jb-thumb img { object-position: center 22%; }

/* The Portfolio banner shows a preview of the portfolio page: anchor the crop
   to the top so the title and the start of the gallery stay visible. */
.jb-portfolio-banner img { object-position: 50% 0; }
