/* =========================================================
   James Garcia — Portfolio
   Palette
     --bg        #2B1A14   page
     --bg-deep   #241009   bands / footer
     --cream     #F7EBD2   primary text
     --paper     #FFF6E5   light surfaces
     --sand      #C9A982   secondary text / outlines
     --blush     #E7CBB0   body text
     --amber     #D9965B   accent
     --rust      #B56E4A   meta accent
     --clay      #8a5a44   labels
     --umber     #6B3F2A   CTA panel
   ========================================================= */
:root {
  --bg: #2B1A14;
  --bg-deep: #241009;
  --cream: #F7EBD2;
  --paper: #FFF6E5;
  --sand: #C9A982;
  --blush: #E7CBB0;
  --amber: #D9965B;
  --rust: #B56E4A;
  --clay: #8a5a44;
  --umber: #6B3F2A;
  --line: rgba(201, 169, 130, 0.25);
  --head: 'Tagesschrift', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a, button { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber); color: var(--bg); }
button { font-family: var(--body); color: inherit; }
button:focus { outline: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
img, video { max-width: 100%; }

.jg-root { position: relative; min-height: 100vh; background: var(--bg); overflow-x: clip; }

/* ---------- keyframes ---------- */
@keyframes jgRise { from { opacity: 0; transform: translateY(52px); } to { opacity: 1; transform: translateY(0); } }
@keyframes jgShake {
  0%, 100% { transform: translateY(4px) rotate(0); }
  15% { transform: translateY(4px) rotate(-9deg); }
  30% { transform: translateY(4px) rotate(7deg); }
  45% { transform: translateY(4px) rotate(-6deg); }
  60% { transform: translateY(4px) rotate(4deg); }
  75% { transform: translateY(4px) rotate(-2deg); }
}
@keyframes jgGalleryScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes grainFade { 0% { opacity: 0; } 20% { opacity: 1; } 74% { opacity: 1; } 100% { opacity: 0; } }
@keyframes grainMove {
  0% { background-position: 0 0; }
  25% { background-position: -96px 64px; }
  50% { background-position: 74px -74px; }
  75% { background-position: -58px 42px; }
  100% { background-position: 52px 84px; }
}
@keyframes grainBlur {
  0% { backdrop-filter: blur(0) brightness(1); -webkit-backdrop-filter: blur(0) brightness(1); }
  24% { backdrop-filter: blur(13px) brightness(0.85); -webkit-backdrop-filter: blur(13px) brightness(0.85); }
  72% { backdrop-filter: blur(13px) brightness(0.85); -webkit-backdrop-filter: blur(13px) brightness(0.85); }
  100% { backdrop-filter: blur(0) brightness(1); -webkit-backdrop-filter: blur(0) brightness(1); }
}

.jg-reveal { animation: jgRise .9s cubic-bezier(.2, .7, .2, 1) both; animation-timeline: view(); animation-range: entry 0% cover 26%; }

/* ---------- global texture ---------- */
.jg-grain {
  position: fixed; inset: 0; left: -6px; top: -43px; z-index: 60; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- page transition ---------- */
.jg-transition { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.jg-transition[hidden] { display: none; }
.jg-transition__blur { position: absolute; inset: 0; animation: grainBlur 1.2s ease forwards; }
.jg-transition__grain { position: absolute; inset: 0; animation: grainFade 1.2s ease forwards; }
.jg-transition__tint { position: absolute; inset: 0; background: radial-gradient(130% 105% at 50% 45%, rgba(50, 29, 20, 0.34), rgba(28, 14, 9, 0.56)); }
.jg-transition__g1, .jg-transition__g2 { position: absolute; inset: -120px; background-image: url('../media/grain.png'); }
.jg-transition__g1 { opacity: 0.95; background-size: 240px 240px; animation: grainMove 0.3s steps(2) infinite; }
.jg-transition__g2 { opacity: 0.6; background-size: 150px 150px; animation: grainMove 0.44s steps(3) infinite reverse; }

/* ---------- hand-drawn outline + buttons ---------- */
.jg-rough { position: absolute; inset: -2px; pointer-events: none; overflow: visible; }
.jg-rough rect { fill: none; width: calc(100% - 6px); height: calc(100% - 6px); }

.jg-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  min-height: 50px; padding: 0 24px; border: none; cursor: pointer; text-decoration: none;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  border-radius: 20px 8px 18px 9px;
  transform: rotate(var(--rot, 0deg));
  transition: transform .18s, background .18s;
}
.jg-btn:hover { transform: rotate(var(--rot, 0deg)) translate(var(--nudge, 2px), var(--nudge, 2px)); }
.jg-btn--amber { background: var(--amber); color: var(--bg-deep); font-weight: 700; }
.jg-btn--cream { background: var(--paper); color: var(--bg); font-weight: 700; }
.jg-btn--ghost { background: transparent; color: var(--cream); }
.jg-btn--alt { border-radius: 9px 18px 8px 20px; }

/* ---------- header ---------- */
.jg-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; padding: 8px 18px;
  background: linear-gradient(180deg, rgba(43, 26, 20, 0.94), rgba(43, 26, 20, 0.6) 72%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.jg-logo { display: flex; align-items: center; padding: 2px; min-height: 44px; }
.jg-navlogo { height: 38px; width: auto; display: block; margin: -2px 0; transform: translateY(4px); }
.jg-logo:hover .jg-navlogo, .jg-logo:focus-visible .jg-navlogo { animation: jgShake .55s ease-in-out; }

.jg-desknav { display: none; align-items: center; gap: 4px; }
.jg-navlink {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--head); font-weight: 400; font-size: 15px; letter-spacing: 0.01em;
  color: var(--cream); text-decoration: none; transition: color .2s;
}
.jg-navlink:hover { color: var(--amber); }
.jg-navlink[aria-current="page"] { color: var(--amber); }
.jg-navlink__circle { position: absolute; left: -6px; top: -1px; width: calc(100% + 12px); height: calc(100% + 6px); overflow: visible; pointer-events: none; }

.jg-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; background: rgba(255, 246, 229, 0.06);
  border: 1px solid rgba(201, 169, 130, 0.35); border-radius: 10px; cursor: pointer;
}
.jg-burger span { display: block; width: 20px; height: 2px; background: var(--cream); margin: 0 auto; border-radius: 2px; }

/* mobile menu */
.jg-menu { position: fixed; inset: 0; z-index: 55; background: var(--bg-deep); display: flex; flex-direction: column; padding: 20px; }
.jg-menu[hidden] { display: none; }
.jg-menu__top { display: flex; align-items: center; justify-content: space-between; }
.jg-menu__name { font-family: 'Style Script', cursive; font-weight: 700; font-size: 26px; color: var(--cream); }
.jg-menu__close {
  width: 46px; height: 46px; background: rgba(255, 246, 229, 0.06); border: 1px solid rgba(201, 169, 130, 0.35);
  border-radius: 10px; color: var(--cream); font-size: 22px; cursor: pointer;
}
.jg-menu__nav { display: flex; flex-direction: column; gap: 4px; margin-top: 38px; }
.jg-menu__link {
  display: flex; align-items: center; min-height: 56px; padding: 4px 0; text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 130, 0.15);
  font-family: var(--head); font-weight: 400; font-size: 30px; color: var(--cream);
}
.jg-menu__link[aria-current="page"] { color: var(--amber); }
.jg-menu__foot { margin-top: auto; padding-top: 24px; }
.jg-menu__foot p { margin: 0; color: var(--sand); font-size: 14px; }

