/*
Theme Name: DG Portfolio Theme
Theme URI: https://joemcotiey.com
Author: Joseph Otieno
Description: A single-screen, no-scroll portfolio theme for a web designer, developer and ICT expert. Navy, blue and maroon palette.
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dg-portfolio-theme
*/

:root {
  --bg: #050912;
  --panel: #091126;
  --panel-2: #0c1630;
  --navy: #101c3d;
  --navy-2: #14234a;
  --line: rgba(88, 118, 200, .22);
  --line-2: rgba(88, 118, 200, .12);
  --blue: #3b6bff;
  --blue-2: #5a82ff;
  --red: #b8303f;
  --red-2: #d23a4b;
  --maroon: #7d1f2c;
  --blue-hi: #4a78ff;
  --blue-lo: #1f3fa8;
  --red-hi: #c43547;
  --red-lo: #a22837;
  --text: #e9edf9;
  --muted: #8d97b3;
  --dim: #6a7592;
  --mono: 'JetBrains Mono', 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --head: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); }

body {
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 600; letter-spacing: -0.02em; }
ul { list-style: none; margin: 0; padding: 0; }

.wrap { width: min(1144px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Shell ---------- */
.jo-shell {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 90% 6%, rgba(40, 80, 210, .24), transparent 62%),
    radial-gradient(720px 520px at 0% 100%, rgba(125, 31, 44, .26), transparent 62%),
    var(--bg);
}
body.admin-bar .jo-shell { height: calc(100vh - 32px); height: calc(100dvh - 32px); }

.jo-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse at 45% 25%, #000 0, transparent 70%);
          mask-image: radial-gradient(ellipse at 45% 25%, #000 0, transparent 70%);
  opacity: .55;
  pointer-events: none;
}
.jo-shell > * { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.jo-header { flex: none; height: 65px; border-bottom: 1px solid var(--line-2); background: rgba(5, 9, 18, .55); backdrop-filter: blur(8px); }
.jo-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }

.jo-brand { display: flex; align-items: center; gap: 12px; }
.jo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--blue-hi), #2447b8);
  box-shadow: 0 0 22px color-mix(in srgb, var(--blue) 45%, transparent);
  font-family: var(--head); font-weight: 700; font-size: 13px; color: #fff;
}
.jo-brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.jo-brand__txt strong { font-family: var(--head); font-size: 14px; font-weight: 600; }
.jo-brand__txt small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em; color: var(--dim); margin-top: 3px; }

.jo-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(9, 17, 38, .7);
}
.jo-nav a { padding: 8px 17px; border-radius: 999px; font-size: 13px; color: var(--muted); transition: color .2s, background .2s; }
.jo-nav a:hover { color: var(--text); }
.jo-nav a.is-active { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue-2) 18%, transparent); }

.jo-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--body); font-weight: 600; font-size: 13px; cursor: pointer; line-height: 1.2;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.jo-btn svg { width: 12px; height: 12px; }
.jo-btn:hover { transform: translateY(-1px); }
.jo-btn--red { background: linear-gradient(180deg, var(--red-hi), var(--red-lo)); color: #fff; box-shadow: 0 6px 22px color-mix(in srgb, var(--red) 30%, transparent); }
.jo-btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 26px color-mix(in srgb, var(--blue) 35%, transparent); }
.jo-btn--ghost { background: rgba(9, 17, 38, .6); border-color: var(--line); color: var(--text); }
.jo-btn--lg { padding: 13px 20px; border-radius: 10px; }
.jo-header .jo-btn { padding: 10px 17px; }

/* ---------- Main ---------- */
.jo-main { flex: 1; min-height: 0; display: flex; overflow-y: auto; scrollbar-width: none; }
.jo-main::-webkit-scrollbar { display: none; }
.jo-main > .wrap { margin-block: auto; padding-block: 14px; }

