/*
Theme Name: NanoSearch Partners
Theme URI: https://www.nanosearchpartners.com/
Author: NanoSearch Partners
Description: Specialist engineering and technical recruitment theme for NanoSearch Partners. Editable text and photos in the Customiser, employer enquiry and CV forms, and WP Job Manager integration.
Version: 3.6.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nanosearch-partners
*/


/* Inter, self-hosted (SIL Open Font License, see assets/fonts/LICENSE-Inter.txt) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-Regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-Italic.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-Medium.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-Bold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/inter-ExtraBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 900; font-display: swap; src: url('assets/fonts/inter-Black.woff') format('woff'); }

:root {
	--navy: #061021;
	--navy-2: #0B1A33;
	--navy-3: #10264A;
	--blue: #1A73D9;      /* buttons: passes contrast with white text */
	--blue-hover: #145EB5;
	--blue-bright: #3A97F2; /* accents on dark backgrounds */
	--paper: #F4F7FB;
	--white: #FFFFFF;
	--ink: #0A1830;
	--muted: #4C5B72;
	--muted-dark: #B9C6D8;
	--line: #DDE5EF;
	--line-dark: rgba(255,255,255,.1);
	--field: #8A99AE;
	--font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font); color: inherit; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--ink); padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }
.icon { flex: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line-dark); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.nav { min-height: 76px; display: flex; align-items: center; gap: 32px; position: relative; }
.brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.logo { display: block; width: 190px; height: auto; }
.nav-menu { flex: 1; display: flex; justify-content: center; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.menu a { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 14px; color: #D3DCE8; font-weight: 500; font-size: 15px; text-decoration: none; }
.menu a:hover { color: var(--white); }
.menu .current-menu-item > a, .menu a[aria-current="page"] { color: var(--white); }
.menu .current-menu-item > a::after, .menu a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--blue-bright); }
.header-cta { flex: none; }
.mobile-toggle { display: none; font: inherit; font-weight: 600; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.3); border-radius: 4px; min-height: 44px; padding: 0 16px; cursor: pointer; margin-left: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 4px; font-family: var(--font); font-size: 15.5px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn .icon { transition: transform .15s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-outline { color: var(--white); border-color: rgba(255,255,255,.7); background: transparent; }
.btn-outline:hover { color: var(--navy); background: var(--white); border-color: var(--white); }
.btn-ghost { color: var(--blue); border-color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }

/* ---------- Type helpers ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .duo-dark .eyebrow, .closing .eyebrow, .cta-band .eyebrow { color: var(--blue-bright); }
.lead { font-size: 21px; line-height: 1.5; color: #E2E9F3; max-width: 34rem; }
.intro { color: var(--muted); max-width: 40rem; font-size: 17px; }
.intro + .intro { margin-top: 1rem; }
.section h2, .duo h2, .closing h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); background-color: var(--navy); background-image: radial-gradient(circle at 78% 40%, rgba(58,151,242,.28), transparent 45%), linear-gradient(120deg, var(--navy) 35%, var(--navy-3)); background-size: cover; background-position: center right; padding: 92px 0 100px; min-height: 560px; display: flex; align-items: center; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,16,33,.96) 0%, rgba(6,16,33,.85) 38%, rgba(6,16,33,.25) 75%, rgba(6,16,33,.1) 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; font-weight: 900; letter-spacing: -0.015em; text-transform: uppercase; margin-bottom: 26px; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--blue-bright); }
.hero-art { position: absolute; inset: 0 0 0 48%; z-index: 1; display: grid; place-items: center; }
.hero-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(124,196,245,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(124,196,245,.1) 1px, transparent 1px); background-size: 38px 38px; transform: perspective(600px) rotateX(60deg) scale(1.7); transform-origin: center bottom; opacity: .7; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.hero-mark { position: relative; width: min(340px, 70%); height: auto; filter: drop-shadow(0 24px 50px rgba(0,0,0,.45)); }

/* ---------- Tech strip ---------- */
.tech-strip { background: var(--navy); color: var(--white); border-top: 1px solid rgba(58,151,242,.35); border-bottom: 1px solid var(--line-dark); }
.tech-list { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; padding: 28px 0; }
.tech-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--blue-bright); }
.tech-list span { display: flex; flex-direction: column; gap: 2px; }
.tech-list strong { color: var(--white); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.tech-list small { color: var(--muted-dark); font-size: 11.5px; line-height: 1.35; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--navy); color: var(--white); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 56px; margin-bottom: 44px; }
.section-head > div { flex: 1 1 480px; }
.section-head h2 { margin-bottom: 0; }
.section-head .intro { flex: 1 1 360px; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.why-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.why-card { display: flex; gap: 16px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; color: var(--blue); }
.why-card h3 { color: var(--ink); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.why-card p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Markets */
.markets-section { padding: 64px 0 72px; }
.markets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.market-card { display: flex; flex-direction: column; gap: 14px; color: var(--white); text-decoration: none; }
.market-card:hover { color: var(--white); }
.market-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background-color: var(--navy-3); background-image: radial-gradient(circle at 30% 20%, rgba(58,151,242,.35), transparent 60%), linear-gradient(145deg, var(--navy-3), var(--navy-2)); background-size: cover; background-position: center; color: rgba(255,255,255,.75); border: 1px solid var(--line-dark); transition: transform .2s, border-color .2s; }
.market-card:hover .market-img { transform: translateY(-3px); border-color: var(--blue-bright); }
.market-name { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.market-name .icon { color: var(--blue-bright); }

/* People */
.people-section { padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.people { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.people li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 12px; text-align: center; color: var(--blue); }
.people li + li { border-left: 1px solid var(--line); }
.people span { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; }

/* Engineering disciplines */
.disciplines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.discipline { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 4px; padding: 24px 26px; }
.discipline h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.discipline p { color: var(--muted); font-size: 15px; }

/* Employers / candidates */
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo-panel { position: relative; padding: 88px 0; background-size: cover; background-position: center; display: flex; }
.duo-dark { background-color: var(--navy-2); background-image: radial-gradient(circle at 90% 90%, rgba(58,151,242,.25), transparent 50%); color: var(--white); justify-content: flex-end; }
.duo-light { background-color: #EAF1F9; color: var(--ink); }
.duo-dark.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,16,33,.95), rgba(6,16,33,.75) 55%, rgba(6,16,33,.35)); }
.duo-light.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244,247,251,.97), rgba(244,247,251,.88) 55%, rgba(244,247,251,.3)); }
.duo-inner { position: relative; z-index: 1; width: min(600px, 100%); padding: 0 48px; max-width: 34rem; }
.duo-dark .duo-inner { width: 100%; max-width: none; padding-left: max(24px, calc((100vw - 1200px) / 2)); padding-right: 56px; }
.duo-dark .duo-inner > * { max-width: 30rem; }
.duo-panel p { margin-bottom: 28px; }
.duo-dark p { color: #D3DCE8; }
.duo-light p { color: var(--muted); }
.duo .small { font-size: 13.5px; margin: 16px 0 0; }

/* Founder */
.founder-section { padding: 88px 0; }
.founder { display: grid; grid-template-columns: 260px 1fr 300px; gap: 48px; align-items: center; }
.founder-photo { aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: linear-gradient(145deg, var(--navy-3), var(--navy)); display: grid; place-items: center; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-photo .placeholder-mark { width: 45%; height: auto; opacity: .9; }
.founder-copy h2 { font-size: clamp(26px, 2.8vw, 34px); }
.founder-copy .intro { margin-bottom: 26px; }
.founder-quote { margin: 0; padding-left: 28px; border-left: 2px solid var(--line); position: relative; }
.founder-quote::before { content: "\201C"; position: absolute; top: -34px; left: 22px; font-size: 72px; line-height: 1; color: #C9D6E6; font-family: Georgia, serif; }
.founder-quote blockquote { margin: 0 0 22px; }
.founder-quote p { font-size: 18px; line-height: 1.55; font-style: italic; color: var(--ink); }
.founder-quote figcaption { display: grid; gap: 2px; font-size: 15px; }
.founder-quote figcaption span { color: var(--muted); }

/* Closing band */
.closing { position: relative; color: var(--white); padding: 88px 0; background-color: var(--navy); background-image: radial-gradient(ellipse at 85% 120%, rgba(58,151,242,.45), transparent 55%), radial-gradient(ellipse at 70% 140%, rgba(120,190,255,.25), transparent 45%); background-size: cover; background-position: center; overflow: hidden; }
.closing.has-photo { background-position: center bottom; }
.closing.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,16,33,.95), rgba(6,16,33,.7) 60%, rgba(6,16,33,.3)); }
.closing .container { position: relative; z-index: 1; }
.closing h2 { max-width: 22ch; margin-bottom: 30px; }

