/* ==========================================================================
   JD Folio — hand-written styles
   ========================================================================== */
:root {
  --jd-paper: var(--wp--preset--color--paper, #F3EFE6);
  --jd-paper-deep: var(--wp--preset--color--paper-deep, #E8E2D5);
  --jd-ink: var(--wp--preset--color--ink, #16151A);
  --jd-muted: var(--wp--preset--color--muted, #5F5B53);
  --jd-blue: #3F5EFB;
  --jd-coral: #FC466B;
  --jd-sun: #F2E94E;
  --jd-mint: #3AD59F;
  --jd-line: rgba(22, 21, 26, .14);
  --jd-wide: 1240px;
  --jd-gutter: clamp(1rem, 4vw, 2.5rem);
  --jd-display: var(--wp--preset--font-family--display, Georgia, serif);
  --jd-mono: var(--wp--preset--font-family--mono, ui-monospace, monospace);
  --jd-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: var(--jd-sun); color: var(--jd-ink); }
img { max-width: 100%; height: auto; }
:where(.jd-main) a:not(.wp-element-button):not(.jd-btn) { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.jd-main { padding: 0 !important; }
.jd-main > .wp-block-post-content > * { margin-block: 0; }
:focus-visible { outline: 2px solid var(--jd-blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- shared bits ---------- */
.jd-wrap, .jd-section > *, .jd-pagehead > * { max-width: var(--jd-wide); margin-inline: auto; }
.jd-section { padding: clamp(4rem, 9vw, 8rem) var(--jd-gutter); position: relative; }
.jd-eyebrow {
  font-family: var(--jd-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--jd-muted); margin: 0 0 1.25rem; display: flex; align-items: center; gap: .6rem;
}
.jd-eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; opacity: .6; }
.jd-lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--jd-muted); max-width: 40rem; }
.jd-sechead { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem) !important; }
.jd-sechead h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 4rem); margin: 0; max-width: 18ch; }
.jd-sechead h2 em, .jd-hero__title em, .jd-pagehead h1 em, .jd-footer__big em { font-style: italic; font-weight: 300; }
@media (min-width: 900px) {
  .jd-sechead { grid-template-columns: 1fr 1fr; align-items: end; }
  .jd-sechead .jd-eyebrow { grid-column: 1 / -1; }
  .jd-sechead > p:last-child { justify-self: end; max-width: 30rem; margin: 0; color: var(--jd-muted); }
}

.jd-btn, .jd-main .wp-block-button__link {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  transition: transform .25s var(--jd-ease), background .25s, color .25s, box-shadow .25s;
}
.jd-btn { background: var(--jd-ink); color: var(--jd-paper); padding: .9rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.jd-btn:hover, .jd-main .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(63, 94, 251, .7); }
.jd-btn--ghost, .jd-main .is-style-outline .wp-block-button__link {
  background: transparent !important; color: var(--jd-ink) !important; border: 1px solid var(--jd-ink) !important;
}
.jd-btn--ghost:hover, .jd-main .is-style-outline .wp-block-button__link:hover { background: var(--jd-ink) !important; color: var(--jd-paper) !important; }

/* ---------- header ---------- */
.jd-header {
  position: sticky; top: 0; z-index: 50; padding: 0 var(--jd-gutter) !important;
  background: color-mix(in srgb, var(--jd-paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.jd-header.is-stuck { border-bottom-color: var(--jd-line); }
.admin-bar .jd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .jd-header { top: 0; } }
.jd-header__inner { max-width: var(--jd-wide); margin: 0 auto; display: flex !important; align-items: center; gap: 1.5rem; height: 72px; }
.jd-logo { font-family: var(--jd-display); font-size: 1.75rem; font-weight: 600; text-decoration: none; letter-spacing: -.04em; line-height: 1; }
.jd-logo span { color: var(--jd-coral); }
.jd-nav { margin-left: auto; font-weight: 500; font-size: .95rem; }
.jd-nav .wp-block-navigation-item__content { padding: .35rem 0; position: relative; text-decoration: none; }
.jd-nav .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--jd-ease);
}
.jd-nav .wp-block-navigation-item__content:hover::after, .jd-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }
.jd-nav .wp-block-navigation__container { gap: 1.75rem; }
.jd-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--jd-paper) !important; padding: 2rem var(--jd-gutter); }
.jd-nav .is-menu-open .wp-block-navigation__container { font-family: var(--jd-display); font-size: 2.5rem; gap: 1rem; }
.jd-header__cta {
  display: none; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--jd-line); border-radius: 999px; padding: .5rem 1rem; transition: background .25s, color .25s;
}
.jd-header__cta:hover { background: var(--jd-ink); color: var(--jd-paper); }
@media (min-width: 760px) { .jd-header__cta { display: inline-flex; } }
.jd-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--jd-mint); box-shadow: 0 0 0 0 rgba(58, 213, 159, .6); animation: jd-pulse 2.4s infinite; }
@keyframes jd-pulse { 70% { box-shadow: 0 0 0 .5rem rgba(58, 213, 159, 0); } 100% { box-shadow: 0 0 0 0 rgba(58, 213, 159, 0); } }

