/* Jamie Gray: shared styles (header, footer, motion, forms, posts). */
:root{--jg-bg:#06100e;--jg-ink:#e8f1ee;--jg-mute:#a9bcb6;--jg-accent:#6fe3c4;--jg-link:#8fe9d0;--jg-head:'Bricolage Grotesque',sans-serif;--jg-body:'Manrope',system-ui,sans-serif}
html{scroll-behavior:smooth}
body{margin:0;background:var(--jg-bg);color:var(--jg-ink);font-family:var(--jg-body);-webkit-font-smoothing:antialiased;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
a{color:var(--jg-link);text-decoration:none}
a:hover{color:#c4f5e8}
img{max-width:100%}
p{margin:0}
h1,h2,h3,h4{margin:0;font-weight:inherit}
.jg-main{display:flex;flex-direction:column}
.jg-sec{overflow:hidden}
.jg-sec>*{position:relative}
.jg-sec>.drift,.jg-sec>.orb,.jg-sec>svg,.jg-sec>.spin,.jg-sec>.spinr{position:absolute}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.jg-skip{position:absolute;left:-9999px;top:8px;z-index:100;padding:10px 16px;border-radius:8px;background:var(--jg-ink);color:var(--jg-bg)}
.jg-skip:focus{left:16px}
:focus-visible{outline:2px solid var(--jg-accent);outline-offset:3px}

/* ---------- motion (from the design) ---------- */
.nl{position:relative;transition:color .2s ease}
.nl:hover{color:#fff!important}
.nl::after{content:"";position:absolute;left:0;bottom:-7px;height:2px;width:0;background:var(--jg-accent);transition:width .25s ease}
.nl:hover::after{width:100%}
.card{transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease,background-color .28s ease}
.card:hover{transform:translateY(-6px);border-color:rgba(143,233,208,.65)!important;box-shadow:0 22px 60px rgba(60,200,170,.2);background-color:rgba(255,255,255,.07)!important}
.btn{transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.btn:hover{transform:translateY(-2px);box-shadow:0 12px 34px rgba(111,227,196,.38);filter:brightness(1.1)}
.btn2{transition:transform .2s ease,background-color .2s ease,border-color .2s ease}
.btn2:hover{transform:translateY(-2px);background-color:rgba(232,241,238,.1)!important;border-color:#e8f1ee!important}
.arrow{display:inline-block;transition:transform .2s ease}
.card:hover .arrow,a:hover .arrow,.jg-linkcard:hover .arrow{transform:translateX(5px)}
.chip{transition:border-color .2s ease,background-color .2s ease}
.chip:hover{border-color:rgba(255,255,255,.7)!important;background-color:rgba(255,255,255,.12)!important}
@keyframes fadeUp{from{opacity:0;transform:translateY(34px)}to{opacity:1;transform:translateY(0)}}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes spinr{to{transform:rotate(-360deg)}}
@keyframes blink{0%,100%{opacity:.3}50%{opacity:1}}
@keyframes drift{from{background-position:0 0}to{background-position:26px 26px}}
@keyframes dash{to{stroke-dashoffset:-24}}
@keyframes breathe{0%,100%{opacity:.55;transform:scale(1)}50%{opacity:.95;transform:scale(1.06)}}
.rv{animation:fadeUp .9s cubic-bezier(.2,.7,.2,1) both}
.rv2{animation-delay:.15s}.rv3{animation-delay:.3s}.rv4{animation-delay:.45s}.rv5{animation-delay:.6s}
.fl1{animation:floaty 7s ease-in-out infinite}
.fl2{animation:floaty 8.5s ease-in-out -2s infinite}
.fl3{animation:floaty 6.5s ease-in-out -4s infinite}
.fl4{animation:floaty 9s ease-in-out -1s infinite}
.spin{animation:spin 90s linear infinite}
.spinr{animation:spinr 130s linear infinite}
.pl{animation:blink 3s ease-in-out infinite}
.drift{animation:drift 40s linear infinite}
.flow{stroke-dasharray:5 7;animation:dash 1.2s linear infinite}
.orb{animation:breathe 9s ease-in-out infinite}
@supports (animation-timeline: view()){
.sv{animation:fadeUp linear both;animation-timeline:view();animation-range:entry 0% entry 40%}
.sv2{animation-range:entry 6% entry 46%}.sv3{animation-range:entry 12% entry 52%}
.sv4{animation-range:entry 18% entry 58%}.sv5{animation-range:entry 24% entry 64%}
}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

/* whole-card links: the last line holds the link, stretched over the card */
.jg-linkcard{position:relative;cursor:pointer}
.jg-stretch{color:inherit}
.jg-stretch:hover{color:inherit}
.jg-stretch::after{content:"";position:absolute;inset:0;z-index:1}

/* images in the editor/front end */
.jg-pic{display:block}

/* ---------- header ---------- */
.jg-header{position:fixed;left:0;right:0;top:0;z-index:50;transition:background-color .25s ease,box-shadow .25s ease,backdrop-filter .25s ease}
.admin-bar .jg-header{top:32px}
@media (max-width:782px){.admin-bar .jg-header{top:46px}}
.jg-header.is-scrolled{background:rgba(6,16,14,.86);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 1px 0 rgba(143,233,208,.14)}
.jg-hbar{max-width:1440px;margin:0 auto;height:88px;padding:0 80px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:var(--jg-ink);font-size:15px}
.jg-brand{display:flex;align-items:center;gap:12px;color:var(--jg-ink)}
.jg-brand:hover{color:var(--jg-ink)}
.jg-brand svg{flex-shrink:0}
.jg-brand-txt{display:flex;flex-direction:column}
.jg-brand-name{font-family:var(--jg-head);font-size:21px;font-weight:600;line-height:22px;letter-spacing:-.3px}
.jg-brand-tag{margin-top:2px;font-size:12px;line-height:14px;color:var(--jg-mute)}
.jg-nav{display:flex;align-items:center;gap:36px;margin:0;padding:0;list-style:none}
.jg-nav>li{position:relative;height:88px;display:flex;align-items:center}
.jg-nav>li>a{position:relative;color:var(--jg-mute);font-size:15px;font-weight:500;transition:color .2s ease}
.jg-nav>li>a::after{content:"";position:absolute;left:0;bottom:-7px;height:2px;width:0;background:var(--jg-accent);transition:width .25s ease}
.jg-nav>li>a:hover,.jg-nav>li.current-menu-item>a,.jg-nav>li.current-menu-ancestor>a,.jg-nav>li.current-menu-parent>a,.jg-nav>li.current_page_parent>a{color:#fff}
.jg-nav>li>a:hover::after{width:100%}
.jg-nav>li.menu-item-has-children>a::before{content:"\25BE";position:absolute;right:-14px;top:50%;transform:translateY(-50%);font-size:10px}
.jg-nav>li.menu-item-has-children>a{margin-right:14px}
.jg-nav .sub-menu{position:absolute;left:-24px;top:76px;width:340px;margin:0;padding:12px 0 0;list-style:none;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:20}
.jg-nav .sub-menu::before{content:"";position:absolute;left:0;right:0;top:12px;bottom:0;border-radius:16px;border:1px solid rgba(143,233,208,.35);background:rgba(8,20,18,.97);box-shadow:0 24px 60px rgba(0,0,0,.55);z-index:-1}
.jg-nav li:hover>.sub-menu,.jg-nav li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.jg-nav .sub-menu li{padding:0 10px}
.jg-nav .sub-menu li:first-child{padding-top:10px}
.jg-nav .sub-menu li:last-child{padding-bottom:10px}
.jg-nav .sub-menu a{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:10px;color:var(--jg-ink);font-size:14px;transition:background-color .15s ease}
.jg-nav .sub-menu a:hover{background:rgba(111,227,196,.14);color:var(--jg-ink)}
.jg-nav .sub-menu li.jg-all>a{font-weight:600}
.jg-nav .sub-menu li.jg-all>a::after{content:"\2192";display:inline-block;transition:transform .2s ease}
.jg-nav .sub-menu li.jg-all>a:hover::after{transform:translateX(5px)}
.jg-nav .sub-menu li.jg-all{border-bottom:1px solid rgba(143,233,208,.18);padding-bottom:6px;margin-bottom:6px}
.jg-nav .sub-menu li:not(.jg-all)>a::before{content:"";flex-shrink:0;width:9px;height:9px;border-radius:5px;background:var(--dot,#6fe3c4)}
.jg-nav .sub-menu li:nth-child(2){--dot:#6fe3c4}
.jg-nav .sub-menu li:nth-child(3){--dot:#7ab0ff}
.jg-nav .sub-menu li:nth-child(4){--dot:#a99bff}
.jg-nav .sub-menu li:nth-child(5){--dot:#f6c56f}
.jg-hcta{display:flex;align-items:center;justify-content:center;height:44px;padding:0 22px;border-radius:10px;background:var(--jg-ink);color:var(--jg-bg);font-size:15px;font-weight:600;white-space:nowrap}
.jg-hcta:hover{color:var(--jg-bg)}
.jg-burger{display:none;width:44px;height:44px;border:1px solid rgba(232,241,238,.3);border-radius:10px;background:transparent;color:var(--jg-ink);cursor:pointer;align-items:center;justify-content:center}
.jg-burger span,.jg-burger span::before,.jg-burger span::after{display:block;width:18px;height:2px;background:currentColor;border-radius:2px;position:relative;transition:transform .2s ease,background-color .2s ease}
.jg-burger span::before,.jg-burger span::after{content:"";position:absolute;left:0}
.jg-burger span::before{top:-6px}.jg-burger span::after{top:6px}
.jg-open .jg-burger span{background:transparent}
.jg-open .jg-burger span::before{transform:translateY(6px) rotate(45deg)}
.jg-open .jg-burger span::after{transform:translateY(-6px) rotate(-45deg)}
@media (max-width:1100px){
.jg-hbar{padding:0 24px;height:76px}
.jg-burger{display:flex}
.jg-navwrap{position:fixed;left:0;right:0;top:76px;bottom:0;padding:16px 24px 40px;background:rgba(6,16,14,.98);overflow-y:auto;opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .2s ease,transform .2s ease,visibility .2s}
.admin-bar .jg-navwrap{top:108px}
.jg-open .jg-navwrap{opacity:1;visibility:visible;transform:none}
.jg-open .jg-header{background:rgba(6,16,14,.98)}
.jg-nav{flex-direction:column;align-items:stretch;gap:0}
.jg-nav>li{height:auto;display:block;border-bottom:1px solid rgba(143,233,208,.12)}
.jg-nav>li>a{display:block;padding:16px 0;font-size:18px;color:var(--jg-ink)}
.jg-nav>li>a::after,.jg-nav>li.menu-item-has-children>a::before{display:none}
.jg-nav .sub-menu{position:static;width:auto;opacity:1;visibility:visible;transform:none;padding:0 0 12px}
.jg-nav .sub-menu::before{display:none}
.jg-nav .sub-menu li,.jg-nav .sub-menu li:first-child,.jg-nav .sub-menu li:last-child{padding:0}
.jg-nav .sub-menu li.jg-all{border:0;margin:0}
.jg-navwrap .jg-hcta{margin-top:24px;height:52px}
.jg-hbar>.jg-hcta{display:none}
}
@media (min-width:1101px){.jg-navwrap .jg-hcta{display:none}.jg-navwrap{display:contents}}
@media (max-width:1100px) and (min-width:1101px){.jg-hbar>.jg-hcta{display:none}}
@media (max-width:1240px) and (min-width:1101px){.jg-hbar{padding:0 40px}.jg-nav{gap:26px}}

/* ---------- footer ---------- */
.jg-footer{border-top:1px solid rgba(143,233,208,.14);background:#050b0a;color:var(--jg-ink)}
.jg-fbar{max-width:1440px;margin:0 auto;padding:48px 80px 44px;display:flex;justify-content:space-between;align-items:flex-start;gap:40px}
.jg-fabout{width:440px;max-width:100%}
.jg-fname{font-family:var(--jg-head);font-size:20px;font-weight:600;line-height:24px}
.jg-ftag{margin-top:6px;font-size:14px;line-height:22px;color:var(--jg-mute)}
.jg-fnote{margin-top:12px;font-size:13px;line-height:20px;color:#8fa39d}
.jg-fcol{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;font-size:14px}
.jg-fcol a{position:relative;color:var(--jg-link)}
.jg-fcol a::after{content:"";position:absolute;left:0;bottom:-5px;height:2px;width:0;background:var(--jg-accent);transition:width .25s ease}
.jg-fcol a:hover{color:#fff}
.jg-fcol a:hover::after{width:100%}
.jg-fcopy{max-width:1440px;margin:0 auto;padding:0 80px 28px;font-size:12px;color:#6f817c}
@media (max-width:1100px){.jg-fbar{padding:44px 40px 36px;flex-wrap:wrap}.jg-fabout{width:100%}.jg-fcopy{padding:0 40px 28px}}
@media (max-width:700px){.jg-fbar{padding:40px 20px 32px;gap:28px 40px}.jg-fcopy{padding:0 20px 24px}}

/* ---------- Contact Form 7 (classes match the design) ---------- */
.wpcf7 form{margin:0}
.wpcf7 p{margin:0}
.wpcf7 br{display:none}
.wpcf7-form-control-wrap{display:block}
.jg-rw{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:22px}
.jg-row{margin-bottom:22px}
.jg-lb{display:block;margin-bottom:8px;font-size:14px;font-weight:600;color:#d5e2de}
.jg-fi{display:block;width:100%;height:52px;padding:0 16px;border-radius:12px;border:1px solid rgba(232,241,238,.3);background:rgba(8,20,18,.85);color:var(--jg-ink);font-family:var(--jg-body);font-size:16px;transition:border-color .2s ease,box-shadow .2s ease;-webkit-appearance:none;appearance:none}
select.jg-fi{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9bcb6' stroke-width='1.6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;padding-right:40px}
.jg-fi:focus{outline:none;border-color:var(--jg-accent);box-shadow:0 0 0 3px rgba(111,227,196,.2)}
textarea.jg-fi{height:150px;padding:14px 16px;resize:vertical}
select.jg-fi option{background:#0a1a17;color:var(--jg-ink)}
.jg-fi::placeholder{color:#8fa39d}
.jg-consent{display:flex;gap:12px;align-items:flex-start;margin-bottom:26px;font-size:13px;line-height:21px;color:var(--jg-mute)}
.jg-consent .wpcf7-list-item{margin:0}
.jg-consent label{display:flex;gap:12px;align-items:flex-start}
.jg-consent input[type=checkbox]{margin-top:2px;width:18px;height:18px;flex-shrink:0;accent-color:var(--jg-accent)}
.jg-submit{height:56px;padding:0 36px;border:0;border-radius:12px;background:var(--jg-accent);color:var(--jg-bg);font-family:var(--jg-body);font-size:16px;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.jg-submit:hover{transform:translateY(-2px);box-shadow:0 12px 34px rgba(111,227,196,.38);filter:brightness(1.1)}
.jg-fnote2{margin-top:14px;font-size:13px;color:#8fa39d}
.jg-nlrow{display:flex;gap:12px;width:100%}
.jg-nlrow .wpcf7-form-control-wrap{flex-grow:1;min-width:0}
.jg-nlrow .jg-fi{height:54px;padding:0 18px;border-color:rgba(232,241,238,.35);background:rgba(8,10,34,.8)}
.jg-nlrow .jg-submit{height:54px;padding:0 26px;flex-shrink:0}
.jg-form{min-width:0}
.jg-form>.wpcf7{width:100%}
.wpcf7 .wpcf7-spinner{position:absolute;margin:16px}
.wpcf7-not-valid-tip{margin-top:6px;font-size:13px;color:#ffb4a8}
.wpcf7 form .wpcf7-response-output{margin:16px 0 0;padding:12px 16px;border-radius:12px;font-size:14px;line-height:21px}
.wpcf7 form.sent .wpcf7-response-output{border-color:var(--jg-accent);color:var(--jg-ink)}
.wpcf7 form.invalid .wpcf7-response-output,.wpcf7 form.failed .wpcf7-response-output{border-color:#f6c56f;color:var(--jg-ink)}
@media (max-width:700px){.jg-rw{grid-template-columns:minmax(0,1fr)}.jg-nlrow{flex-direction:column}.jg-nlrow .jg-submit{width:100%}}

/* ---------- article cards ([jg_posts]) ---------- */
.jg-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:44px}
.jg-page-blog .jg-posts{margin-top:30px}
.jg-pc{position:relative;display:flex;flex-direction:column;overflow:hidden;min-height:260px;border-radius:18px;border:1px solid rgba(var(--c),.3);background:rgba(var(--bg),.6);color:var(--jg-ink)}
.jg-pc:hover{color:var(--jg-ink)}
.jg-pc-band{position:relative;height:84px;display:flex;align-items:center;gap:14px;padding:0 26px;background:var(--band)}
.jg-pc-band img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.jg-pc-ic{position:relative;width:44px;height:44px;border-radius:12px;background:rgba(6,16,14,.35);display:flex;align-items:center;justify-content:center}
.jg-pc-cat{position:relative;font-size:12px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase}
.jg-pc-body{padding:22px 26px;display:flex;flex-direction:column;flex-grow:1}
.jg-pc-title{font-family:var(--jg-head);font-size:22px;font-weight:400;line-height:29px;letter-spacing:-.3px}
.jg-pc-ex{margin-top:10px;font-size:14px;line-height:22px;color:var(--jg-mute)}
.jg-pc-more{margin-top:auto;padding-top:16px;font-size:14px;font-weight:600;color:var(--more)}
.jg-v1{--c:143,233,208;--bg:10,40,44;--band:linear-gradient(120deg,rgba(36,190,160,.55),rgba(60,120,230,.5));--more:#8fe9d0}
.jg-v2{--c:169,155,255;--bg:22,18,56;--band:linear-gradient(120deg,rgba(130,100,255,.6),rgba(60,120,230,.5));--more:#c6bcff}
.jg-v3{--c:246,197,111;--bg:40,32,12;--band:linear-gradient(120deg,rgba(240,170,60,.55),rgba(36,190,160,.45));--more:#f6c56f}
@media (max-width:1100px){.jg-posts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.jg-posts{grid-template-columns:minmax(0,1fr)}.jg-pc{min-height:0}}

/* ---------- single post, archive, 404 ---------- */
.jg-art{position:relative;overflow:hidden;padding:170px max(24px, calc((100% - 760px) / 2)) 96px;background:radial-gradient(700px 480px at 6% 0%, rgba(36,190,160,.18), transparent 62%),radial-gradient(760px 480px at 96% 0%, rgba(60,130,255,.14), transparent 62%),var(--jg-bg)}
.jg-art-eb{font-size:14px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:var(--jg-accent)}
.jg-art h1{margin:18px 0 0;font-family:var(--jg-head);font-weight:300;font-size:52px;line-height:58px;letter-spacing:-1.4px}
.jg-art-meta{margin-top:18px;font-size:14px;color:#8fa39d}
.jg-art-cover{margin-top:36px;border-radius:20px;overflow:hidden;border:1px solid rgba(143,233,208,.25)}
.jg-art-cover img{display:block;width:100%;height:auto}
.jg-prose{margin-top:40px;font-size:18px;line-height:31px;color:#d5e2de}
.jg-prose>*+*{margin-top:22px}
.jg-prose h2{margin-top:44px;font-family:var(--jg-head);font-weight:400;font-size:32px;line-height:38px;letter-spacing:-.6px;color:var(--jg-ink)}
.jg-prose h3{margin-top:34px;font-family:var(--jg-head);font-weight:600;font-size:22px;line-height:29px;color:var(--jg-ink)}
.jg-prose a{text-decoration:underline;text-underline-offset:3px}
.jg-prose ul,.jg-prose ol{padding-left:24px}
.jg-prose li+li{margin-top:8px}
.jg-prose blockquote{margin-left:0;padding:4px 0 4px 22px;border-left:3px solid var(--jg-accent);color:var(--jg-ink)}
.jg-prose img{height:auto;border-radius:14px}
.jg-prose code{padding:2px 6px;border-radius:6px;background:rgba(143,233,208,.12);font-size:.9em}
.jg-art-back{display:inline-block;margin-top:48px;font-size:15px;font-weight:600}
.jg-list{padding:170px max(24px, calc((100% - 1280px) / 2)) 96px;min-height:70vh}
.jg-list h1{font-family:var(--jg-head);font-weight:300;font-size:52px;line-height:58px;letter-spacing:-1.4px}
.jg-pager{margin-top:36px;display:flex;gap:16px;font-weight:600}
@media (max-width:700px){.jg-art{padding-top:130px;padding-bottom:64px}.jg-art h1,.jg-list h1{font-size:34px;line-height:40px;letter-spacing:-.8px}.jg-prose{font-size:17px;line-height:29px}.jg-list{padding-top:130px}}

/* ---------- editor canvas ---------- */
.editor-styles-wrapper{background:var(--jg-bg);color:var(--jg-ink);font-family:var(--jg-body)}
.editor-styles-wrapper .jg-sec .rv,.editor-styles-wrapper .sv,.editor-styles-wrapper .sv2,.editor-styles-wrapper .sv3,.editor-styles-wrapper .sv4,.editor-styles-wrapper .sv5{animation:none!important}
.jg-consent{flex-wrap:wrap}
.jg-consent-note{flex-basis:100%;padding-left:30px;margin-top:-14px}
.jg-consent .wpcf7-form-control-wrap{display:inline}