/* ---------- shared type ---------- */
.jg-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--clay); text-transform: uppercase; margin: 0; }
.jg-chip { font-size: 12px; font-weight: 600; color: var(--blush); border: 1px solid rgba(201, 169, 130, 0.4); padding: 5px 11px; border-radius: 20px; }

/* =========================================================
   HOME
   ========================================================= */
.jg-hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 76px 20px 40px;
}
.jg-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg); }
.jg-hero__shade { position: absolute; inset: 0; background: rgba(43, 26, 20, 0.62); }
.jg-hero__tiles {
  position: absolute; top: 60px; left: 0; right: 0; bottom: 0; z-index: 0; display: grid;
  grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr);
  opacity: 0.85;
}
.jg-hero__tile { position: relative; overflow: hidden; opacity: 0; will-change: opacity; }
.jg-hero__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jg-hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, rgba(43, 26, 20, 0.3) 0%, rgba(43, 26, 20, 0.62) 100%); }
.jg-hero__content { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.jg-hero__sig { width: min(90vw, 720px); margin: -6px auto 30px; }
.jg-hero__sig img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.5)); }
.jg-hero__sub { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto 36px; width: min(88vw, 760px); }
.jg-hero__sub p { font-family: var(--head); font-size: clamp(20px, 4vw, 34px); line-height: 1.22; color: var(--cream); margin: 0; font-weight: 400; text-wrap: pretty; }
.jg-hero__ctas { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.jg-hero__ctas .jg-btn { min-height: 54px; padding: 0 26px; font-size: 16px; }
.jg-hero__ctas .jg-btn--amber { border-radius: 22px 8px 20px 9px; --nudge: 3px; }
.jg-hero__ctas .jg-btn--ghost { background: rgba(255, 246, 229, 0.05); border-radius: 9px 20px 8px 22px; }

/* selected work */
.jg-selected { position: relative; overflow: hidden; padding: 56px 0 100px; }
.jg-selected__inner { position: relative; isolation: isolate; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.jg-selected__head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.jg-selected__head h2 { font-family: var(--head); font-weight: 400; font-size: clamp(20px, 4.4vw, 30px); margin: 0; color: var(--cream); }
.jg-textlink { color: var(--sand); font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }

.jg-scenes { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 110px); padding-top: 52px; }
.jg-scene { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.jg-scene__media { position: relative; width: 100%; padding: 18px 10px; }
.jg-scene__glow {
  position: absolute; inset: 4%; border-radius: 40px; background: var(--glow); filter: blur(60px);
  opacity: 0.162; transition: opacity .5s ease; z-index: 0; pointer-events: none;
}
.jg-scene__media:hover .jg-scene__glow { opacity: 0.6; }
.jg-frame {
  position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 10px; overflow: hidden; padding: 0; border: none; background: transparent; cursor: pointer;
  transform: rotate(var(--rot)); box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  transition: box-shadow .45s ease, transform .45s ease;
}
.jg-scene__media:hover .jg-frame { box-shadow: 0 34px 66px rgba(0, 0, 0, 0.55); }
.jg-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.jg-scene__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.jg-scene__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--rust); }
.jg-scene__rule { flex: 1; height: 1px; background: rgba(201, 169, 130, 0.28); }
.jg-scene h3 { font-family: var(--head); font-weight: 400; font-size: clamp(26px, 4.6vw, 42px); line-height: 1.08; margin: 0 0 14px; color: var(--cream); text-wrap: pretty; }
.jg-scene h3 em { color: var(--sand); font-style: italic; }
.jg-scene__cats { font-size: 14px; font-weight: 500; color: var(--sand); margin: 0 0 20px; white-space: pre-wrap; }
.jg-scene__desc { font-size: 15px; line-height: 1.62; color: var(--blush); margin: 0 0 24px; max-width: 46ch; }
.jg-scene .jg-btn { min-height: 48px; padding: 0 20px; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--bg-deep); background: var(--accent); border-radius: 20px 8px 18px 8px; }

