/* jonk.co.uk - Jonk Applications (21 Nov 2026). Built by ~/jonk_src/build_apps.py.
   Dark "ink" hero with a fine grid, indigo-to-cyan accent, Instrument Sans with DM Mono labels; light content sections. */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --ink: #0b1020; --ink-2: #121a33; --ink-line: rgba(148, 163, 255, .14); --on-ink: #c7cdea; --on-ink-strong: #fff;
  --indigo: #6366f1; --violet: #8b5cf6; --cyan: #22d3ee; --grad: linear-gradient(100deg, #818cf8 0%, #a78bfa 40%, #22d3ee 100%);
  --text: #111827; --body: #3f4655; --soft: #6b7280; --line: #e5e7ef; --tint: #f6f7fb; --paper: #fff; --link: #4f46e5;
  --radius: 14px; --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 12px 32px -16px rgba(17, 24, 39, .22);
  --sans: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #3730a3; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: #fff; padding: 8px 12px; }
.skip:focus { left: 16px; }
h1, h2, h3 { color: var(--text); line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.label { font: 500 12.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--indigo); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header (sits on the dark hero) */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: var(--ink); font: 700 19px/1 var(--sans); }
.brand .words { font: 700 20px/1 var(--sans); letter-spacing: -.02em; color: #fff; }
.brand .words span { font: 400 15px/1 var(--mono); letter-spacing: 0; color: var(--on-ink); margin-left: 4px; }
.brand:hover { color: #fff; }
.menu { display: flex; gap: 2px; }
.menu a { padding: 8px 12px; border-radius: 8px; color: var(--on-ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.menu a[aria-current="page"] { color: #fff; background: rgba(129, 140, 248, .16); }
.menu a.cta-link { margin-left: 8px; color: var(--ink); background: #fff; }
.menu a.cta-link:hover { background: #e0e7ff; color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -320px; pointer-events: none;
  background: radial-gradient(circle, rgba(99, 102, 241, .35) 0%, rgba(34, 211, 238, .12) 40%, transparent 70%); }
.hero .wrap { position: relative; z-index: 1; padding: clamp(130px, 16vw, 190px) 0 clamp(64px, 9vw, 110px); }
.hero h1 { color: #fff; max-width: 14.5em; }
.hero .lede { max-width: 38em; font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--on-ink); }
.hero .label { color: var(--cyan); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.hero .label::before { content: ""; width: 26px; height: 1px; background: var(--cyan); }
.page-hero .wrap { padding: clamp(124px, 14vw, 160px) 0 clamp(44px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e0e7ff; color: var(--ink); }
.btn-outline { border-color: rgba(199, 205, 234, .35); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.creds { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--ink-line); font: 400 13px/1.4 var(--mono); color: #9aa3c7; }
.creds b { color: #fff; font-weight: 500; }

/* sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tint { background: var(--tint); }
.section.dark { background: var(--ink); color: var(--on-ink); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head .label { display: block; margin-bottom: 12px; }
.section-head p { color: var(--soft); font-size: 1.05rem; }
.section.dark .section-head p { color: var(--on-ink); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--body); text-decoration: none; }
a.card { transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); color: var(--body); box-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 22px 40px -18px rgba(79, 70, 229, .35); }
.card .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; background: #eef0ff; color: var(--indigo); }
.card .ico svg { width: 23px; height: 23px; }
.card p { font-size: 16px; }
.card .tech { margin-top: auto; padding-top: 12px; font: 400 12.5px/1.5 var(--mono); color: var(--soft); }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--link); font-size: 15px; }

/* service detail */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); padding: clamp(32px, 5vw, 52px) 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.service .num { font: 500 13px/1 var(--mono); color: var(--indigo); margin-bottom: 14px; display: block; }
.service .built { font: 400 13px/1.6 var(--mono); color: var(--soft); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.benefits li { position: relative; padding: 14px 16px 14px 46px; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; }
.benefits li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); }
.benefits li::after { content: ""; position: absolute; left: 21px; top: 23px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.benefits b { color: var(--text); }

/* proof / work */
.proof { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
.proof + .proof { margin-top: clamp(48px, 7vw, 88px); }
.proof.flip .shot { order: 2; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(17, 24, 39, .45); background: #fff; }
.shot .bar { display: flex; gap: 6px; padding: 10px 12px; background: #f1f2f6; border-bottom: 1px solid var(--line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d7e2; }
.shot-pair { display: grid; gap: 16px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 18px; padding: 0; }
.stack li { padding: 5px 11px; border-radius: 999px; background: #eef0ff; color: #3730a3; font: 400 12.5px/1.4 var(--mono); }
.points { margin: 0 0 18px; padding-left: 1.1em; }
.points li { margin: 6px 0; }
.points li::marker { color: var(--indigo); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(17, 24, 39, .45); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* stats and logos */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 26px 24px; background: var(--ink); }
.stat strong { display: block; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--on-ink); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.logos li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.logos img { width: 140px; max-height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .75; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 10px; padding: 0; }
.chips li { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--text); }
.big { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.big strong { font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; letter-spacing: -.04em; }
.big span { color: var(--soft); max-width: 22em; }
.panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel h3 { font: 500 12.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }

/* about / contact */
.person { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(22px, 4vw, 44px); align-items: center; }
.portrait { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; padding: 4px; background: var(--grad); }
.portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transform: scale(1.3) translateY(4%); }
.portrait span { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #fff; }
.person .role { font: 400 14px/1.5 var(--mono); color: var(--soft); margin-bottom: 14px; }
.contact-list { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: center; }
.contact-list svg { flex: none; width: 20px; height: 20px; color: var(--indigo); }
.contact-list a { font-weight: 500; font-size: 1.05rem; }

/* call to action and footer */
.cta { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; bottom: -380px; background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 65%); pointer-events: none; }
.cta .wrap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 56px 0; }
.cta h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta p { margin: 0; }
.site-foot { background: #070b17; color: #8b93b5; font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 44px 0 30px; }
.site-foot h2 { font: 500 12.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.site-foot a { color: #d6dbef; text-decoration: none; }
.site-foot a:hover { color: var(--cyan); text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; font-size: 13px; color: #6f7799; }

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .service, .proof, .split { grid-template-columns: 1fr; }
  .proof.flip .shot { order: 0; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 16px; }
  .menu { width: calc(100% + 32px); margin: 0 -16px; padding: 0 12px 4px; overflow-x: auto; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .hero .wrap, .page-hero .wrap { padding-top: 150px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .portrait { width: 150px; height: 150px; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* home page product cards: matching 16:10 previews (ARQUIVIS as a branded panel, LetsGoBetty as a screenshot) */
.thumb, .thumb-img { display: block; width: 100%; aspect-ratio: 16 / 10; margin-bottom: 18px; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; object-position: top; }
.thumb { position: relative; display: grid; place-content: center; text-align: center; overflow: hidden;
  background: radial-gradient(circle at 75% 20%, rgba(99, 102, 241, .45), transparent 55%), radial-gradient(circle at 15% 90%, rgba(34, 211, 238, .25), transparent 50%), var(--ink); }
.thumb-name { font: 700 clamp(28px, 4vw, 44px)/1 var(--sans); letter-spacing: .06em; color: #fff; }
.thumb-sub { margin-top: 8px; font: 400 13px/1.3 var(--mono); color: var(--on-ink); }
.thumb .play { position: absolute; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.thumb .play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
a.card:hover .thumb .play { background: var(--cyan); }