/* ---------- Footer ---------- */
.jo-footer { flex: none; height: 42px; border-top: 1px solid var(--line-2); }
.jo-footer__in { height: 100%; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.jo-footer__links { display: flex; gap: 16px; }
.jo-footer__links a:hover { color: var(--text); }
.jo-footer__links .jo-footer__contact { text-transform: none; letter-spacing: .06em; color: #aab4d0; }

/* ---------- Floating WhatsApp button ---------- */
.jo-wa { position: fixed; z-index: 50; right: 24px; bottom: 58px; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(9, 17, 38, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text); font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; animation: jo-wa-in .6s .8s cubic-bezier(.2, .7, .2, 1) forwards; transition: transform .25s ease, border-color .25s, box-shadow .25s; }
.jo-wa svg { width: 15px; height: 15px; color: #25d366; flex: none; }
.jo-wa__dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: #25d366; flex: none; }
.jo-wa__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: jo-wa-pulse 3s ease-out infinite; }
.jo-wa:hover, .jo-wa:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, #25d366 55%, transparent); box-shadow: 0 14px 34px rgba(0, 0, 0, .4), 0 0 0 4px color-mix(in srgb, #25d366 10%, transparent); }
.jo-wa:focus-visible { outline: 2px solid #25d366; outline-offset: 3px; }
@keyframes jo-wa-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes jo-wa-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
@media (max-width: 640px) { .jo-wa { right: 14px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .jo-wa { animation: none; opacity: 1; } .jo-wa__dot::after { animation: none; display: none; } }

/* ---------- Shared bits ---------- */
.jo-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 12px; }
.jo-eyebrow b { font-weight: 500; color: var(--red-2); }
.jo-eyebrow i { display: block; width: 52px; height: 1px; background: var(--line); }

.jo-title { font-size: clamp(34px, 6vh, 46px); line-height: 1.08; margin-top: 12px; }
.jo-title .dot { color: var(--red); }

.mono-label { font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }

.jo-card {
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 24, 52, .72), rgba(7, 13, 28, .85));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

/* Marquee */
.jo-marquee {
  overflow: hidden; border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(7, 13, 28, .6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.jo-marquee__track { display: flex; width: max-content; animation: jo-scroll 38s linear infinite; }
.jo-marquee__item { display: inline-flex; align-items: center; gap: 22px; padding: 13px 0 13px 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #aab4d0; white-space: nowrap; }
.jo-marquee__item::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
@keyframes jo-scroll { to { transform: translateX(-50%); } }

/* ---------- Home ---------- */
.jo-home { display: grid; grid-template-columns: minmax(0, 1fr) 452px; gap: 40px; align-items: center; }
.jo-home__wrap { display: flex; flex-direction: column; gap: 22px; }

.jo-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(9, 17, 38, .6); font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #aab4d0; }
.jo-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }

.jo-hero-title { font-size: clamp(40px, 7.4vh, 58px); line-height: 1; margin-top: 18px; }
.jo-hero-title .dot { color: var(--red); }
.jo-roles { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-2); margin-top: 12px; }
.jo-roles span { color: var(--red); margin: 0 6px; }
.jo-lead { margin-top: 16px; max-width: 420px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.jo-cta { display: flex; gap: 10px; margin-top: 26px; }

.jo-stats { display: flex; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.jo-stats > div { padding: 0 32px; border-left: 1px solid var(--line-2); }
.jo-stats > div:first-child { padding-left: 0; border-left: 0; }
.jo-stats strong { display: block; font-family: var(--head); font-size: 22px; font-weight: 600; }
.jo-stats strong em { font-style: normal; color: var(--red); }
.jo-stats span { display: block; margin-top: 4px; }

.jo-term { overflow: hidden; box-shadow: 0 30px 90px color-mix(in srgb, var(--blue) 28%, transparent), 0 0 0 1px color-mix(in srgb, var(--blue-2) 5%, transparent); }
.jo-term__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.jo-term__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.jo-term__bar i:nth-child(2) { background: var(--blue); }
.jo-term__bar i:nth-child(3) { background: #35415f; }
.jo-term__bar span { margin-left: auto; font-family: var(--mono); font-size: 9px; letter-spacing: .18em; color: var(--muted); }
.jo-term__view { position: relative; height: clamp(190px, 38vh, 266px); background:
  linear-gradient(var(--line-2) 1px, transparent 1px) 0 0 / 38px 38px,
  linear-gradient(90deg, var(--line-2) 1px, transparent 1px) 0 0 / 38px 38px,
  radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 65%); }
.jo-term canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.jo-pill { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--blue-2) 40%, transparent); border-radius: 999px; background: rgba(20, 40, 100, .5); font-family: var(--mono); font-size: 8px; letter-spacing: .16em; color: var(--blue-2); }
.jo-term__log { position: absolute; left: 16px; bottom: 12px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; color: #98a4c4; line-height: 1.9; text-transform: uppercase; }
.jo-term__log b { color: var(--blue-2); font-weight: 500; margin-right: 6px; }
.jo-term__metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.jo-term__metrics > div { padding: 11px 16px; border-left: 1px solid var(--line-2); }
.jo-term__metrics > div:first-child { border-left: 0; }
.jo-term__metrics strong { display: block; margin-top: 3px; font-family: var(--head); font-size: 15px; font-weight: 600; }

.jo-home .jo-marquee { grid-column: 1 / -1; }

/* ---------- About ---------- */
.jo-about { display: grid; grid-template-columns: minmax(0, 1fr) 452px; gap: 40px 90px; align-items: center; }
.jo-about h1 { font-size: clamp(34px, 6.4vh, 46px); line-height: 1.1; margin-top: 14px; }
.jo-grad { background: linear-gradient(90deg, #6f7dff, #c9506a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jo-about h1 .dot { color: var(--text); }
.jo-about__copy { max-width: 600px; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.jo-about__copy strong { color: var(--text); font-weight: 500; }
.jo-facts { display: grid; grid-template-columns: repeat(4, auto); margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 17, 38, .6); width: 100%; max-width: 650px; }
.jo-facts > div { padding: 11px 14px; border-left: 1px solid var(--line-2); }
.jo-facts > div:first-child { border-left: 0; }
.jo-facts strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--text); font-family: var(--body); }

.jo-profile__head { display: flex; align-items: center; gap: 16px; padding: 16px; }
.jo-profile__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(145deg, var(--blue-hi), var(--blue-lo)); font-family: var(--head); font-weight: 700; font-size: 18px; box-shadow: 0 0 30px color-mix(in srgb, var(--blue) 40%, transparent); }
.jo-profile__head strong { display: block; font-family: var(--head); font-size: 17px; font-weight: 600; }
.jo-profile__head small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em; color: var(--dim); }
.jo-profile__loc { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; color: var(--blue-2); text-transform: uppercase; }
.jo-profile__loc i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.jo-profile__how { padding: 14px 16px 16px; border-top: 1px solid var(--line-2); }
.jo-profile__how ul { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.jo-profile__how li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #c5cde4; }
.jo-profile__how li::before { content: ""; width: 10px; height: 1px; background: var(--red); }
.jo-profile__foot { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-top: 1px solid var(--line-2); }
.jo-profile__foot span:last-child { display: flex; align-items: center; gap: 7px; color: var(--blue-2); }
.jo-profile__foot span:last-child::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.jo-about .jo-marquee { grid-column: 1 / -1; }

/* ---------- Services ---------- */
.jo-services { display: grid; grid-template-columns: minmax(0, 1fr) 452px; column-gap: 40px; }
.jo-services__head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 262px; gap: 40px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); margin-bottom: 0; }
.jo-services__head h2 { font-size: clamp(32px, 5.6vh, 40px); line-height: 1.1; margin-top: 12px; }
.jo-services__head h2 .dot { color: var(--red); }
.jo-side { color: var(--muted); font-size: 12.5px; line-height: 1.65; }

.jo-svc { display: grid; grid-template-columns: 26px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.jo-svc:last-child { border-bottom: 0; }
.jo-svc__n { font-family: var(--mono); font-size: 9.5px; color: var(--red-2); padding-top: 4px; }
.jo-svc h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.jo-svc p { margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.jo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.jo-tags span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase; color: #98a4c4; background: rgba(9, 17, 38, .6); }

/* How I work card: image background with customizer-controlled opacity */
.jo-how { position: relative; overflow: hidden; margin-top: 16px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }
.jo-services__head + div { grid-column: 1; grid-row: 2; }
.jo-services > .jo-how { grid-column: 2; }
.jo-how__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; pointer-events: none; }
.jo-how__in { position: relative; z-index: 1; width: 100%; }
.jo-how__list { list-style: none; margin: 12px 0 0; padding: 0; }
.jo-how__list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 11px 0; border-top: 1px solid var(--line-2); }
.jo-how__list li:first-child { border-top: 0; padding-top: 4px; }
.jo-how__list li:last-child { padding-bottom: 4px; }
.jo-how__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--navy-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--text); }
.jo-how__last .jo-how__n { background: var(--maroon); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.jo-how__list strong { display: block; font-family: var(--head); font-size: 13.5px; font-weight: 600; color: var(--text); }
.jo-how__list p { margin: 3px 0 0; font-size: 12px; line-height: 1.5; color: #98a4c4; }

/* ---------- Work ---------- */
.jo-work__head { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.jo-work__head h2 { font-size: clamp(32px, 5.6vh, 40px); line-height: 1.1; margin-top: 14px; }
.jo-work__head h2 .dot { color: var(--red); }
.jo-work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 17px; }
.jo-proj { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(13, 22, 48, .8), rgba(7, 12, 26, .9)); transition: border-color .25s, transform .25s; }
.jo-proj:hover { border-color: color-mix(in srgb, var(--blue-2) 50%, transparent); transform: translateY(-2px); }
.jo-proj__art { position: relative; height: clamp(96px, 18vh, 143px); background: linear-gradient(180deg, rgba(25, 45, 100, .35), rgba(10, 18, 40, .2)); overflow: hidden; }
.jo-proj__art svg, .jo-proj__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.jo-proj__art img { object-fit: cover; display: block; }
.jo-proj__top h3 a { color: inherit; text-decoration: none; }
.jo-proj__top h3 a:hover { color: var(--blue-2); }
.jo-proj__art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(8, 14, 32, .95)); }
.jo-proj__art .jo-date { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: rgba(7, 13, 28, .75); font-family: var(--mono); font-size: 8px; letter-spacing: .16em; color: #aab4d0; }
.jo-proj__go { position: absolute; z-index: 3; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 0; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 13, 28, .75); color: #aab4d0; text-decoration: none; font-family: var(--mono); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: color .2s, border-color .2s, background .2s; }
.jo-proj__go span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .3s ease, opacity .2s ease, margin .3s ease; }
.jo-proj__art .jo-proj__go svg { position: static; inset: auto; flex: none; width: 12px; height: 12px; transition: transform .25s ease; }
.jo-proj:hover .jo-proj__go span, .jo-proj__go:hover span, .jo-proj__go:focus-visible span { max-width: 90px; opacity: 1; margin-right: 7px; }
.jo-proj__go:hover, .jo-proj__go:focus-visible { color: #fff; border-color: var(--blue-2); background: color-mix(in srgb, var(--blue) 35%, rgba(7, 13, 28, .85)); }
.jo-proj__art .jo-proj__go:hover svg, .jo-proj__art .jo-proj__go:focus-visible svg { transform: translate(1px, -1px); }
.jo-proj__go:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.jo-proj__body { padding: 13px 15px 14px; }
.jo-proj__top { display: flex; justify-content: space-between; align-items: baseline; }
.jo-proj__top h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.jo-proj__top span { font-family: var(--mono); font-size: 7.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.jo-proj p { margin-top: 6px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.jo-proj__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
.jo-proj__tech { display: flex; gap: 8px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.jo-scores { display: flex; gap: 12px; }
.jo-score { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.jo-score i { width: 22px; height: 4px; border-radius: 4px; background: var(--blue); }
.jo-score b { color: var(--text); font-weight: 600; }

/* ---------- Contact ---------- */
.jo-contact { display: grid; grid-template-columns: minmax(0, 1fr) 650px; gap: 40px; align-items: center; }
.jo-contact__intro h1 { font-size: clamp(36px, 6.6vh, 46px); line-height: 1.08; margin-top: 12px; }
.jo-contact__intro h1 .dot { color: var(--red); }
.jo-contact__intro > p { margin-top: 14px; max-width: 290px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.jo-mail { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 17, 38, .6); max-width: 453px; }
.jo-mail strong { font-family: var(--body); font-size: 12.5px; font-weight: 600; }
.jo-info { max-width: 453px; }
.jo-info > div { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 12px; color: #c5cde4; }
.jo-info > div:first-child { border-top: 1px solid var(--line-2); margin-top: 12px; }

.jo-form { padding: 0; overflow: hidden; }
.jo-form__head { display: flex; justify-content: space-between; margin: 18px 20px 0; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.jo-form__head span:last-child { color: var(--blue-2); }
.jo-form__body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; padding: 14px 20px 8px; }
.jo-field { display: flex; flex-direction: column; gap: 6px; }
.jo-field--wide { grid-column: 1 / -1; }
.jo-field input, .jo-field select, .jo-field textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(5, 9, 20, .8); color: var(--text); font-family: var(--body); font-size: 12.5px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.jo-field select { appearance: none; -webkit-appearance: none; padding-right: 34px; font-weight: 500; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23c5cde4' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.jo-field select option { background: #070d1c; color: var(--text); }
.jo-field textarea { height: 70px; resize: none; }
.jo-field ::placeholder { color: #4f5a78; }
.jo-field input:focus, .jo-field select:focus, .jo-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent); }
.jo-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jo-form__foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 20px; }
.jo-form__foot .jo-btn { border-radius: 10px; padding: 12px 18px; }
.jo-status { font-family: var(--mono); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; }
.jo-status--ok { color: #6f95ff; }
.jo-status--err { color: var(--red-2); }

/* ---------- Generic fallback ---------- */
.jo-generic { max-width: 720px; color: var(--muted); }
.jo-generic h1 { font-size: 36px; color: var(--text); margin-bottom: 14px; }

/* ---------- Compact heights (keeps every page on one screen) ---------- */
@media (max-height: 760px) {
  .jo-main > .wrap { padding-block: 8px; }
  .jo-svc { padding: 8px 0; }
  .jo-svc p { margin-top: 4px; }
  .jo-tags { margin-top: 6px; }
  .jo-how { margin-top: 10px; padding-block: 10px; }
  .jo-how__list li { padding: 7px 0; }
  .jo-services__head { padding-bottom: 10px; }
  .jo-work__grid { margin-top: 12px; gap: 12px; }
  .jo-proj__body { padding: 10px 14px 11px; }
  .jo-proj__foot { margin-top: 8px; }
  .jo-home__wrap { gap: 14px; }
  .jo-cta { margin-top: 18px; }
  .jo-stats { margin-top: 18px; padding-top: 12px; }
}
@media (max-height: 640px) {
  .jo-lead { margin-top: 10px; }
  .jo-about__copy { gap: 8px; font-size: 12.5px; }
  .jo-info > div { padding: 8px 0; }
  .jo-form__body { gap: 8px 10px; }
}

/* ---------- Contact page: reach card, availability, choice chips ---------- */
.jo-avail { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(40, 190, 120, .1); border: 1px solid rgba(60, 200, 130, .3); font-size: 11.5px; font-weight: 500; color: #8fe3b4; }
.jo-avail i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .18); }
.jo-reach { margin-top: 14px; max-width: 453px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); overflow: hidden; }
.jo-reach__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 16px; transition: background .2s; }
.jo-reach__row + .jo-reach__row { border-top: 1px solid var(--line-2); }
.jo-reach__row:hover { background: color-mix(in srgb, var(--blue) 8%, transparent); }
.jo-reach__row > span:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jo-reach__row strong { font-family: var(--head); font-size: 16px; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.jo-reach__ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; }
.jo-reach__ic--red { background: var(--red); }
.jo-reach__ic svg { width: 14px; height: 14px; }
.jo-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jo-social a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 500; color: #c3cbe3; transition: border-color .2s, color .2s; }
.jo-social a:hover { border-color: var(--blue-2); color: var(--text); }
.jo-contact .mono-label { color: #98a2c0; }
.jo-contact .jo-field ::placeholder { color: #7f8aa8; }
.jo-contact .jo-field textarea { height: clamp(64px, 13vh, 110px); }
.jo-choice { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; min-width: 0; }
.jo-choice legend { padding: 0; margin-bottom: 9px; }
.jo-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.jo-chip { position: relative; display: block; }
.jo-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.jo-chip span { display: block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #c3cbe3; background: #070d1f; transition: border-color .2s, background .2s; }
.jo-chip input:hover + span { border-color: var(--blue-2); }
.jo-chip input:checked + span { background: color-mix(in srgb, var(--blue) 20%, transparent); border-color: var(--blue); color: #fff; }
.jo-chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-height: 700px) {
  .jo-social { display: none; }
  .jo-info > div { padding: 7px 0; }
}
@media (max-height: 620px) {
  .jo-contact__intro > p:not(.jo-eyebrow) { display: none; }
}

/* ---------- Small screens: stack and allow the screen to scroll if it must ---------- */
@media (max-width: 1000px) {
  body { overflow: auto; }
  .jo-shell, body.admin-bar .jo-shell { height: auto; min-height: 100vh; overflow: visible; }
  .jo-main { overflow: visible; }
  .jo-nav { position: static; transform: none; }
  .jo-header { height: auto; padding: 10px 0; }
  .jo-header__in { flex-wrap: wrap; gap: 10px; }
  .jo-home, .jo-about, .jo-services, .jo-contact { grid-template-columns: 1fr; gap: 28px; }
  .jo-services__head, .jo-work__head { grid-template-columns: 1fr; }
  .jo-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jo-facts { grid-template-columns: repeat(2, 1fr); }
  .jo-services > .jo-how, .jo-services__head + div { grid-column: 1; grid-row: auto; }
  .jo-footer { height: auto; padding: 12px 0; }
  .jo-footer__in { flex-direction: column; gap: 8px; }
  .jo-form__body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .jo-work__grid { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .jo-proj__go span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .jo-proj__go, .jo-proj__go span, .jo-proj__art .jo-proj__go svg { transition: none; }
  .jo-marquee__track { animation: none; }
}

/* Entrance animation: a subtle fade and rise on page load, staggered per block.
   Uses "backwards" fill so hover transforms keep working once the animation ends. */
@keyframes jo-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.jo-home__wrap > div > *,
.jo-about > div:first-child > *,
.jo-contact__intro > *,
.jo-services__head,
.jo-work__head,
.jo-svc,
.jo-proj,
.jo-home > .jo-card,
.jo-about > .jo-card,
.jo-services > .jo-how,
.jo-contact > .jo-form,
.jo-home .jo-marquee,
.jo-about .jo-marquee {
  animation: jo-rise .55s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
}

.jo-home__wrap > div > :nth-child(2), .jo-about > div:first-child > :nth-child(2), .jo-contact__intro > :nth-child(2), .jo-svc:nth-of-type(2), .jo-proj:nth-child(2) { --i: 1; }
.jo-home__wrap > div > :nth-child(3), .jo-about > div:first-child > :nth-child(3), .jo-contact__intro > :nth-child(3), .jo-svc:nth-of-type(3), .jo-proj:nth-child(3) { --i: 2; }
.jo-home__wrap > div > :nth-child(4), .jo-about > div:first-child > :nth-child(4), .jo-contact__intro > :nth-child(4), .jo-svc:nth-of-type(4), .jo-proj:nth-child(4) { --i: 3; }
.jo-home__wrap > div > :nth-child(5), .jo-about > div:first-child > :nth-child(5), .jo-contact__intro > :nth-child(5), .jo-svc:nth-of-type(5), .jo-proj:nth-child(5) { --i: 4; }
.jo-home__wrap > div > :nth-child(6), .jo-svc:nth-of-type(6), .jo-proj:nth-child(6) { --i: 5; }
.jo-services__head, .jo-work__head { --i: 0; }
.jo-home > .jo-card, .jo-about > .jo-card, .jo-contact > .jo-form { --i: 2; }
.jo-services > .jo-how { --i: 3; }
.jo-home .jo-marquee, .jo-about .jo-marquee { --i: 6; }

@media (prefers-reduced-motion: reduce) {
  .jo-home__wrap > div > *, .jo-about > div:first-child > *, .jo-contact__intro > *,
  .jo-services__head, .jo-work__head, .jo-svc, .jo-proj,   .jo-home > .jo-card, .jo-about > .jo-card, .jo-services > .jo-how, .jo-contact > .jo-form,
  .jo-home .jo-marquee, .jo-about .jo-marquee { animation: none; }
}

/* reCAPTCHA widget */
.jo-recaptcha { min-height: 78px; }
.grecaptcha-badge { visibility: visible; }

/* ---------- Search form ---------- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.jo-search { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 420px; padding: 5px 5px 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(9, 17, 38, .7); transition: border-color .2s, box-shadow .2s; }
.jo-search:focus-within { border-color: color-mix(in srgb, var(--blue-2) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.jo-search svg { width: 15px; height: 15px; flex: none; color: var(--dim); }
.jo-search input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 8px 0; -webkit-appearance: none; appearance: none; }
.jo-search input::placeholder { color: var(--dim); }
.jo-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.jo-search .jo-btn { padding: 9px 16px; }

/* ---------- Error (404) ---------- */
.jo-error { display: grid; grid-template-columns: minmax(0, 1fr) 452px; gap: 40px 90px; align-items: center; }
.jo-error h1 { font-size: clamp(34px, 6.4vh, 46px); line-height: 1.1; margin-top: 14px; }
.jo-error h1 .dot { color: var(--red); }
.jo-error__text { max-width: 440px; margin: 16px 0 22px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.jo-error__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.jo-error__card { padding: 28px 24px 0; overflow: hidden; }
.jo-error__code { font-family: var(--head); font-weight: 700; font-size: clamp(96px, 20vh, 168px); line-height: 1; letter-spacing: -.05em; text-align: center; background: linear-gradient(90deg, #6f7dff, #c9506a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jo-error__log { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px -24px 0; padding: 13px 24px; border-top: 1px solid var(--line-2); }
.jo-error__log span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jo-error__status { display: flex; align-items: center; gap: 7px; color: var(--red-2); flex: none; }
.jo-error__status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* ---------- Listings: search, archive, blog index ---------- */
.jo-listing { max-width: 820px; margin-inline: auto; }
.jo-listing__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.jo-listing__head h1 { font-size: clamp(30px, 5.2vh, 40px); line-height: 1.12; margin-top: 12px; overflow-wrap: anywhere; }
.jo-listing__head h1 .dot { color: var(--red); }
.jo-listing__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; width: 340px; max-width: 100%; }
.jo-results { list-style: none; margin: 0; padding: 0; }
.jo-result { display: grid; grid-template-columns: 30px minmax(0, 1fr) 34px; gap: 4px 10px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line-2); animation: jo-rise .55s cubic-bezier(.2, .7, .2, 1) backwards; }
.jo-result:nth-child(2) { animation-delay: 70ms; } .jo-result:nth-child(3) { animation-delay: 140ms; } .jo-result:nth-child(4) { animation-delay: 210ms; } .jo-result:nth-child(n+5) { animation-delay: 280ms; }
.jo-result__n { font-family: var(--mono); font-size: 9.5px; color: var(--red-2); padding-top: 4px; }
.jo-result h3 { margin-top: 3px; font-size: 16px; letter-spacing: -.01em; }
.jo-result h3 a:hover { color: var(--blue-2); }
.jo-result p { margin-top: 5px; color: var(--muted); font-size: 12.5px; }
.jo-result__go { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.jo-result__go svg { width: 11px; height: 11px; }
.jo-result__go:hover, .jo-result__go:focus-visible { color: #fff; border-color: var(--blue-2); background: color-mix(in srgb, var(--blue) 25%, transparent); }
.jo-empty { margin-top: 24px; padding: 28px 26px; }
.jo-empty h2 { font-size: 20px; }
.jo-empty p { margin-top: 8px; max-width: 460px; color: var(--muted); font-size: 13px; }
.jo-empty .jo-search { margin-top: 16px; }
.jo-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 18px; font-family: var(--mono); font-size: 11px; }
.jo-pager a, .jo-pager span { min-width: 32px; padding: 6px 10px; text-align: center; border: 1px solid var(--line-2); border-radius: 8px; color: var(--muted); }
.jo-pager a:hover { color: var(--text); border-color: var(--line); }
.jo-pager .current { color: #fff; background: var(--navy); border-color: var(--line); }
.jo-pager--post { justify-content: space-between; margin-top: 28px; }
.jo-pager--post a { border: 0; padding: 0; color: var(--muted); font-family: var(--body); font-size: 13px; }

/* ---------- Documents: pages, posts, privacy policy ---------- */
.jo-doc { max-width: 720px; margin-inline: auto; }
.jo-doc__head { padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.jo-doc__head h1 { font-size: clamp(30px, 5.2vh, 40px); line-height: 1.12; margin: 12px 0 8px; }
.jo-doc__head h1 .dot { color: var(--red); }
.jo-prose { padding-top: 18px; color: var(--muted); font-size: 13.5px; line-height: 1.7; overflow-wrap: break-word; }
.jo-prose > * + * { margin-top: 12px; }
.jo-prose h2 { margin-top: 26px; font-size: 17px; color: var(--text); }
.jo-prose h3 { margin-top: 20px; font-size: 15px; color: var(--text); }
.jo-prose strong { color: var(--text); font-weight: 500; }
.jo-prose a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--blue-2) 40%, transparent); }
.jo-prose a:hover { color: #fff; }
.jo-prose ul, .jo-prose ol { padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.jo-prose ul { list-style: none; }
.jo-prose ul li { position: relative; padding-left: 22px; }
.jo-prose ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 10px; height: 1px; background: var(--red); }
.jo-prose ol { list-style: decimal; padding-left: 20px; }
.jo-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.jo-prose blockquote { margin-inline: 0; padding-left: 16px; border-left: 2px solid var(--red); color: #c5cde4; }
.jo-prose code { font-family: var(--mono); font-size: 12px; padding: 1px 5px; border-radius: 4px; background: rgba(88, 118, 200, .14); }
.jo-prose pre { overflow-x: auto; padding: 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(9, 17, 38, .7); }
.jo-prose pre code { padding: 0; background: none; }
.jo-main > .wrap:has(.jo-doc) { margin-block: 0; padding-block: 28px; }

/* Footer privacy link */
.jo-footer__links .jo-footer__privacy { color: var(--text); }

/* Long pages scroll inside the main area, so keep content reachable on short screens */
.jo-main > .wrap:has(.jo-listing) { margin-block: 0; padding-block: 28px; }

@media (max-width: 1000px) {
  .jo-error { grid-template-columns: 1fr; gap: 28px; }
  .jo-listing__head { flex-direction: column; align-items: stretch; }
  .jo-listing__side { align-items: flex-start; width: 100%; }
}
@media (max-width: 640px) {
  .jo-search { max-width: none; }
  .jo-result { grid-template-columns: 24px minmax(0, 1fr); }
  .jo-result__go { display: none; }
  .jo-footer__links { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .jo-result { animation: none; } }

/* ---------- Single blog post ---------- */
.jo-post { max-width: 760px; }
.jo-post__back { display: inline-block; margin-bottom: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.jo-post__back:hover { color: var(--text); }
.jo-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.jo-post__cat { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(9, 17, 38, .6); font-family: var(--mono); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-2); }
.jo-post__lead { margin: 4px 0 0; color: #aab4d0; font-size: 15px; line-height: 1.6; }
.jo-post__cover { margin: 22px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.jo-post__cover img { display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover; }
.jo-post .jo-prose { padding-top: 24px; font-size: 14.5px; line-height: 1.8; }
.jo-post .jo-prose h2 { margin-top: 32px; font-size: 20px; }
.jo-post .jo-prose h3 { margin-top: 24px; font-size: 16px; }
.jo-post__tags { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.jo-post__tags a { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; color: #98a4c4; background: rgba(9, 17, 38, .6); transition: color .2s, border-color .2s; }
.jo-post__tags a:hover { color: var(--text); border-color: var(--blue-2); }


/* =========================================================================
   Responsive layer (tablet and phone). Loaded last so it wins over the
   desktop rules above. The desktop layout (above 1000px) is unchanged.
   ========================================================================= */
.jo-burger, .jo-nav__cta { display: none; }

@media (max-width: 1000px) {
  /* Header: logo left, button + hamburger right, menu opens as a panel */
  .jo-header { position: sticky; top: 0; z-index: 60; height: 60px; padding: 0; background: rgba(5, 9, 18, .94); }
  body.admin-bar .jo-header { top: 32px; }
  .jo-header__in { position: static; flex-wrap: nowrap; gap: 10px; }
  .jo-brand { min-width: 0; margin-right: auto; }
  .jo-brand__txt { min-width: 0; }
  .jo-brand__txt strong, .jo-brand__txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .jo-header .jo-header__cta { padding: 9px 15px; font-size: 12.5px; white-space: nowrap; }

  .jo-burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 17, 38, .7); cursor: pointer; }
  .jo-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
  .jo-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .jo-burger.is-open span:nth-child(2) { opacity: 0; }
  .jo-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .jo-burger:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }

  .jo-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; transform: none; flex-direction: column; gap: 2px; padding: 10px 16px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(6, 11, 24, .98); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 24px 40px rgba(0, 0, 0, .45); max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; }
  .jo-nav.is-open { display: flex; }
  .jo-nav a:not(.jo-btn) { display: block; padding: 14px 14px; border-radius: 12px; font-size: 15px; }
  .jo-nav a.is-active { background: var(--navy); }

  /* Titles scale with the screen width instead of its height */
  .jo-title { font-size: clamp(28px, 7vw, 40px); }
  .jo-hero-title { font-size: clamp(34px, 9.5vw, 54px); margin-top: 14px; }
  .jo-about h1, .jo-contact__intro h1, .jo-error h1 { font-size: clamp(26px, 7vw, 40px); }
  .jo-services__head h2, .jo-work__head h2 { font-size: clamp(26px, 6.6vw, 38px); }
  .jo-listing__head h1, .jo-doc__head h1 { font-size: clamp(24px, 6vw, 34px); }
  .jo-error__code { font-size: clamp(80px, 22vw, 140px); }
  .jo-term__view { height: clamp(190px, 44vw, 280px); }

  .jo-main > .wrap { padding-block: 24px 28px; }
  .jo-main > .wrap:has(.jo-doc), .jo-main > .wrap:has(.jo-listing) { padding-block: 24px 28px; }
  .jo-lead, .jo-about__copy, .jo-contact__intro > p { max-width: none; }
  .jo-contact__intro > p:not(.jo-eyebrow) { display: block; }
  .jo-mail, .jo-info, .jo-reach { max-width: none; }
  .jo-social { display: flex; }
  .jo-facts { max-width: none; }
  .jo-svc p { display: block; }
  .jo-work__head, .jo-services__head { gap: 14px; align-items: start; }
  .jo-footer__in { text-align: center; }
  .jo-footer__links { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
}

@media (max-width: 782px) {
  body.admin-bar .jo-header { top: 46px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .jo-brand__txt small { font-size: 7.5px; letter-spacing: .16em; }
  .jo-brand__txt strong { font-size: 13.5px; }
  .jo-header .jo-header__cta { display: none; }
  .jo-nav__cta { display: inline-flex; justify-content: center; margin-top: 10px; padding: 13px 18px; }

  .jo-hero-title { font-size: clamp(34px, 11vw, 46px); }
  .jo-roles { font-size: 9.5px; letter-spacing: .16em; }
  .jo-lead { font-size: 14px; }
  .jo-cta { flex-wrap: wrap; }
  .jo-cta .jo-btn { flex: 1 1 140px; justify-content: center; }
  .jo-stats { flex-wrap: wrap; gap: 14px 0; }
  .jo-stats > div { padding: 0 18px; }
  .jo-stats strong { font-size: 20px; }
  .jo-facts > div { padding: 10px 12px; }
  .jo-about__copy { font-size: 13.5px; }
  .jo-badge { font-size: 8.5px; letter-spacing: .12em; padding: 7px 12px; }

  .jo-how, .jo-form__body { padding-inline: 14px; }
  .jo-form__foot { flex-direction: column-reverse; align-items: stretch; gap: 12px; padding: 8px 14px 16px; }
  .jo-form__foot .jo-btn { justify-content: center; }
  .jo-reach__row strong { font-size: 14.5px; }
  .jo-proj__art { height: 150px; }
  .jo-pager a, .jo-pager span { padding: 6px 9px; }

  .jo-main { padding-bottom: 70px; }
  .jo-wa { right: 12px; bottom: 12px; height: 44px; padding: 0 14px; }
  .jo-wa span:not(.jo-wa__dot) { display: none; }
  .jo-wa__dot { display: none; }
  .jo-wa svg { width: 20px; height: 20px; }
}

@media (max-width: 380px) {
  .jo-hero-title { font-size: 32px; }
  .jo-about h1, .jo-contact__intro h1, .jo-error h1 { font-size: 25px; }
  .jo-stats > div { padding: 0 12px; }
  .jo-facts { grid-template-columns: 1fr 1fr; }
}
.jo-nav a.jo-btn { color: #fff; }

/* Custom logo (Customizer > Site Identity). Height is set under Brand and header. */
.jo-logo { display: inline-flex; align-items: center; flex: none; }
.jo-logo img { display: block; width: auto; height: var(--logo-h, 40px); max-height: 52px; max-width: 220px; object-fit: contain; }
@media (max-width: 1000px) { .jo-logo img { height: min(var(--logo-h, 40px), 40px); max-width: 170px; } }

/* Form notice (success and error) */
.jo-notice { display: flex; align-items: flex-start; gap: 12px; margin: 16px 20px 0; padding: 13px 14px; border: 1px solid; border-radius: 12px; animation: jo-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.jo-notice--ok { border-color: rgba(60, 200, 130, .4); background: rgba(40, 190, 120, .1); }
.jo-notice--err { border-color: color-mix(in srgb, var(--red-2) 50%, transparent); background: color-mix(in srgb, var(--red) 12%, transparent); }
.jo-notice__ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; }
.jo-notice--ok .jo-notice__ic { background: #2fbf7f; color: #04140c; }
.jo-notice--err .jo-notice__ic { background: var(--red-2); color: #fff; }
.jo-notice__ic svg { width: 15px; height: 15px; }
.jo-notice__txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; }
.jo-notice__txt strong { display: block; font-family: var(--head); font-size: 14.5px; font-weight: 600; color: var(--text); }
.jo-notice--ok .jo-notice__txt span { color: #b6e8cf; }
.jo-notice--err .jo-notice__txt span { color: #f0b9bf; }
.jo-notice__x { flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.jo-notice__x:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.jo-notice:focus { outline: none; }
@media (max-width: 640px) { .jo-notice { margin-inline: 14px; } }
@media (prefers-reduced-motion: reduce) { .jo-notice { animation: none; } }