/* =========================================================
   WORK
   ========================================================= */
.jg-page { max-width: 1180px; margin: 0 auto; padding: 88px 20px 80px; }
.jg-page__head { max-width: 760px; margin: 0 0 46px; }
.jg-page__head h1 { font-family: var(--head); font-weight: 500; font-size: clamp(48px, 12vw, 104px); line-height: 0.92; margin: 0 0 18px; color: var(--cream); }
.jg-page__head p { font-size: clamp(15px, 3.4vw, 19px); line-height: 1.55; color: var(--sand); margin: 0; max-width: 56ch; }

.jg-worklist { display: flex; flex-direction: column; }
.jg-workitem { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding: 44px 0; }
.jg-workitem__media {
  position: relative; display: flex; align-items: flex-end; width: 100%; aspect-ratio: 16 / 9; padding: 16px;
  border-radius: 14px; overflow: hidden; cursor: pointer; border: 1px solid var(--line); background: var(--accent);
  transition: filter .2s;
}
.jg-workitem__media:hover { filter: brightness(1.08); }
.jg-workitem__media img.jg-fill { object-fit: contain; object-position: center; }
.jg-workitem__tag { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.jg-workitem__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.jg-workitem__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--clay); text-transform: uppercase; }
.jg-workitem h2 { font-family: var(--head); font-weight: 400; font-size: clamp(28px, 6vw, 42px); line-height: 1.02; margin: 0 0 14px; color: var(--cream); }
.jg-workitem__desc { font-size: 15.5px; line-height: 1.55; color: var(--blush); margin: 0 0 16px; max-width: 52ch; }
.jg-workitem__focus { font-size: 13px; line-height: 1.5; color: var(--sand); margin: 0 0 18px; max-width: 52ch; }
.jg-workitem__focus b { font-weight: 700; color: var(--amber); }
.jg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.jg-workitem .jg-btn { min-height: 46px; padding: 0 20px; font-size: 14.5px; border-radius: 8px 18px 8px 20px; }