/* ---------- Jobs ---------- */
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.job-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.section.alt .job-card { background: var(--white); }
.job-card:hover { color: var(--ink); border-color: var(--blue); }
.job-discipline { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.job-title { font-weight: 700; font-size: 19px; line-height: 1.3; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 15px; }
.job-meta .salary { color: var(--ink); font-weight: 600; }
.job-link { margin-top: 8px; font-weight: 600; color: var(--blue); }
.jobs-empty { grid-column: 1 / -1; display: grid; gap: 4px; padding: 26px; border: 1px dashed #B9C7D6; border-radius: 4px; background: var(--paper); }
.jobs-empty span { color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-hero { color: var(--white); background: radial-gradient(circle at 85% 0%, rgba(58,151,242,.25), transparent 45%), linear-gradient(120deg, var(--navy) 40%, var(--navy-3)); padding: 76px 0 80px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; max-width: 20ch; }
.page-hero .lead { margin-top: 18px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.form-split { grid-template-columns: .8fr 1.2fr; }
.split > div > .btn { margin-top: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 26px; }
.section.alt .card { background: var(--white); }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-cloud span { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 4px; background: var(--white); border: 1px solid var(--line); }
.approach { list-style: none; counter-reset: step; margin: 0; padding: 28px; background: var(--navy); color: var(--white); border-radius: 4px; }
.approach li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); }
.approach li:last-child { border-bottom: 0; }
.approach li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-weight: 700; color: var(--blue-bright); }
.approach strong { font-size: 17px; font-weight: 700; }
.approach span { color: var(--muted-dark); font-size: 15px; }
.promise { padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 4px; background: var(--white); display: grid; gap: 6px; }
.promise span { color: var(--muted); }
.cta-band { background: radial-gradient(ellipse at 90% 120%, rgba(58,151,242,.4), transparent 55%), var(--navy); color: var(--white); border-radius: 4px; padding: clamp(36px, 6vw, 64px); }
.cta-band h2 { max-width: 22ch; }
.cta-band p { color: var(--muted-dark); margin-bottom: 28px; }
.cta-band .actions { margin-top: 0; }
.prose { max-width: 760px; }
.prose-wide { max-width: none; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: 26px; margin-top: 2.2rem; }
.prose h3 { font-size: 20px; margin-top: 1.8rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; }
.about-founder { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin: 8px 0 32px; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 600; word-break: break-word; }

/* ---------- Forms ---------- */
.nsp-form { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: clamp(22px, 4vw, 36px); scroll-margin-top: 110px; }
.nsp-form .full, .form-notice { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--field); border-radius: 4px; padding: 11px 13px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input[type="file"] { padding: 10px; }
.field input::placeholder, .field textarea::placeholder { color: #7A889C; }
.field.check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--blue); }
.field.check label { font-weight: 400; color: var(--muted); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 16px; border-radius: 4px; font-weight: 500; }
.form-notice.is-ok { background: #E7F2FC; border: 1px solid #B6D6F2; }
.form-notice.is-error { background: #FDECEC; border: 1px solid #F2B8B8; }

/* ---------- WP Job Manager ---------- */
.prose ul.job_listings { border: 1px solid var(--line); border-radius: 4px; background: var(--white); overflow: hidden; padding: 0; }
.prose ul.job_listings li.job_listing a { padding: 18px 22px; }
.prose ul.job_listings li.job_listing a:hover { background: var(--paper); }
.prose ul.job_listings .position h3 { font-size: 18px; color: var(--ink); margin: 0; }
.prose .job_filters { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 18px; overflow: hidden; }
.prose .job_filters .search_jobs { background: transparent; }
.prose .job_filters input[type="text"], .prose .job_filters select { font: inherit; min-height: 44px; border: 1px solid var(--field); border-radius: 4px; padding: 8px 10px; }
.prose .load_more_jobs, .prose .application_button, .prose input[type="submit"] { font: inherit; font-weight: 600; background: var(--blue); color: var(--white); border: 0; border-radius: 4px; min-height: 48px; padding: 0 22px; cursor: pointer; }
.prose .single_job_listing .meta li { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #AAB8CC; padding: 64px 0 0; font-size: 15px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 240px; height: auto; display: block; margin-bottom: 18px; }
.footer-brand p { max-width: 34rem; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-col h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--white); margin-bottom: 8px; }
.footer-col a, .footer-base a { color: #AAB8CC; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.footer-col a:hover, .footer-base a:hover { color: var(--white); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding: 20px 0 28px; border-top: 1px solid var(--line-dark); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.tech-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 16px; }
	.markets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
	.people { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
	.people li:nth-child(4) { border-left: 0; }
	.founder { grid-template-columns: 220px 1fr; }
	.founder-quote { grid-column: 1 / -1; max-width: 46rem; margin-top: 16px; }
}
@media (max-width: 1040px) {
	.mobile-toggle { display: block; }
	.header-cta { display: none; }
	.nav-menu { flex: 0; }
	.menu { display: none; position: absolute; left: 0; right: 0; top: 100%; margin-top: 8px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--navy-2); border: 1px solid var(--line-dark); border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
	.menu.open { display: flex; }
	.menu .current-menu-item > a::after, .menu a[aria-current="page"]::after { display: none; }
}
@media (max-width: 960px) {
	.why, .split, .form-split, .about-founder { grid-template-columns: 1fr; gap: 40px; }
	.duo { grid-template-columns: 1fr; }
	.duo-dark { justify-content: flex-start; }
	.duo-dark .duo-inner, .duo-inner { padding: 0 24px; margin: 0 auto; width: min(1200px, calc(100% - 0px)); max-width: none; }
	.duo-panel { padding: 72px 0; }
	.disciplines, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero-art { inset: 0 -20% 0 40%; opacity: .45; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { width: calc(100% - 40px); }
	.section { padding: 64px 0; }
	.hero { padding: 64px 0 72px; min-height: 0; }
	.hero-art { display: none; }
	.lead { font-size: 18px; }
	.tech-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.people li:nth-child(odd) { border-left: 0; }
	.people li:nth-child(4) { border-left: 1px solid var(--line); }
	.why-cards, .disciplines, .grid-3, .jobs, .nsp-form, .footer-grid { grid-template-columns: 1fr; }
	.founder { grid-template-columns: 1fr; }
	.founder-photo { max-width: 260px; }
	.contact-list li { grid-template-columns: 1fr; gap: 2px; }
	.logo { width: 160px; }
}

/* Tables in pages (e.g. privacy policy) */
.prose .wp-block-table { margin: 1.5rem 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); color: var(--muted); }
.prose th { background: var(--paper); color: var(--ink); font-weight: 700; }
.prose td:last-child { min-width: 220px; }
.prose strong { color: var(--ink); }
/* Keep page text left-aligned with the page heading */
.container.prose { max-width: none; }
.container.prose > * { max-width: 780px; }
.container.prose-wide > * { max-width: none; }
.container.prose > .wp-block-table { max-width: 980px; }
@media (max-width: 640px) {
	.prose td:last-child { min-width: 0; }
	.prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; width: 100%; }
	.prose thead { display: none; }
	.prose tr { border: 1px solid var(--line); border-radius: 4px; margin-bottom: 12px; overflow: hidden; }
	.prose td { border: 0; padding: 10px 14px; }
	.prose td:first-child { background: var(--paper); color: var(--ink); font-weight: 600; }
}

.footer-legal { line-height: 1.6; }

/* Every level section */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.level { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 4px; padding: 26px; color: var(--blue); }
.level h3 { color: var(--ink); font-size: 18px; font-weight: 700; margin: 14px 0 12px; }
.level ul { list-style: none; display: grid; gap: 8px; }
.level li { color: var(--muted); font-size: 15px; padding-left: 16px; position: relative; line-height: 1.45; }
.level li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
@media (max-width: 960px) { .levels { grid-template-columns: 1fr; } }

/* Market cards: centred names, no arrows */
.market-name { justify-content: center; text-align: center; }
.market-card:hover .market-name { color: var(--blue-bright); }