/* ---------- hero ---------- */
.jd-hero { padding: clamp(2.5rem, 6vw, 5.5rem) var(--jd-gutter) clamp(3rem, 6vw, 5rem); }
.jd-hero__grid { max-width: var(--jd-wide); margin: 0 auto; display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .jd-hero__grid { grid-template-columns: 1.25fr .9fr; } }
.jd-hero__title { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.6rem) !important; line-height: 1.02 !important; margin: 0 0 1.5rem !important; }
.jd-hero__title em { background: linear-gradient(100deg, var(--jd-blue), var(--jd-coral)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.jd-hero .wp-block-buttons { margin-top: 2rem; gap: .75rem; }

.jd-visual { position: relative; aspect-ratio: 4 / 5; max-width: 440px; margin-inline: auto; width: 100%; }
.jd-aurora { position: absolute; inset: -8% -6%; filter: blur(48px); opacity: .85; z-index: 0; }
.jd-aurora i { position: absolute; width: 55%; height: 55%; border-radius: 50%; animation: jd-drift 18s ease-in-out infinite alternate; }
.jd-aurora i:nth-child(1) { background: var(--jd-blue); top: 0; left: 0; }
.jd-aurora i:nth-child(2) { background: var(--jd-coral); top: 10%; right: 0; animation-duration: 22s; animation-direction: alternate-reverse; }
.jd-aurora i:nth-child(3) { background: var(--jd-sun); bottom: 0; left: 8%; animation-duration: 20s; }
.jd-aurora i:nth-child(4) { background: var(--jd-mint); bottom: 6%; right: 6%; animation-duration: 24s; animation-direction: alternate-reverse; }
@keyframes jd-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12%, -8%) scale(1.15); } 100% { transform: translate(-10%, 10%) scale(.9); } }
.jd-photo { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 220px 220px 28px 28px; box-shadow: 0 30px 60px -30px rgba(22, 21, 26, .55); }
.jd-code {
  position: absolute; z-index: 2; left: -12%; bottom: 8%; width: min(320px, 82%);
  background: #121117; color: #E9E6F2; border-radius: 14px; padding: .9rem 1rem 1rem; font-family: var(--jd-mono); font-size: .74rem; line-height: 1.7;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55); transform: rotate(-3deg);
}
.jd-code__bar { display: flex; gap: .35rem; margin-bottom: .6rem; }
.jd-code__bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #3a3842; }
.jd-code__bar i:first-child { background: var(--jd-coral); } .jd-code__bar i:nth-child(2) { background: var(--jd-sun); } .jd-code__bar i:nth-child(3) { background: var(--jd-mint); }
.jd-code pre { margin: 0; white-space: pre; overflow: hidden; font: inherit; }
.jd-code .k { color: #8FA2FF; } .jd-code .s { color: #7EE2B8; } .jd-code .f { color: #FFB4C4; } .jd-code .c { color: #77748A; }
.jd-badge {
  position: absolute; z-index: 2; right: -4%; top: 10%; width: 108px; height: 108px; border-radius: 50%;
  background: var(--jd-sun); color: var(--jd-ink); display: grid; place-items: center; text-align: center;
  font-family: var(--jd-display); line-height: 1; transform: rotate(8deg); box-shadow: 0 16px 30px -18px rgba(0,0,0,.5);
}
.jd-badge b { display: block; font-size: 2.3rem; font-weight: 500; }
.jd-badge small { font-family: var(--jd-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 600px) { .jd-code { left: -2%; } .jd-badge { right: 0; width: 92px; height: 92px; } }

/* ---------- stats ---------- */
.jd-stats { max-width: var(--jd-wide); margin: 0 auto !important; padding: 0 var(--jd-gutter); display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--jd-line); }
@media (min-width: 820px) { .jd-stats { grid-template-columns: repeat(4, 1fr); } }
.jd-stat { padding: 1.75rem 1rem 1.75rem 0; border-bottom: 1px solid var(--jd-line); }
@media (min-width: 820px) { .jd-stat { border-bottom: 0; } .jd-stat + .jd-stat { padding-left: 1.5rem; border-left: 1px solid var(--jd-line); } }
.jd-stat__num { font-family: var(--jd-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem); line-height: 1; margin: 0 0 .4rem; }
.jd-stat__num sup { font-size: .45em; color: var(--jd-coral); vertical-align: top; }
.jd-stat__label { margin: 0; color: var(--jd-muted); font-size: .92rem; }

/* ---------- marquee ---------- */
.jd-marquee { overflow: hidden; border-block: 1px solid var(--jd-ink); background: var(--jd-ink); color: var(--jd-paper); padding: 1.1rem 0; margin-top: clamp(3rem, 6vw, 5rem); }
.jd-marquee__track { display: flex; width: max-content; animation: jd-scroll 38s linear infinite; }
.jd-marquee:hover .jd-marquee__track { animation-play-state: paused; }
.jd-marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.jd-marquee li { font-family: var(--jd-display); font-size: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); font-style: italic; font-weight: 300; padding: 0 1.4rem; white-space: nowrap; display: flex; align-items: center; gap: 2.8rem; }
.jd-marquee li::after { content: "\2726"; font-style: normal; font-size: .6em; color: var(--jd-sun); }
@keyframes jd-scroll { to { transform: translateX(-50%); } }