/* =========================================================
   RESUME
   ========================================================= */
.jg-resume { max-width: 1080px; margin: 0 auto; padding: 88px 20px 90px; }
.jg-resume__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 26px; border-bottom: 1px solid rgba(201, 169, 130, 0.2); }
.jg-resume__head h1 { font-family: var(--head); font-weight: 500; font-size: clamp(40px, 10vw, 80px); line-height: 0.92; margin: 0; color: var(--cream); }
.jg-resume__role { font-family: var(--head); font-size: clamp(16px, 2.6vw, 20px); color: var(--amber); margin: 12px 0 0; }
.jg-resume__summary { font-size: 15px; line-height: 1.6; color: var(--sand); margin: 10px 0 0; max-width: 62ch; text-wrap: pretty; }
.jg-resume__contact { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 13.5px; color: var(--blush); }
.jg-resume__contact a { color: var(--blush); }
.jg-resume-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 36px 0; border-bottom: 1px solid rgba(201, 169, 130, 0.14); }
.jg-resume__items { display: flex; flex-direction: column; gap: 22px; }
.jg-resume__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.jg-resume__row h3 { font-family: var(--head); font-weight: 500; font-size: 21px; margin: 0; color: var(--cream); }
.jg-resume__meta { font-family: var(--mono); font-size: 12px; color: var(--rust); }
.jg-resume__sub { margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--blush); }
.jg-resume ul { margin: 8px 0 0; padding-left: 20px; font-size: 14.5px; line-height: 1.55; color: var(--sand); }
.jg-resume li { margin: 4px 0; }
.jg-skills { padding: 36px 0; }
.jg-skills > .jg-label { margin-bottom: 18px; }
.jg-abt3 { display: grid; grid-template-columns: 1fr; gap: 22px; }
.jg-skills h3 { font-family: var(--head); font-weight: 500; font-size: 18px; margin: 0 0 10px; color: var(--cream); }
.jg-skills .jg-chip { font-size: 12.5px; padding: 6px 12px; }
.jg-skills .jg-chips { margin: 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.jg-contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: 1180px; margin: 0 auto; padding: 96px 20px 70px; }
.jg-contact-split { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.jg-contact h1 { font-family: var(--head); font-weight: 400; font-size: clamp(44px, 11vw, 120px); line-height: 0.9; margin: 0 0 8px; color: var(--cream); white-space: nowrap; }
.jg-contact h1 em { color: var(--amber); }
.jg-contact__lead { font-size: clamp(16px, 3.6vw, 20px); line-height: 1.55; color: var(--sand); margin: 20px 0 32px; max-width: 52ch; }
.jg-contact__links { display: flex; flex-direction: column; gap: 12px; }
.jg-contact__card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-radius: 16px 8px 14px 7px; padding: 14px 18px; min-height: 44px; text-decoration: none;
  transform: rotate(var(--rot)); transition: transform .18s, background .18s;
}
.jg-contact__card--email { background: var(--paper); color: var(--bg); }
.jg-contact__card--email:hover { transform: rotate(var(--rot)) translate(2px, 2px); }
.jg-contact__card--li { background: transparent; color: var(--cream); border-radius: 8px 16px 7px 14px; }
.jg-contact__card--li:hover { background: rgba(255, 246, 229, 0.05); }
.jg-contact__card small { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--clay); text-transform: uppercase; }
.jg-contact__card strong { font-weight: 600; font-size: 14.5px; }
.jg-contact__arrow { font-size: 17px; color: var(--rust); }
.jg-gallery { overflow: hidden; contain: strict; border-radius: 16px; border: 1px solid var(--line); height: clamp(320px, 50vw, 520px); width: 100%; }
.jg-gallery__track { display: flex; flex-direction: column; will-change: transform; backface-visibility: hidden; animation: jgGalleryScroll 70s linear infinite; }
.jg-gallery__track img { width: 100%; height: 220px; object-fit: cover; object-position: 50% 50%; display: block; }

