/*
Theme Name: Baqar Rizvi — Organic Minimal
Theme URI: https://baqarrizvi.net
Author: Baqar Rizvi
Description: A minimal, monochrome personal site theme for an SEO & GEO consultant. Includes a homepage with experience, education, certifications and a recommendations slider, plus About, Services, Tools, Contact (with a working form), a blog and a Case Studies post type.
Version: 1.0.2
Requires at least: 6.0
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: baqar-rizvi
*/

:root {
	--ink: #0a0a0a;
	--ink-hover: #2b2b2b;
	--text: #5c5c5c;
	--text-2: #3a3a3a;
	--text-3: #2e2e2e;
	--muted: #6b6b6b;
	--faint: #8a8a8a;
	--line: #ececec;
	--line-2: #e7e7e7;
	--line-3: #e2e2e2;
	--line-4: #efefef;
	--soft: #fafafa;
	--soft-2: #f5f5f5;
	--chip: #f2f2f2;
	--mono: 'Geist Mono', ui-monospace, monospace;
	--sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
	--gutter: clamp(20px, 5vw, 48px);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-wrap: pretty; overflow-x: clip; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: #e6e6e6; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: #9a9a9a; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 999px; border: 1px solid var(--line-3); }

.site { min-height: 100vh; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); }
.no-u:hover { text-decoration: none; }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.label { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.04; margin: 0; }
.h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.h2-sm { font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; margin: 0; color: var(--text); }
.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* ---------- Buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; padding: 11px 20px; border: 0; border-radius: 999px; background: var(--ink); color: #ffffff; font-family: inherit; font-size: 15px; font-weight: 500; line-height: normal; cursor: pointer; }
.btn:hover { background: var(--ink-hover); color: #ffffff; text-decoration: none; }
.btn--ghost { padding: 10px 20px; border: 1px solid var(--line-3); background: #ffffff; color: var(--ink); }
.btn--ghost:hover { background: var(--soft-2); color: var(--ink); }
.btn--sm { padding: 9px 18px; font-size: 14.5px; }
.btn--ghost.btn--sm { padding: 8px 17px; }
.btn--light { background: #ffffff; color: var(--ink); }
.btn--light:hover { background: #e8e8e8; color: var(--ink); }
.btn--mono { font-family: var(--mono); font-size: 14px; font-weight: 400; }

.tag { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--chip); color: var(--text-2); line-height: 1.5; }
.tag--outline { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.chip { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
.chip:hover { text-decoration: none; background: var(--soft-2); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Header / nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-4); }
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-nav { top: 0; } }
.site-nav__inner { max-width: 1080px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; }
.nav-link, .nav-dropdown > summary { font-size: 14.5px; color: var(--text); }
.nav-link:hover, .nav-dropdown > summary:hover { color: var(--ink); text-decoration: none; }
.nav-link.is-current, .nav-dropdown > summary.is-current { color: var(--ink); font-weight: 500; }
.nav-dropdown { position: relative; }
.nav-dropdown > summary { display: flex; align-items: center; gap: 5px; }
.nav-panel { position: absolute; top: calc(100% + 14px); left: -14px; z-index: 30; min-width: 230px; display: flex; flex-direction: column; padding: 6px; background: #ffffff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.08); box-sizing: border-box; }
.nav-panel a { padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink); }
.nav-panel a:hover { background: var(--soft-2); text-decoration: none; }
.nav-panel a.nav-panel__all { margin-top: 4px; padding: 10px 12px 8px; border-top: 1px solid #f0f0f0; border-radius: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.nav-panel a.nav-panel__all:hover { background: transparent; color: var(--ink); }
.nav-cta, .site-nav .menu > li.nav-cta > a { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: #ffffff; font-size: 14px; font-weight: 500; }
.nav-cta:hover, .site-nav .menu > li.nav-cta > a:hover { background: var(--ink-hover); color: #ffffff; text-decoration: none; }

/* Custom menu (Appearance → Menus) */
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.site-nav .menu li { position: relative; }
.site-nav .menu > li > a { font-size: 14.5px; color: var(--text); }
.site-nav .menu > li > a:hover { color: var(--ink); text-decoration: none; }
.site-nav .menu > li.current-menu-item > a, .site-nav .menu > li.current_page_item > a { color: var(--ink); font-weight: 500; }
.site-nav .menu .sub-menu { display: none; position: absolute; top: 100%; left: -14px; z-index: 30; min-width: 230px; list-style: none; margin: 14px 0 0; padding: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.site-nav .menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.site-nav .menu li:hover > .sub-menu, .site-nav .menu li:focus-within > .sub-menu { display: flex; flex-direction: column; }
.site-nav .menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink); }
.site-nav .menu .sub-menu a:hover { background: var(--soft-2); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-4); margin-top: clamp(80px, 11vw, 140px); }
.site-footer__grid { max-width: 1080px; margin: 0 auto; padding: clamp(48px, 7vw, 72px) var(--gutter) 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 40px; }
.site-footer__about { grid-column: span 2; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 34ch; }
@media (max-width: 380px) { .site-footer__about { grid-column: auto; } }
.site-footer__about .brand { margin-right: 0; }
.site-footer__about p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.footer-email { font-family: var(--mono); font-size: 13.5px; padding: 8px 14px; border: 1px solid var(--line-3); border-radius: 999px; }
.footer-email:hover { background: var(--soft-2); text-decoration: none; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; color: var(--text-2); }
.footer-col a:hover { color: var(--ink); }
.site-footer__bottom { max-width: 1080px; margin: 0 auto; padding: 20px var(--gutter) 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--chip); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.site-footer__bottom a { color: var(--text-2); }

/* ---------- Shared blocks ---------- */
.page-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 64px); }
.page-hero .h1 { max-width: 16ch; }
.page-hero .lead { max-width: 52ch; }
.section { padding-bottom: clamp(72px, 10vw, 120px); }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }

.steps { border-top: 1px solid var(--line); }
.step { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step__n { flex: 0 0 48px; font-family: var(--mono); font-size: 13px; color: var(--faint); padding-top: 4px; }
.step__title { flex: 0 1 260px; font-size: 19px; font-weight: 500; margin: 0; }
.step__body { flex: 1 1 320px; font-size: 15.5px; line-height: 1.6; margin: 0; color: var(--text); }

.grid-lines { display: grid; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.grid-lines--220 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.cell { background: #ffffff; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.cell h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.cell p { font-size: 14.5px; line-height: 1.6; margin: 0; color: var(--text); }

.cta-box { border: 1px solid var(--line-2); border-radius: 24px; padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; background: var(--soft); }
.cta-box h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; margin: 0; max-width: 18ch; }
.cta-box--sm { padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 64px); }
.cta-box--sm h2 { font-size: clamp(28px, 3.6vw, 42px); }
.cta-box p { font-size: 16.5px; line-height: 1.6; margin: 0; max-width: 46ch; color: var(--text); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.list { border-top: 1px solid var(--line); }
.list-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding: 28px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.list-row:hover { background: var(--soft); text-decoration: none; color: var(--ink); }
.list-row__main { flex: 1 1 460px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.list-row__main h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.list-row__main p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--text); max-width: 64ch; }
.list-row__meta { flex: 0 1 220px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.list-row__date { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.list-empty { margin: 0; padding: 32px 16px; color: var(--muted); text-align: center; }

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-bottom: 32px; }
.tab { cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-3); background: #ffffff; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; line-height: normal; }
.tab:hover { text-decoration: none; background: var(--soft-2); color: var(--ink); }
.tab[aria-selected="true"], .tab.is-active, .tab[aria-pressed="true"], input:checked + .tab { background: var(--ink); color: #ffffff; border-color: var(--ink); }

.search-pill { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border: 1px solid var(--line-3); border-radius: 999px; width: min(460px, 100%); box-sizing: border-box; margin: 8px 0 0; }
.search-pill input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 15px; color: var(--ink); }

.cover { aspect-ratio: 16 / 8; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--soft-2); filter: grayscale(1); margin-bottom: clamp(40px, 6vw, 72px); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Home ---------- */
.hero { padding-top: clamp(64px, 11vw, 136px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero .h1 { font-size: clamp(38px, 6vw, 68px); max-width: 15ch; }
.hero .lead { max-width: 54ch; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 12.5px; color: #555555; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #22a35a; }
.clients { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; padding: 4px 0 8px; }
.clients__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 920px; }
.client { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: #ffffff; filter: grayscale(1); opacity: 0.72; transition: filter 0.25s, opacity 0.25s, border-color 0.25s; }
.client:hover { filter: grayscale(0); opacity: 1; border-color: #d6d6d6; }
.client__logo { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; background: #ffffff; }
.client__wide { display: grid; place-items: center; height: 28px; padding: 0 8px; border-radius: 999px; background: #1a1a1a; }
.client__wide img { height: 16px; width: auto; display: block; }
.client__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.client__name { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.client__award { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10.5px; color: #a8710a; }
.audit-form { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 20px; border: 1px solid var(--line-3); border-radius: 999px; width: min(520px, 100%); box-sizing: border-box; background: #ffffff; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04); margin: 0; }
.audit-form span { font-family: var(--mono); font-size: 14.5px; color: #9a9a9a; }
.audit-form input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-family: var(--mono); font-size: 14.5px; color: var(--ink); padding: 8px 0; }
.audit-form .btn { flex: 0 0 auto; padding: 10px 18px; font-size: 14.5px; }
.engines { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 32px; }
.engines__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; font-size: 16px; font-weight: 500; color: var(--text-2); letter-spacing: -0.01em; }

.home-section { padding-bottom: clamp(72px, 10vw, 128px); }
.service-tiles { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
.service-tile { flex: 1 1 190px; background: #ffffff; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.service-tile:hover { background: #fcfcfc; text-decoration: none; color: var(--ink); }
.service-tile__top { display: flex; justify-content: space-between; align-items: flex-start; }
.icon-box { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--soft); display: grid; place-items: center; margin-bottom: 10px; }
.service-tile h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.service-tile p { font-size: 14.5px; line-height: 1.6; margin: 0; color: var(--text); }

.experience { display: flex; flex-direction: column; gap: 28px; }
.experience .section-head-row > a { font-size: 14.5px; font-weight: 500; }
.job { display: flex; flex-wrap: wrap; gap: 12px 48px; padding: 28px 16px; border-bottom: 1px solid var(--line); }
.job__when { flex: 0 1 220px; display: flex; flex-direction: column; gap: 6px; }
.job__dates { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.job__len { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.job__main { flex: 1 1 440px; display: flex; gap: 16px; min-width: 0; }
.job__logo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.job__body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.job__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.job__title h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.job__title span { font-size: 15px; color: var(--text); }
.job__body p { font-size: 15px; line-height: 1.6; margin: 0; color: var(--text); max-width: 62ch; }
.job__skills { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.job__skills .tag { background: var(--chip); }

.edu-certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px clamp(32px, 6vw, 72px); align-items: start; }
.edu-certs > div { display: flex; flex-direction: column; gap: 20px; }
.edu { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.edu img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.edu > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.edu h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.edu .muted { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.edu .school { font-size: 15px; color: var(--text); }
.cert { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cert img { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #ffffff; border: 1px solid var(--line); }
.cert__text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cert__name { font-size: 15.5px; font-weight: 500; }
.cert__issuer { font-size: 14px; color: var(--text); }
.cert__date { font-family: var(--mono); font-size: 12.5px; color: var(--muted); flex: 0 0 auto; }

.recs { display: flex; flex-direction: column; gap: 28px; }
.recs__controls { display: flex; align-items: center; gap: 12px; }
.recs__counter { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-3); background: #ffffff; cursor: pointer; display: grid; place-items: center; color: var(--ink); padding: 0; }
.round-btn:hover { background: var(--soft-2); }
.round-btn--dark { border: 0; background: var(--ink); color: #ffffff; }
.round-btn--dark:hover { background: var(--ink-hover); }
.recs__viewport { overflow: hidden; border: 1px solid var(--line-2); border-radius: 20px; background: var(--soft); }
.recs__track { display: flex; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.rec { flex: 0 0 100%; box-sizing: border-box; margin: 0; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 28px; }
.rec blockquote { margin: 0; font-size: clamp(18px, 2vw, 23px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.55; color: #1a1a1a; max-width: 64ch; }
.rec figcaption { display: flex; align-items: center; gap: 14px; }
.rec img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.rec figcaption > span { display: flex; flex-direction: column; gap: 2px; }
.rec__name { font-size: 16px; font-weight: 500; }
.rec__title { font-size: 14px; color: var(--text); }
.rec__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.recs__dots { display: flex; justify-content: center; gap: 8px; }
.recs__dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: #d6d6d6; transition: width 0.3s, background 0.3s; }
.recs__dots button[aria-current="true"] { width: 24px; background: var(--ink); }

/* ---------- About ---------- */
.about-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.about-hero .lead { max-width: 54ch; }
.portrait { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; filter: grayscale(1); border: 1px solid var(--line-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px clamp(32px, 6vw, 80px); }
.prose-col { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; font-size: 16.5px; line-height: 1.75; color: var(--text-3); max-width: 64ch; }
@media (max-width: 620px) { .prose-col { grid-column: auto; } }
.prose-col > * { margin: 0; }
.stack-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-pills span { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }

/* ---------- Services ---------- */
.service-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 8px; }
.service-nav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-3); font-size: 14px; font-weight: 500; }
.service-nav a:hover { background: var(--soft-2); text-decoration: none; }
.service-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px clamp(32px, 6vw, 80px); padding: clamp(40px, 6vw, 64px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.service-block > div { display: flex; flex-direction: column; gap: 10px; }
.service-block > div + div { gap: 16px; }
.service-block p { font-size: 16px; line-height: 1.65; margin: 0; color: var(--text); max-width: 42ch; }
.arrow-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.arrow-list li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.5; }
.arrow-list li::before { content: "→"; font-family: var(--mono); color: var(--faint); }
.text-link { align-self: flex-start; font-size: 14.5px; font-weight: 500; padding-top: 4px; }
.pt-section { padding-top: clamp(64px, 9vw, 112px); }

/* ---------- Tools ---------- */
.cmd-pill { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border: 1px solid var(--line-3); border-radius: 999px; background: var(--soft); max-width: 100%; box-sizing: border-box; margin-top: 8px; }
.cmd-pill code { font-family: var(--mono); font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-pill code b { color: #9a9a9a; font-weight: 400; }
.cmd-pill button { flex: 0 0 auto; cursor: pointer; border: 1px solid var(--line-3); background: #ffffff; border-radius: 999px; padding: 6px 12px; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.cmd-pill button:hover { background: var(--chip); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line-2); border-radius: 16px; }
.tool-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tool-card__cmd { font-family: var(--mono); font-size: 14.5px; font-weight: 500; }
.tool-card h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 4px 0 0; }
.tool-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.tool-card__for { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 8px; margin-top: auto; border-top: 1px solid #f0f0f0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-card { grid-column: span 2; border: 1px solid var(--line-2); border-radius: 20px; padding: clamp(24px, 4vw, 40px); min-width: 0; }
@media (max-width: 700px) { .form-card { grid-column: auto; } }
.contact-form { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.form-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field textarea { padding: 12px 16px; border: 1px solid var(--line-3); border-radius: 12px; font-family: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: #ffffff; }
.field input[type="url"] { font-family: var(--mono); font-size: 14px; }
.field textarea { resize: vertical; }
.pick-group { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; }
.pick-group legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 10px; }
.pick-group label { position: relative; }
.pick-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-group input:focus-visible + .tab { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-note { margin: 0; padding: 12px 16px; border-radius: 12px; background: #fdf1f0; color: #9b2c22; font-size: 14.5px; }
.sent-state { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 24px 0; }
.sent-state__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #ffffff; display: grid; place-items: center; }
.sent-state h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.025em; margin: 0; }
.sent-state p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text); max-width: 44ch; }
.contact-aside { display: flex; flex-direction: column; gap: 28px; }
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-item a, .info-item span + span { font-size: 16px; }
.call-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 24px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.call-card strong { font-size: 17px; font-weight: 500; }
.call-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.call-card .btn { margin-top: 4px; }
.faq { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-size: 16.5px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary span { font-family: var(--mono); color: var(--faint); font-size: 18px; transition: transform 0.2s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--text); max-width: 62ch; }

/* ---------- Single post & case study ---------- */
.post-hero { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 48px); }
.post-hero .h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.04em; line-height: 1.06; max-width: 22ch; }
.back-link { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.byline img { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; object-fit: cover; }

.entry { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding-bottom: clamp(56px, 8vw, 96px); }
.entry-content { display: flex; flex-direction: column; gap: 22px; font-size: 17.5px; line-height: 1.8; color: #2a2a2a; }
.entry-content > * { margin: 0; }
.entry-content > p:first-child { font-size: 19px; line-height: 1.65; color: var(--ink); }
.entry-content h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.25; margin: 20px 0 0; color: var(--ink); }
.entry-content h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin: 12px 0 0; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong { font-weight: 600; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content figure { margin: 8px 0; }
.entry-content figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.entry-content pre, .entry-content .wp-block-code { margin: 8px 0; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--soft); font-family: var(--mono); font-size: 13.5px; line-height: 1.8; color: var(--text-2); overflow-x: auto; white-space: pre; }
.entry-content code { font-family: var(--mono); font-size: 0.85em; }
.entry-content blockquote, .entry-content .wp-block-quote, .entry-content .wp-block-pullquote { margin: 12px 0; padding: 0; border: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.35; color: var(--ink); text-align: left; }
.entry-content blockquote p { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--mono); font-size: 13px; font-style: normal; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.entry-content .tip, .entry-content .is-style-tip { border-left: 2px solid var(--ink); padding: 4px 0 4px 20px; font-size: 16.5px; line-height: 1.7; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.alignwide, .alignfull { max-width: 100%; }

.author-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 24px; border: 1px solid var(--line-2); border-radius: 16px; margin-top: 12px; }
.author-box img { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; }
.author-box > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 200px; }
.author-box strong { font-size: 16px; font-weight: 500; }
.author-box span { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.related-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 22px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.related-row:hover { background: var(--soft); text-decoration: none; color: var(--ink); }
.related-row h3 { flex: 1 1 420px; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.related-row span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.pagination { padding-top: 32px; font-family: var(--mono); font-size: 13px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { padding: 7px 12px; border: 1px solid var(--line-3); border-radius: 999px; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { background: var(--soft-2); text-decoration: none; }

/* Case studies */
.case-row { gap: 16px 48px; padding: 32px 16px; }
.case-row .list-row__main { flex-basis: 440px; }
.case-row .list-row__main h2 { font-size: 22px; }
.case-row .list-row__main p { font-size: 15.5px; max-width: 58ch; }
.case-row .chips { padding-top: 6px; }
.case-stat { flex: 0 1 220px; display: flex; flex-direction: column; gap: 4px; }
.case-stat strong { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.case-stat span { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.case-row[hidden] { display: none; }

.case-hero { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 48px); max-width: 780px; }
.case-hero .h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.05; }
.case-hero .lead { max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 56px); }
.facts > div { display: flex; flex-direction: column; gap: 4px; }
.facts > div > span:last-child { font-size: 15.5px; }
.results { margin-bottom: clamp(64px, 9vw, 112px); }
.results .cell { padding: 32px 28px; gap: 8px; }
.results strong { font-size: clamp(40px, 5vw, 52px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.results span { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.chapters { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 72px); margin-bottom: clamp(64px, 9vw, 112px); }
.chapter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px clamp(32px, 6vw, 80px); align-items: start; }
.chapter__head { display: flex; flex-direction: column; gap: 8px; }
.chapter__head h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
.chapter .prose-col { gap: 14px; }
.chapter .prose-col ul, .chapter .prose-col ol { padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.chapter .prose-col h3 { font-size: 19px; font-weight: 500; color: var(--ink); }
.scripts-used { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(64px, 9vw, 112px); }
.script-row { display: flex; flex-wrap: wrap; gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.script-row__cmd { flex: 0 1 240px; font-family: var(--mono); font-size: 14.5px; }
.script-row__body { flex: 1 1 320px; font-size: 15px; line-height: 1.6; color: var(--text); }
.case-quote { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin-bottom: clamp(64px, 9vw, 112px); }
.case-quote blockquote { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.3; }
.case-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.next-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line-2); border-radius: 16px; color: var(--ink); }
.next-card:hover { background: var(--soft); text-decoration: none; color: var(--ink); }
.next-card h3, .dark-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 0; }
.next-card .tag { align-self: flex-start; }
.dark-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; padding: 28px; border-radius: 16px; background: var(--ink); color: #ffffff; }
.dark-card p { margin: 0; font-size: 15px; line-height: 1.6; color: #bdbdbd; }

/* Comments */
.comments-area { margin-top: 32px; font-size: 15.5px; line-height: 1.6; }
.comments-area ol { list-style: none; padding: 0; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; box-sizing: border-box; padding: 12px 16px; border: 1px solid var(--line-3); border-radius: 12px; font: inherit; }
.comment-form .submit { padding: 11px 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }

/* Generic page */
.page-content { max-width: 680px; margin: 0 auto; }
.not-found { text-align: center; }