/* ---------- services ---------- */
.jd-service-list { display: grid; gap: 0; border-top: 1px solid var(--jd-line); }
@media (min-width: 820px) { .jd-service-list { grid-template-columns: repeat(2, 1fr); } .jd-service:nth-child(odd) { border-right: 1px solid var(--jd-line); padding-right: 2.5rem !important; } .jd-service:nth-child(even) { padding-left: 2.5rem !important; } }
.jd-service { padding: 2.25rem 0 !important; border-bottom: 1px solid var(--jd-line); position: relative; margin: 0 !important; transition: background .3s; }
.jd-service__num { font-family: var(--jd-mono); font-size: .8rem; color: var(--jd-coral); margin: 0 0 .9rem !important; }
.jd-service h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 0 0 .75rem !important; }
.jd-service p:last-child { color: var(--jd-muted); margin: 0; max-width: 34rem; }

/* ---------- work ---------- */
.jd-dark { background: var(--jd-ink); color: var(--jd-paper); }
.jd-dark .jd-eyebrow, .jd-dark .jd-sechead > p:last-child { color: #A9A59C; }
.jd-dark a { color: var(--jd-paper); }
.jd-projects { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 700px) { .jd-projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .jd-projects.is-three { grid-template-columns: repeat(3, 1fr); } }
.jd-project { position: relative; margin: 0 !important; display: flex; flex-direction: column; transition: opacity .35s, transform .35s var(--jd-ease); }
.jd-project.is-hidden { display: none; }
.jd-project__shot { margin: 0 0 1.1rem !important; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 10; background: #2a2930; position: relative; }
.jd-project__shot img { width: 100%; height: 100% !important; object-fit: cover; object-position: top; display: block; transition: transform 1.2s var(--jd-ease), object-position 4s ease; }
.jd-project:hover .jd-project__shot img { transform: scale(1.035); object-position: center 30%; }
.jd-project__shot::after { content: "Visit site \2197"; position: absolute; right: 1rem; bottom: 1rem; background: var(--jd-paper); color: var(--jd-ink); font-size: .8rem; font-weight: 600; padding: .45rem .85rem; border-radius: 999px; opacity: 0; transform: translateY(8px); transition: .3s var(--jd-ease); }
.jd-project:hover .jd-project__shot::after { opacity: 1; transform: none; }
.jd-project__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0 0 .5rem !important; }
.jd-tag { font-family: var(--jd-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: .2rem .6rem; margin: 0 !important; opacity: .85; }
.jd-place { font-size: .82rem; opacity: .65; margin: 0 !important; }
.jd-project h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); margin: 0 0 .35rem !important; }
.jd-project__desc { margin: 0 !important; opacity: .75; font-size: .95rem; }
.jd-project__link { margin: .75rem 0 0 !important; font-size: .88rem; font-weight: 600; }
.jd-project__link a { text-decoration: none; }
.jd-project__link a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.jd-dark .jd-project h3 { color: var(--jd-paper); }
.jd-more { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; }
.jd-dark .wp-block-button__link { background: var(--jd-paper) !important; color: var(--jd-ink) !important; }
.jd-dark .wp-block-button__link:hover { background: var(--jd-sun) !important; }