/* =========================================================
   CASE STUDY
   ========================================================= */
.jg-cs-hero { position: relative; background: var(--bg-deep); padding: 80px 20px 48px; }
.jg-cs-hero__inner { max-width: 900px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.jg-back { align-self: flex-start; color: var(--sand); font-size: 14px; font-weight: 600; margin: 0 0 22px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.jg-back:hover { color: var(--cream); }
.jg-cs-hero__img { display: block; width: auto; height: auto; max-width: 100%; max-height: 58svh; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.jg-cs-hero h1 { font-family: var(--head); font-weight: 400; font-size: clamp(24px, 4.4vw, 40px); line-height: 1.1; margin: 26px 0 0; color: var(--cream); text-wrap: pretty; }
.jg-cs-hero__overview { font-size: clamp(15px, 3.4vw, 18px); line-height: 1.55; color: var(--cream); margin: 14px auto 0; max-width: 58ch; }

.jg-cs-meta { max-width: 1080px; margin: 0 auto; padding: 36px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.jg-cs-meta h2 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--clay); text-transform: uppercase; margin: 0 0 6px; font-weight: 400; }
.jg-cs-meta p { margin: 0; font-size: 15px; color: var(--cream); line-height: 1.4; }

.jg-cs-layout { max-width: 1100px; margin: 0 auto; padding: 8px 20px 40px; position: relative; }
.jg-cs-toc { width: 100%; overflow: hidden; margin-bottom: 28px; padding: 24px 18px 26px 22px; }
.jg-cs-toc__title { font-family: var(--head); font-size: 19px; line-height: 1.2; color: var(--cream); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(201, 169, 130, 0.35); text-wrap: pretty; }
.jg-cs-toc a {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 0; margin: 0 0 2px; min-height: 32px;
  text-decoration: none; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 500; color: var(--sand); transition: color .15s;
}
.jg-cs-toc a:hover { color: var(--cream); }
.jg-cs-toc a.is-active { font-weight: 700; color: var(--cream); }
.jg-cs-toc a span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg-cs-toc a span:last-child { flex: none; color: var(--amber); font-family: var(--mono); font-size: 12px; font-weight: 700; width: 22px; text-align: right; }

.jg-cs-content { max-width: 820px; margin: 0 auto; }
.jg-cs-content .cs-head { padding-top: 36px; margin-top: 8px; scroll-margin-top: 100px; }
.jg-cs-content h2 { font-family: var(--head); font-weight: 500; font-size: clamp(26px, 5vw, 40px); line-height: 1.08; color: var(--cream); margin: 0; text-wrap: pretty; }
.jg-cs-content h3 { font-family: var(--head); font-weight: 600; font-size: clamp(19px, 3vw, 23px); color: var(--blush); margin: 28px 0 4px; text-wrap: pretty; }
.jg-cs-content p { font-size: 15.5px; line-height: 1.75; color: var(--sand); margin: 14px 0 0; white-space: pre-line; }
.jg-cs-content .cs-callout { margin: 22px 0 0; padding: 18px 22px; background: rgba(217, 150, 91, 0.1); border-left: 3px solid var(--amber); border-radius: 8px; }
.jg-cs-content .cs-callout p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--cream); }
.jg-cs-content ul { margin: 16px 0 0; padding-left: 22px; color: var(--sand); font-size: 15.5px; line-height: 1.7; }
.jg-cs-content li { margin: 7px 0; }
.cs-phrow { margin-top: 26px; display: flex; gap: 10px; align-items: flex-start; width: 100%; }
.cs-phrow > div { min-width: 0; }
.cs-phrow img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.cs-grid { margin-top: 26px; display: grid; gap: 10px; align-items: center; width: 100%; }
.cs-grid img { width: 100%; height: auto; display: block; border-radius: 10px; }
.cs-bare { margin-top: 26px; display: flex; justify-content: center; }
.cs-bare img { max-width: 100%; width: auto; height: auto; display: block; border-radius: 12px; }

.jg-cs-more { max-width: 1080px; margin: 0 auto; padding: 20px 20px 90px; }
.jg-cs-more__panel {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--umber); border-radius: 22px 12px 26px 10px; padding: 30px; transform: rotate(-0.4deg);
}
.jg-cs-more__panel small { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--amber); text-transform: uppercase; }
.jg-cs-more__panel h2 { font-family: var(--head); font-weight: 500; font-size: clamp(24px, 5vw, 38px); margin: 6px 0 0; color: var(--cream); }
.jg-cs-more__panel .jg-btn { color: var(--bg); padding: 0 26px; }

