/* JenerDev look and motion, shared by every page except the preview tour.
   Matches the JenerDev desktop app: warm dark brown, orange J, springy hovers. */
:root { --jd-orange: #D97757; --jd-cream: #FEFBE8; --jd-brown: #1F1913; --jd-spring: cubic-bezier(.34, 1.56, .64, 1); --jd-ease: cubic-bezier(.2, .8, .2, 1); }

/* Warm dark palette everywhere (site.css and reference-family tokens) */
body.jd, body.jd.reference-family {
  --paper: #17130f; --card: #221c16; --ink: #FEFBE8; --soft: #c4b9aa; --line: rgb(254 251 232 / 11%);
  --accent: #D97757; --link: #eda083; --focus: #eda083; --btn: #D97757; --btn-hover: #e58c6e;
  --tint: rgb(217 119 87 / 12%); --shadow: 0 1px 2px rgb(0 0 0 / 25%), 0 18px 40px -18px rgb(0 0 0 / 60%);
  color-scheme: dark; background: var(--paper); color: var(--ink);
}
html:has(body.jd) { background: #17130f; }
/* Folio pages end on the grey utility bar: match it so nothing dark shows past the footer. */
html:has(body.jd.folio) { background: #303332; }
body.jd ::selection { background: rgb(217 119 87 / 40%); }
body.jd.reference-family .site-header { background: rgb(23 19 15 / 82%); }
body.jd:not(.folio) .site-header, body.jd:not(.folio) .site-footer { background-color: rgb(23 19 15 / 88%); }
/* Folio pages: sections sit over the sticky orange footer, so they need a solid floor */
.folio.jd main > section:not(.finale) { background: var(--paper); }

/* Inter (SIL Open Font License, see fonts/Inter-LICENSE.txt), self-hosted so it looks the same on every device. */
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
body.jd, body.jd.reference-family {
  --head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased; }
body.jd h1, body.jd h2, body.jd h3 { font-weight: 600; letter-spacing: -.035em; }
/* Lenis (from lenis/dist/lenis.css) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Opening splash: the J draws, fills and glows, then fades. Once per visit (jd-boot.js). */
.jd-splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, #2a1f19 0, #15110e 70%);
  animation: jd-out .45s var(--jd-ease) 1.15s forwards; }
.jd-splash svg { width: 76px; height: 76px; overflow: visible; animation: jd-glow 1.2s ease .45s forwards; }
.jd-splash path, .jd-splash rect { fill: transparent; stroke: var(--jd-orange); stroke-width: 16; stroke-linejoin: round;
  stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: jd-draw .8s var(--jd-ease) forwards, jd-fill .3s ease .6s forwards; }
.jd-seen .jd-splash { display: none; }
@keyframes jd-draw { to { stroke-dashoffset: 0; } }
@keyframes jd-fill { to { fill: var(--jd-orange); } }
@keyframes jd-glow { 50% { filter: drop-shadow(0 0 22px rgb(217 119 87 / 75%)); } to { filter: drop-shadow(0 0 10px rgb(217 119 87 / 35%)); } }
@keyframes jd-out { to { opacity: 0; visibility: hidden; } }

/* Springy controls: buttons lift and press, cards lift 2px */
body.jd .btn { transition: transform .3s var(--jd-spring), background-color .15s, border-color .15s, color .15s; }
body.jd .btn:hover { transform: translateY(-2px); }
body.jd .btn:active { transform: scale(.96); transition-duration: .1s; }
body.jd .btn-primary { background: var(--jd-orange); border-color: var(--jd-orange); color: var(--jd-brown); }
body.jd .btn-primary:hover { background: #e58c6e; border-color: #e58c6e; color: var(--jd-brown); }
.jd-lift { transition: transform .35s var(--jd-spring), box-shadow .3s var(--jd-ease); }
.jd-lift:hover { transform: translateY(-2px); }

/* Pop-in on scroll. Only hidden when JS is running, so nothing is lost without it. */
.jd-js .jd-pop { opacity: 0; transform: translateY(14px) scale(.97); }
.jd-js .jd-pop.jd-in { opacity: 1; transform: none; transition: opacity .5s var(--jd-ease), transform .65s var(--jd-spring); transition-delay: calc(var(--i, 0) * 60ms); }

/* Gliding pill behind the main nav */
.jd-pill-nav ul { position: relative; }
.jd-pill { position: absolute; left: 0; top: 50%; height: 38px; width: 0; margin-top: -19px; border-radius: 999px; z-index: 0; pointer-events: none;
  background: rgb(254 251 232 / 8%); box-shadow: inset 0 1px 0 rgb(254 251 232 / 10%); opacity: 0;
  transition: transform .45s var(--jd-spring), width .45s var(--jd-spring), opacity .2s; }
.jd-pill-nav li { position: relative; z-index: 1; }
body.jd .jd-pill-nav a::before { display: none; }
body.jd .jd-pill-nav a:is(:hover, :focus-visible) { transform: none; color: var(--jd-cream); }

@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .jd-splash { display: none; }
  .jd-js .jd-pop { opacity: 1; transform: none; }
  .jd-pill, body.jd .btn, .jd-lift { transition: none; }
}

/* Home: featured JenerScouts spotlight between the intro and the work list. */
.spotlight { position: relative; isolation: isolate; padding-block: clamp(72px, 9vw, 140px); overflow: clip;
  background: radial-gradient(60% 70% at 78% 45%, rgb(217 119 87 / 22%), transparent 70%), var(--paper, #17130f);
  border-block: 1px solid rgb(254 251 232 / 8%); }
.spot-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.spot-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; font-size: 14px; color: #FEFBE8;
  background: linear-gradient(120deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 3%) 40%, rgb(217 119 87 / 14%)); backdrop-filter: blur(12px) saturate(1.6); -webkit-backdrop-filter: blur(12px) saturate(1.6);
  box-shadow: inset 0 1px rgb(255 255 255 / 28%), inset 0 -1px rgb(0 0 0 / 30%), 0 6px 20px rgb(0 0 0 / 25%); }
.spot-badge svg { width: 16px; height: 16px; fill: #D97757; flex: none; }
.spotlight h2 { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 22px; }
.spotlight h2 em { display: block; color: #eda083; }
.spot-copy > p:not(.spot-badge) { color: var(--soft); max-width: 50ch; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; }
.spot-facts { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--soft); font-size: 15px; }
.spot-facts b { color: var(--ink, #FEFBE8); font-weight: 600; margin-right: 4px; }
.spot-visual { position: relative; }
.spot-visual > a img { border-radius: 18px; box-shadow: 0 0 0 1px rgb(254 251 232 / 12%), 0 40px 80px -40px rgb(0 0 0 / 90%); }
.folio .spot-visual img.spot-float { position: absolute; width: 44% !important; height: auto; animation: none !important; right: -6%; bottom: -14%; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 1px rgb(254 251 232 / 16%), 0 30px 60px -20px rgb(0 0 0 / 85%); transform: rotate(3deg) !important; z-index: 2; }
@media (max-width: 820px) {
  .spot-grid { grid-template-columns: 1fr; }
  .folio .spot-visual img.spot-float { right: -2%; bottom: -10%; width: 50%; }
}


/* Footer labels on the orange panel: lift contrast to AA. */
.folio .reveal-cols h2 { color: rgb(255 246 238 / 92%); }
.folio .reveal-line em { color: #fff1e6; }
/* Phone menu: liquid glass with refraction instead of a frosted panel. A light dark tint keeps the links readable. */
.folio.jd .phone-menu summary {
  background: linear-gradient(135deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 3%) 45%, rgb(223 152 124 / 10%) 80%, rgb(255 255 255 / 10%));
  border-color: transparent; backdrop-filter: blur(2px) saturate(1.8); -webkit-backdrop-filter: blur(2px) saturate(1.8);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 70%), inset 0 -1px 1px rgb(255 255 255 / 35%), inset 1px 0 5px rgb(255 255 255 / 18%), inset -1px 0 5px rgb(223 152 124 / 30%), 0 5px 15px rgb(0 0 0 / 20%); }
.folio.jd .phone-nav {
  background: linear-gradient(140deg, rgb(255 255 255 / 14%), rgb(255 255 255 / 3%) 40%, rgb(223 152 124 / 9%) 80%, rgb(255 255 255 / 8%)), rgb(23 19 15 / 84%);
  border-color: transparent; backdrop-filter: blur(16px) saturate(1.9) brightness(.8); -webkit-backdrop-filter: blur(16px) saturate(1.9) brightness(.8);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 70%), inset 0 -1px 1px rgb(255 255 255 / 30%), inset 1px 0 6px rgb(255 255 255 / 16%), inset -1px 0 6px rgb(223 152 124 / 28%), 0 18px 40px rgb(0 0 0 / 35%); }
.folio.jd .phone-nav a { text-shadow: 0 1px 2px rgb(0 0 0 / 60%); }
@supports (backdrop-filter: url("#jd-lens")) {
  .folio.jd .phone-menu summary { backdrop-filter: url("#jd-lens") blur(1px) saturate(1.8); }
  .folio.jd .phone-nav { backdrop-filter: url("#jd-lens") blur(16px) saturate(1.9) brightness(.8); }
}/* A blurred parent hides the page from its children's blur in Chromium, so while the menu is open
   the header drops its own blur (and goes a touch more solid) to let the menu glass see the page. */
.folio.jd .site-header:has(.phone-menu[open]) { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(24 22 20 / 94%); }
/* Phone menu motion: the panel springs out of the Menu button's corner, links follow one after another. */
.folio.jd .phone-menu[open] .phone-nav { transform-origin: calc(100% - 40px) -12px; animation: jd-menu-in .5s var(--jd-spring) both; }
.folio.jd .phone-menu[open] .phone-nav li { animation: jd-menu-link .45s var(--jd-ease) both; animation-delay: calc(80ms + var(--k, 0) * 45ms); }
.folio.jd .phone-menu.is-closing .phone-nav { animation: jd-menu-out .26s var(--jd-ease) both; }
.folio.jd .phone-menu.is-closing .phone-nav li { animation: none; }
.folio.jd .phone-menu summary span { display: inline-block; transition: transform .4s var(--jd-spring); }
.folio.jd .phone-menu[open]:not(.is-closing) summary span { transform: rotate(135deg); }
@keyframes jd-menu-in { from { opacity: 0; transform: scale(.6, .4) translateY(-10px); filter: blur(6px); border-radius: 40px; } to { opacity: 1; transform: none; filter: none; } }
@keyframes jd-menu-out { to { opacity: 0; transform: scale(.7, .5) translateY(-8px); filter: blur(4px); } }
@keyframes jd-menu-link { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
/* Pull to refresh (phones). Everything moves by transform from JS; no CSS transitions on the moving parts. */
.jd-ptr { position: fixed; left: 0; top: 0; z-index: 21; width: 100vw; height: 0; pointer-events: none; visibility: hidden; will-change: transform; }
.jd-ptr-edge { position: absolute; left: 0; top: 0; overflow: visible; }
.jd-ptr-edge .fill { stroke: none; }
.jd-ptr-edge .neck { fill: rgb(255 255 255 / 18%); stroke: rgb(255 255 255 / 25%); stroke-width: 1; }
.jd-ptr-edge .light, .jd-ptr-edge .dark { fill: none; stroke-width: 1; }
.jd-ptr-edge .light { stroke: rgb(255 255 255 / 20%); transform: translateY(.5px); }
.jd-ptr-edge .dark { stroke: rgb(0 0 0 / 40%); transform: translateY(-.5px); }
.site-header.jd-pulling::after { opacity: 0; }
.site-header.jd-pulling { border-bottom-color: transparent !important; box-shadow: inset 0 1px rgb(255 255 255 / 25%), 0 8px 30px rgb(0 0 0 / 13%) !important; }
.jd-ptr-bubble { position: absolute; left: 50%; top: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transform-origin: 50% 35%; will-change: transform;
  background: linear-gradient(135deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 2%) 42%, rgb(223 152 124 / 10%) 78%, rgb(255 255 255 / 12%));
  -webkit-backdrop-filter: blur(2px) saturate(1.8); backdrop-filter: blur(2px) saturate(1.8);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 70%), inset 0 -1px 1px rgb(255 255 255 / 38%), inset 1px 0 5px rgb(255 255 255 / 20%), inset -1px 0 5px rgb(223 152 124 / 33%), 0 6px 16px rgb(0 0 0 / 25%); }
.jd-ptr-icon { width: 22px; height: 22px; overflow: visible; filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 55%)); }
.jd-ptr-icon path { fill: none; stroke: #FEFBE8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: calc(.4 + var(--p, 0) * .6); }
.jd-ptr.is-ready .jd-ptr-icon path, .jd-ptr.is-loading .jd-ptr-icon path { stroke: var(--jd-orange); opacity: 1; }
.jd-ptr.is-loading .jd-ptr-icon { animation: jd-ptr-spin .7s linear infinite; }
@keyframes jd-ptr-spin { to { rotate: 360deg; } }