.jd-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.5rem; }
.jd-filter button {
  font: 500 .9rem/1 var(--wp--preset--font-family--body); cursor: pointer; border: 1px solid var(--jd-line); background: transparent; color: var(--jd-ink);
  border-radius: 999px; padding: .65rem 1.1rem; transition: .2s;
}
.jd-filter button span { font-family: var(--jd-mono); font-size: .72rem; opacity: .55; margin-left: .3rem; }
.jd-filter button:hover { border-color: var(--jd-ink); }
.jd-filter button[aria-pressed="true"] { background: var(--jd-ink); color: var(--jd-paper); border-color: var(--jd-ink); }
.jd-worklist .jd-project h3 { color: var(--jd-ink); }
.jd-worklist .jd-project__shot { background: var(--jd-paper-deep); }

/* ---------- process ---------- */
.jd-steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 820px) { .jd-steps { grid-template-columns: repeat(4, 1fr); } }
.jd-step { background: #FBF9F4; border: 1px solid var(--jd-line); border-radius: 18px; padding: 1.75rem 1.5rem !important; margin: 0 !important; counter-increment: step; transition: transform .3s var(--jd-ease), box-shadow .3s; }
.jd-step:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(22, 21, 26, .5); }
.jd-step::before { content: "0" counter(step); font-family: var(--jd-display); font-size: 2.75rem; line-height: 1; display: block; margin-bottom: 1.5rem; color: var(--jd-blue); }
.jd-step:nth-child(2)::before { color: var(--jd-coral); } .jd-step:nth-child(3)::before { color: #B5A800; } .jd-step:nth-child(4)::before { color: #1E9E72; }
.jd-step h3 { font-size: 1.35rem; margin: 0 0 .5rem !important; }
.jd-step p { margin: 0; color: var(--jd-muted); font-size: .95rem; }

/* ---------- inner page head ---------- */
.jd-pagehead { padding: clamp(3rem, 8vw, 6.5rem) var(--jd-gutter) clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--jd-line); }
.jd-pagehead h1 { font-size: clamp(2.75rem, 1.6rem + 5vw, 6rem); margin: 0 0 1.25rem !important; max-width: 16ch; }
.jd-pagehead .jd-lead { margin-bottom: 0; }