/* =========================================================
   ABOUT
   ========================================================= */
.jg-about-intro { max-width: 1000px; margin: 0 auto; padding: 96px 20px 20px; }
.jg-about-intro h1 { font-family: var(--head); font-weight: 400; font-size: clamp(30px, 6.2vw, 58px); line-height: 1.16; margin: 0; color: var(--cream); text-wrap: pretty; }
.jg-about-intro em { color: var(--amber); }
.jg-abt2 { max-width: 1180px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.jg-abt2--second { padding: 64px 20px 64px; gap: 34px; }
.jg-abt2 .jg-label { margin-bottom: 14px; }
.jg-abt2--second .jg-label { margin-bottom: 20px; }
.jg-about__big { font-family: var(--head); font-size: clamp(19px, 3.6vw, 26px); line-height: 1.45; color: var(--cream); margin: 0 0 16px; text-wrap: pretty; }
.jg-about__p { font-size: 15.5px; line-height: 1.7; color: var(--sand); margin: 0 0 16px; max-width: 64ch; }
.jg-about__p:last-child { margin-bottom: 0; }
.jg-about__p--sm { font-size: 15px; line-height: 1.65; }

.jg-collage { position: relative; min-height: clamp(440px, 62vw, 600px); }
.jg-polaroid { position: absolute; width: 58%; aspect-ratio: 4 / 5; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5)); }
.jg-polaroid img { width: 100%; height: 100%; object-fit: cover; display: block; }

.jg-approach { background: var(--bg-deep); }
.jg-approach__inner { max-width: 1000px; margin: 0 auto; padding: 64px 20px; }
.jg-approach .jg-label { color: var(--amber); margin-bottom: 18px; }
.jg-approach__big { font-family: var(--head); font-size: clamp(22px, 4.6vw, 36px); line-height: 1.32; color: var(--cream); margin: 0 0 20px; text-wrap: pretty; }
.jg-approach__p { font-size: 15.5px; line-height: 1.65; color: var(--sand); margin: 0; max-width: 64ch; }

/* =========================================================
   FOOTER
   ========================================================= */
.jg-footer { position: relative; background: var(--bg-deep); }
.jg-footer__inner { max-width: 1180px; margin: 0 auto; padding: 64px 20px 40px; }
.jg-footer__lead { font-weight: 500; font-size: clamp(15px, 3vw, 18px); line-height: 1.4; margin: 0 0 8px; color: var(--sand); }
.jg-footer__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 40px; }
.jg-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; color: var(--clay); font-size: 13px; }
.jg-footer__sig { height: 56px; width: auto; filter: brightness(0) saturate(100%) invert(75%) sepia(15%) saturate(600%) hue-rotate(15deg) brightness(95%); opacity: 0.85; }

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 820px) {
  .jg-desknav { display: flex; }
  .jg-burger { display: none; }
  .jg-hero__sub { align-items: center; gap: 36px; }
  .jg-scene { grid-template-columns: 1.22fr 0.78fr; gap: 48px; }
  .jg-scene:nth-child(even) { direction: rtl; }
  .jg-scene:nth-child(even) > * { direction: ltr; }
  .jg-workitem { grid-template-columns: 0.95fr 1.05fr; }
  .jg-workitem:nth-child(even) { direction: rtl; }
  .jg-workitem:nth-child(even) > * { direction: ltr; }
  .jg-abt2 { grid-template-columns: 1fr 1fr; }
  .jg-abt3 { grid-template-columns: repeat(3, 1fr); }
  .jg-resume-grid { grid-template-columns: 0.32fr 0.68fr; }
  .jg-contact-split { grid-template-columns: 1fr 0.8fr; }
  .jg-cs-meta { grid-template-columns: repeat(4, 1fr); }
  .jg-cs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .jg-cs-toc {
    position: sticky; top: 74px; align-self: start; width: 220px; margin-bottom: 0;
    overflow-y: auto; overflow-x: hidden; max-height: calc(100vh - 130px); z-index: 5;
  }
  .jg-cs-content { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .jg-hero__tile { opacity: 0; }
}
