:root {
  --ink: #10221b;
  --muted: #5c6d65;
  --paper: #fbfdfb;
  --surface: #ffffff;
  --soft: #eef7f1;
  --line: #dbe8df;
  --brand: #137a4b;
  --brand-dark: #075d37;
  --accent: #f2b84b;
  --danger: #b42318;
  --radius: 20px;
  --shadow: 0 16px 42px rgba(16, 34, 27, 0.08);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Tahoma, Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--brand); }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0 0 .7em; line-height: 1.35; letter-spacing: -.025em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.35em; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section-space { padding-block: clamp(64px, 9vw, 112px); }
.skip-link { position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 9999; padding: 10px 18px; background: var(--ink); color: #fff; }
.skip-link:focus { inset-block-start: 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { margin-bottom: 12px; color: var(--brand); font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.site-header { position: sticky; inset-block-start: 0; z-index: 100; background: rgba(251, 253, 251, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.site-branding { margin-inline-end: auto; }
.brand-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark__icon { display: grid; place-items: center; width: 43px; height: 43px; color: white; background: var(--brand); border-radius: 14px 14px 5px 14px; font-size: 1.4rem; font-weight: 900; }
.brand-mark strong, .brand-mark small { display: block; }
.brand-mark strong { font-size: 1.05rem; }
.brand-mark small { color: var(--muted); font-size: .72rem; }
.primary-nav ul { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { color: var(--ink); font-size: .93rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--brand); }
.header-search { flex: 0 1 250px; min-width: 190px; }
.search-form { display: flex; align-items: stretch; gap: 8px; }
.search-form label { flex: 1; min-width: 0; }
.search-field { width: 100%; height: 42px; padding: 7px 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; outline: none; }
.search-field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19, 122, 75, .12); }
.search-submit { min-width: 58px; padding: 7px 12px; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 12px; cursor: pointer; font-weight: 800; }
.search-submit:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.menu-toggle { display: none; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; }

.hero { position: relative; overflow: hidden; padding-block: clamp(70px, 10vw, 130px); background: linear-gradient(135deg, #f8fcf9 0%, #e9f5ed 68%, #e3f1e8 100%); }
.hero::before { content: ''; position: absolute; width: 500px; height: 500px; inset-block-start: -280px; inset-inline-end: -140px; border: 90px solid rgba(19, 122, 75, .08); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); align-items: center; gap: clamp(40px, 8vw, 100px); }
.hero h1 { max-width: 900px; }
.hero__lead { max-width: 760px; color: var(--muted); font-size: 1.15rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: 12px 22px; color: white; background: var(--brand); border: 1px solid var(--brand); border-radius: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 22px rgba(19, 122, 75, .15); }
.button:hover { color: white; background: var(--brand-dark); }
.button--ghost { color: var(--ink); background: transparent; border-color: #b8cfc0; box-shadow: none; }
.button--ghost:hover { color: var(--brand-dark); background: #fff; }
.button--light { color: var(--ink); background: white; border-color: white; }
.button--light:hover { color: var(--brand-dark); background: #eef7f1; }
.hero-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px 28px 8px 28px; box-shadow: var(--shadow); }
.hero-card div { padding: 10px; text-align: center; }
.hero-card strong, .hero-card span { display: block; }
.hero-card strong { color: var(--brand); font-size: 2.2rem; line-height: 1; }
.hero-card span { margin-top: 9px; color: var(--muted); font-size: .72rem; }
.hero-card p { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: .86rem; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading > p { max-width: 510px; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.category-card { min-height: 260px; display: flex; flex-direction: column; padding: 22px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; color: white; background: var(--brand); border-radius: 16px; font-size: 1.25rem; font-weight: 900; }
.category-card strong { margin-bottom: 7px; font-size: 1.05rem; }
.category-card > span:not(.category-card__icon) { color: var(--muted); font-size: .84rem; line-height: 1.65; }
.category-card small { margin-top: auto; padding-top: 18px; color: var(--brand); font-weight: 800; }
.category-card--instagram .category-card__icon { background: #a53d94; }
.category-card--facebook-messenger .category-card__icon { background: #1769aa; }
.category-card--x-twitter .category-card__icon { background: #18211d; }
.category-card--android-diagnostics .category-card__icon { background: #637329; }

.safety-strip { color: white; background: var(--ink); }
.safety-strip__inner { min-height: 250px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.safety-strip h2 { margin-bottom: 10px; }
.safety-strip p { max-width: 760px; margin-bottom: 0; color: #c6d4cd; }

.experiment-showcase { position: relative; }
.experiment-showcase::before { content: ""; position: absolute; inset: 36px -24px auto; height: 210px; z-index: -1; background: linear-gradient(135deg, #edf8f1, #f8fbf9); border-radius: 34px; }
.section-intro { max-width: 820px; margin: -22px 0 34px; color: var(--muted); line-height: 1.9; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(16, 34, 27, .04); }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); text-decoration: none; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--brand), var(--ink)); font-size: 4rem; font-weight: 900; }
.post-card__body { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; }
.post-card__meta a { text-decoration: none; }
.evidence-badge { display: inline-flex; padding: 3px 9px; color: var(--brand-dark); background: var(--soft); border: 1px solid #cfe4d5; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.evidence-badge--large { margin-bottom: 18px; padding: 6px 12px; }
.evidence-badge--experiment { color: #124e2d; background: #e9f8ee; border-color: #9ed5af; }
.evidence-badge--research { color: #4d3a08; background: #fff8df; border-color: #e5ce79; }
.evidence-badge--test { color: #164b62; background: #eaf7fc; border-color: #a7d2e2; }
.experiment-role-label { margin: 0 0 20px; color: var(--muted); font-size: .88rem; }
.lab-report-figure { padding: 10px; background: #f4f8f6; border: 1px solid #cbdcd3; border-radius: 18px; }
.lab-report-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.experiment-transparency, .case-specific-note { margin: 32px 0; padding: 0; border: 0; background: transparent; }
.experiment-transparency h2, .case-specific-note h2 { margin-top: 0; }
.experiment-transparency dl { display: grid; gap: 9px; margin: 0 0 14px; }
.experiment-transparency dl div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; }
.experiment-transparency dt { color: var(--muted); }
.experiment-transparency dd { margin: 0; font-weight: 700; }
.incident-log li, .audit-list li { margin-bottom: 12px; }
.sobri-contact-form { max-width: 720px; margin-top: 24px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.sobri-contact-form p { margin: 0 0 18px; }
.sobri-contact-form label { display: block; margin-bottom: 7px; font-weight: 800; }
.sobri-contact-form input:not([type="hidden"]), .sobri-contact-form textarea { width: 100%; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #b9c5bf; border-radius: 10px; font: inherit; }
.sobri-contact-form input:focus, .sobri-contact-form textarea:focus { outline: 3px solid rgba(32, 129, 81, .18); border-color: var(--brand); }
.contact-trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { max-width: 720px; padding: 13px 16px; border-radius: 10px; font-weight: 800; }
.contact-status--success { color: #124e2d; background: #e9f8ee; border: 1px solid #9ed5af; }
.contact-status--error { color: #742320; background: #fff0ef; border: 1px solid #e7aaa6; }
.post-card__title { margin: 14px 0 10px; font-size: 1.3rem; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__body > p { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.post-card__footer { display: flex; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .78rem; font-weight: 700; }
.post-card__footer span { color: var(--muted); }
.post-card__footer a { text-decoration: none; }

.method-section { padding-block: clamp(70px, 10vw, 120px); background: #eff6f1; }
.method-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.method-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.method-list li { display: flex; gap: 18px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.method-list li > span { flex: 0 0 40px; height: 40px; display: grid; place-items: center; color: white; background: var(--brand); border-radius: 12px; font-weight: 900; }
.method-list strong { display: block; margin-bottom: 3px; }
.method-list p { margin: 0; color: var(--muted); font-size: .88rem; }

.archive-header { max-width: 800px; margin-bottom: 46px; }
.archive-header h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.archive-description { color: var(--muted); }
.empty-state { max-width: 720px; margin-inline: auto; padding: 60px 30px; text-align: center; background: var(--soft); border-radius: var(--radius); }
.empty-state form { max-width: 500px; margin: 24px auto; }
.empty-state input[type='search'] { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.empty-state input[type='submit'] { padding: 10px 16px; color: white; background: var(--brand); border: 0; border-radius: 10px; }

.article-header { padding-block: 75px 60px; background: linear-gradient(180deg, #edf7f0, var(--paper)); }
.article-header__inner { max-width: 930px; }
.article-header h1 { font-size: clamp(2.25rem, 5vw, 4.4rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .82rem; }
.article-featured { margin-top: -20px; }
.article-featured img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 1fr); gap: 70px; padding-block: 70px; }
.article-content { font-size: 1.05rem; }
.article-content h2 { margin-top: 2.1em; font-size: 1.9rem; }
.article-content h3 { margin-top: 1.8em; }
.article-content ul, .article-content ol { padding-inline-start: 24px; }
.article-content li { margin-bottom: .55em; }
.article-content blockquote { margin: 30px 0; padding: 18px 24px; color: var(--ink); background: #fff9e9; border-inline-start: 5px solid var(--accent); border-radius: 12px; }
.article-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 28px 0; font-size: .9rem; -webkit-overflow-scrolling: touch; }
.article-content th, .article-content td { padding: 12px; border: 1px solid var(--line); text-align: start; }
.article-content th { background: var(--soft); }
.article-content a { overflow-wrap: anywhere; }
.article-prose-section { margin: 36px 0; }
.article-prose-section h2 { margin: 0 0 12px; }
.article-prose-section p { margin: 0 0 12px; }
.article-tags { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-tags > strong { display: block; margin-bottom: 12px; }
.article-tags__links { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags__links a { display: inline-block; padding: 7px 12px; color: var(--brand); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; text-decoration: none; }
.article-tags__links a:hover, .article-tags__links a:focus-visible { background: #e5f1e8; }
.pending-reference { color: var(--muted); }
.sources-box { margin-top: 50px; padding: 24px; background: #f5f6f5; border-radius: 18px; }
.sources-box h2 { margin-top: 0; font-size: 1.3rem; }
.sources-box li { overflow-wrap: anywhere; }
.article-author { display: flex; gap: 18px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }
.author-avatar { flex: 0 0 54px; height: 54px; display: grid; place-items: center; color: white; background: var(--brand); border-radius: 18px; font-size: 1.4rem; font-weight: 900; }
.article-author p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.article-aside { align-self: start; position: sticky; inset-block-start: 110px; display: grid; gap: 18px; }
.aside-box { padding: 22px; background: #fff8e5; border: 1px solid #ecd9a1; border-radius: 16px; }
.aside-box p { margin: 8px 0 0; color: #6a5b35; font-size: .82rem; }
.post-navigation .nav-links { display: grid; gap: 10px; }
.post-navigation a { display: block; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.post-navigation small, .post-navigation span { display: block; }
.post-navigation small { color: var(--muted); }
.post-navigation span { margin-top: 4px; color: var(--ink); font-weight: 700; }
.related-section { border-top: 1px solid var(--line); }

.page-shell { max-width: 930px; }
.page-content { padding: clamp(30px, 6vw, 70px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 40px rgba(16, 34, 27, .04); }
.page-content h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.page-content h2 { margin-top: 1.9em; font-size: 1.7rem; }

.site-footer { padding-top: 70px; color: #d4dfd9; background: #0d1d16; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 60px; padding-bottom: 55px; }
.footer-grid h2, .footer-title { color: white; font-size: 1.05rem; }
.footer-grid p { color: #aebfb6; font-size: .86rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: #d4dfd9; text-decoration: none; font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .75rem; }

@media (max-width: 1040px) {
	.header-inner { gap: 14px; }
	.header-search { flex-basis: 200px; }
	.brand-mark small { display: none; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
	.header-inner { flex-wrap: wrap; gap: 10px 14px; padding-block: 10px; }
	.menu-toggle { display: inline-block; }
	.primary-nav { display: none; position: absolute; inset: 132px 16px auto; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { align-items: stretch; flex-direction: column; gap: 10px; }
	.header-search { order: 3; flex: 1 0 100%; min-width: 0; }
  .hero-grid, .method-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-heading, .safety-strip__inner { align-items: flex-start; flex-direction: column; }
  .safety-strip__inner { justify-content: center; padding-block: 50px; }
  .method-grid { gap: 30px; }
}

@media (max-width: 620px) {
	.experiment-showcase::before { inset-inline: -8px; }
	.section-intro { margin-top: -10px; }
  body { font-size: 16px; }
  .brand-mark small { display: none; }
  .hero-card { grid-template-columns: repeat(3, 1fr); padding: 14px; }
  .hero-card strong { font-size: 1.7rem; }
  .category-grid, .posts-grid, .article-aside { grid-template-columns: 1fr; }
  .category-card { min-height: 220px; }
  .article-layout { padding-block: 40px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.article-content figure { margin: 32px 0; }
.article-content figure img,
.sobri-video-evidence video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: #101814; }
.article-content figcaption { margin-top: 10px; color: var(--muted); font-size: .83rem; line-height: 1.8; }
.sobri-video-evidence video { max-height: 760px; object-fit: contain; }