/* ---------- about ---------- */
.jd-about-intro { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .jd-about-intro { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.jd-about-intro .wp-block-image img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.jd-about-intro .wp-block-image { margin: 0; }
.jd-about-copy p { font-size: 1.12rem; }
.jd-about-copy p:first-child { font-family: var(--jd-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.3; margin-top: 0; }

.jd-timeline { border-top: 1px solid var(--jd-line); }
.jd-job { display: grid; gap: .5rem 2.5rem; padding: 2.25rem 0 !important; border-bottom: 1px solid var(--jd-line); margin: 0 !important; }
@media (min-width: 820px) { .jd-job { grid-template-columns: 220px 1fr; } .jd-job > *:not(.jd-job__when) { grid-column: 2; } .jd-job__when { grid-row: 1 / span 3; } }
.jd-job__when { font-family: var(--jd-mono); font-size: .82rem; color: var(--jd-muted); margin: .4rem 0 0 !important; }
.jd-job h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin: 0 !important; }
.jd-job__org { margin: 0 !important; color: var(--jd-coral); font-weight: 600; }
.jd-job ul { margin: .5rem 0 0 !important; padding-left: 1.1rem; color: var(--jd-muted); }
.jd-job li { margin-bottom: .35rem; }
.jd-job li::marker { color: var(--jd-blue); }

.jd-skills { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .jd-skills { grid-template-columns: repeat(3, 1fr); } }
.jd-skillgroup { border: 1px solid var(--jd-line); border-radius: 18px; padding: 1.75rem !important; margin: 0 !important; background: #FBF9F4; }
.jd-skillgroup h3 { font-size: 1.35rem; margin: 0 0 1rem !important; }
.jd-skillgroup ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.jd-skillgroup li { font-size: .85rem; border: 1px solid var(--jd-line); background: var(--jd-paper); border-radius: 999px; padding: .35rem .8rem; }

.jd-split { display: grid; gap: 2rem; }
@media (min-width: 820px) { .jd-split { grid-template-columns: 1fr 1fr; } }
.jd-card { border-radius: 22px; padding: clamp(1.75rem, 4vw, 2.75rem) !important; margin: 0 !important; }
.jd-card--blue { background: var(--jd-blue); color: #fff; }
.jd-card--sun { background: var(--jd-sun); }
.jd-card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin: 0 0 .75rem !important; }
.jd-card p { margin: 0 0 .5rem; }
.jd-card--blue .wp-block-button__link { background: #fff !important; color: var(--jd-ink) !important; }
.jd-card .wp-block-buttons { margin-top: 1.5rem; }

/* ---------- contact ---------- */
.jd-contact { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .jd-contact { grid-template-columns: 1.3fr .7fr; align-items: start; } }
.jd-contact__aside { display: grid; gap: 1rem; }
.jd-contact__item { border-top: 1px solid var(--jd-line); padding-top: 1rem !important; margin: 0 !important; }
.jd-contact__item p { margin: 0; }
.jd-contact__item p:first-child { font-family: var(--jd-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--jd-muted); margin-bottom: .25rem; }
.jd-contact__item a { font-weight: 600; }

.wpcf7 form { display: grid; gap: 1.1rem; }
.wpcf7 form > p { margin: 0; }
.wpcf7 label { display: block; font-size: .85rem; font-weight: 600; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="url"], .wpcf7 input[type="tel"], .wpcf7 select, .wpcf7 textarea {
  width: 100%; margin-top: .45rem; font: 400 1rem/1.5 var(--wp--preset--font-family--body); color: var(--jd-ink);
  background: #FBF9F4; border: 1px solid var(--jd-line); border-radius: 12px; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.wpcf7 textarea { min-height: 170px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--jd-blue); box-shadow: 0 0 0 4px rgba(63, 94, 251, .15); }
.wpcf7 input[type="submit"] { justify-self: start; cursor: pointer; border: 0; background: var(--jd-ink); color: var(--jd-paper); font: 600 .95rem/1 var(--wp--preset--font-family--body); padding: 1rem 1.9rem; border-radius: 999px; transition: background .25s, transform .25s; }
.wpcf7 input[type="submit"]:hover { background: var(--jd-blue); transform: translateY(-2px); }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 .75rem; }
.wpcf7 form .wpcf7-response-output { margin: 0; border-radius: 12px; padding: .9rem 1rem; }

/* ---------- footer ---------- */
.jd-footer { background: var(--jd-ink); color: var(--jd-paper); padding: clamp(4rem, 9vw, 7rem) var(--jd-gutter) 2rem !important; margin: 0 !important; position: relative; overflow: hidden; }
.jd-footer::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(63, 94, 251, .55), transparent 65%); filter: blur(30px); pointer-events: none; }
.jd-footer__inner { max-width: var(--jd-wide); margin: 0 auto; position: relative; }
.jd-footer .jd-eyebrow { color: #A9A59C; }
.jd-footer__big { font-family: var(--jd-display); font-size: clamp(2.2rem, 1.3rem + 4vw, 5rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 2rem; max-width: 18ch; }
.jd-footer__mail { display: inline-flex; gap: .75rem; align-items: center; color: var(--jd-paper) !important; font-size: clamp(1.1rem, .9rem + 1.2vw, 1.75rem); text-decoration: none; border-bottom: 1px solid rgba(243, 239, 230, .35); padding-bottom: .35rem; transition: border-color .25s, gap .25s; word-break: break-all; }
.jd-footer__mail:hover { border-color: var(--jd-sun); gap: 1.1rem; }
.jd-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: 1.5rem; border-top: 1px solid rgba(243, 239, 230, .15); }
.jd-social { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; }
.jd-social a { color: var(--jd-paper) !important; text-decoration: none; font-weight: 500; }
.jd-social a:hover { color: var(--jd-sun) !important; }
.jd-footer__meta { margin: 0; font-size: .85rem; color: #A9A59C; }

/* ---------- prose / 404 ---------- */
.jd-prose { padding: clamp(3rem, 7vw, 5rem) var(--jd-gutter) !important; }
.jd-404 { padding: clamp(5rem, 12vw, 9rem) var(--jd-gutter) !important; }
.jd-404__title { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.75rem); margin: 0 0 1rem; }
.jd-404__title code { font-family: var(--jd-mono); font-size: .8em; color: var(--jd-coral); }

/* ---------- reveal on scroll ---------- */
.jd-js .jd-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--jd-ease), transform .8s var(--jd-ease); }
.jd-js .jd-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .jd-js .jd-reveal { opacity: 1; transform: none; }
}

/* editor comfort */
.editor-styles-wrapper .jd-reveal { opacity: 1 !important; transform: none !important; }

/* ---------- live preview popup ---------- */
.jd-project__shot::after { content: "Live preview \2922"; }
.jd-modal-open { overflow: hidden; }
.jd-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: clamp(.5rem, 2.5vw, 2rem); }
.jd-modal[hidden] { display: none; }
.jd-modal__backdrop { position: absolute; inset: 0; background: rgba(12, 11, 16, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.jd-modal__panel { position: relative; width: min(1400px, 100%); height: min(92vh, 100%); display: flex; flex-direction: column; background: #1b1a21; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); transform: translateY(18px) scale(.98); opacity: 0; transition: transform .3s var(--jd-ease), opacity .25s; }
.jd-modal.is-open .jd-modal__backdrop { opacity: 1; }
.jd-modal.is-open .jd-modal__panel { transform: none; opacity: 1; }
.jd-modal__bar { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; background: #232229; color: #E9E6F2; font-size: .85rem; flex-wrap: wrap; }
.jd-modal__dots { display: flex; gap: .4rem; }
.jd-modal__dots i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--jd-coral); }
.jd-modal__dots i:nth-child(2) { background: var(--jd-sun); } .jd-modal__dots i:nth-child(3) { background: var(--jd-mint); }
.jd-modal__url { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: .45rem; background: #121117; border-radius: 999px; padding: .4rem .9rem; font-family: var(--jd-mono); font-size: .78rem; color: #B9B6C4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-modal__url svg { width: .8rem; height: .8rem; fill: var(--jd-mint); flex: none; }
.jd-modal__url span { overflow: hidden; text-overflow: ellipsis; }
.jd-modal__views { display: flex; background: #121117; border-radius: 999px; padding: .2rem; }
.jd-modal__views button { font: 600 .75rem/1 var(--wp--preset--font-family--body); color: #B9B6C4; background: transparent; border: 0; border-radius: 999px; padding: .45rem .8rem; cursor: pointer; }
.jd-modal__views button[aria-pressed="true"] { background: var(--jd-paper); color: var(--jd-ink); }
.jd-modal__ext { color: #fff !important; text-decoration: none; font-weight: 600; background: var(--jd-blue); border-radius: 999px; padding: .45rem .95rem; white-space: nowrap; }
.jd-modal__ext:hover { background: #2f4ae0; }
.jd-modal__close { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 0; background: #34333b; color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.jd-modal__close:hover { background: var(--jd-coral); }
.jd-modal__stage { flex: 1; min-height: 0; display: flex; justify-content: center; background: #121117; padding: 0; transition: padding .3s; }
.jd-modal__frame { position: relative; width: 100%; height: 100%; background: #fff; transition: width .35s var(--jd-ease), border-radius .35s; overflow: hidden; }
.jd-modal__stage[data-view="tablet"] { padding: 1rem; }
.jd-modal__stage[data-view="tablet"] .jd-modal__frame { width: min(820px, 100%); border-radius: 14px; }
.jd-modal__stage[data-view="mobile"] { padding: 1rem; }
.jd-modal__stage[data-view="mobile"] .jd-modal__frame { width: min(390px, 100%); border-radius: 22px; }
.jd-modal__frame iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
.jd-modal__loading { position: absolute; inset: 0; z-index: 0; display: grid; place-content: center; justify-items: center; gap: .8rem; color: #5F5B53; font-size: .9rem; }
.jd-modal__loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #E8E2D5; border-top-color: var(--jd-blue); animation: jd-spin .8s linear infinite; }
.jd-modal__loading.is-done { display: none; }
@keyframes jd-spin { to { transform: rotate(360deg); } }
.jd-modal__hint { margin: 0; padding: .55rem 1rem; font-size: .78rem; color: #A9A59C; background: #1b1a21; text-align: center; }
.jd-modal__hint a { color: var(--jd-sun) !important; }
@media (max-width: 640px) { .jd-modal__views { display: none; } .jd-modal__panel { height: 100%; border-radius: 12px; } .jd-modal__url { order: 5; flex-basis: 100%; } }

/* ---------- private portfolio ---------- */
.jd-locked { position: relative; overflow: hidden; border: 1px solid rgba(243, 239, 230, .16); border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem) !important; background: radial-gradient(120% 140% at 100% 0%, rgba(63, 94, 251, .35), transparent 55%), radial-gradient(90% 120% at 0% 100%, rgba(252, 70, 107, .22), transparent 55%), #1d1c23; }
.jd-locked::before { content: ""; display: block; width: 46px; height: 46px; margin-bottom: 1.4rem; border-radius: 14px; background: var(--jd-sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316151A'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / 22px no-repeat; }
.jd-locked__title { font-family: var(--jd-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.15; margin: 0 0 .75rem !important; max-width: 22ch; }
.jd-locked__text { color: #C9C5BC; max-width: 46ch; margin: 0 !important; }
.jd-locked .wp-block-buttons { margin-top: 1.8rem; gap: .75rem; }
.jd-dark .jd-locked .is-style-outline .wp-block-button__link { background: transparent !important; color: var(--jd-paper) !important; border-color: rgba(243, 239, 230, .5) !important; }
.jd-dark .jd-locked .is-style-outline .wp-block-button__link:hover { background: var(--jd-paper) !important; color: var(--jd-ink) !important; }

.post-password-form { max-width: 560px; margin: clamp(3.5rem, 10vw, 7rem) auto; padding: clamp(2rem, 5vw, 3rem); background: #FBF9F4; border: 1px solid var(--jd-line); border-radius: 24px; box-shadow: 0 30px 60px -40px rgba(22, 21, 26, .45); text-align: center; }
.post-password-form::before { content: ""; display: block; width: 54px; height: 54px; margin: 0 auto 1.25rem; border-radius: 16px; background: var(--jd-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F2E94E'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h1zm2 0h6V7a3 3 0 0 0-6 0v3z'/%3E%3C/svg%3E") center / 24px no-repeat; }
.post-password-form > p:first-of-type { font-family: var(--jd-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.25; margin: 0 0 1.5rem; }
.post-password-form > p:first-of-type::after { content: "Ask Jun for the password, or request it on the contact page."; display: block; font-family: var(--wp--preset--font-family--body); font-size: .95rem; color: var(--jd-muted); margin-top: .6rem; }
.post-password-form > p:last-of-type { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 0; }
.post-password-form label { flex: 1 1 240px; font-size: 0; text-align: left; }
.post-password-form input[type="password"] { width: 100%; box-sizing: border-box; font: 400 1rem/1.4 var(--wp--preset--font-family--body); padding: .9rem 1.1rem; border: 1px solid var(--jd-line); border-radius: 999px; background: #fff; color: var(--jd-ink); }
.post-password-form input[type="password"]:focus { outline: none; border-color: var(--jd-blue); box-shadow: 0 0 0 4px rgba(63, 94, 251, .15); }
.post-password-form input[type="submit"] { cursor: pointer; border: 0; border-radius: 999px; background: var(--jd-ink); color: var(--jd-paper); font: 600 .95rem/1 var(--wp--preset--font-family--body); padding: .95rem 1.7rem; transition: background .25s; }
.post-password-form input[type="submit"]:hover { background: var(--jd-blue); }
.post-password-form .post-password-form-invalid-password { color: var(--jd-coral); font-weight: 600; margin: 0 0 1rem; }
