/* InternetSherlock · main stylesheet
   Tokens → base → layout → components → pages → motion */

:root {
	--navy: #062B49;
	--navy-2: #0B3A5F;
	--navy-deep: #041A2D;
	--gold: #B88624;
	--gold-light: #E2B85C;
	--gold-dark: #8A6418;
	--ivory: #FFF9ED;
	--ivory-line: #EAD9B2;
	--white: #FFFFFF;
	--ink: #121820;
	--slate: #52677A;
	--line: #DCE3EA;
	--mist: #F2F5F8;
	--paper: #FBFCFD;
	--green: #2F7A50;

	--font-display: "Roboto Condensed", "Arial Narrow", sans-serif;
	--font-body: "Inter", Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

	--max-w: 1320px;
	--gutter: clamp(20px, 4vw, 32px);
	--radius: 6px;
	--ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--section: clamp(72px, 9vw, 120px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { color: var(--navy); margin: 0; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 4px; }
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 7.4vw, 104px); line-height: .92; letter-spacing: -.01em; color: var(--navy); }
.display--page { font-size: clamp(44px, 6vw, 84px); max-width: 18ch; }
.display--post { font-size: clamp(38px, 5vw, 64px); line-height: 1; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.02; margin-bottom: 18px; }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 16px; }
.eyebrow--gold { color: var(--gold-light); }
.muted { color: var(--slate); }
.fine-print { font-family: var(--font-mono); font-size: 12px; color: var(--slate); margin-top: 22px; }
.tag { position: absolute; top: 12px; left: 12px; background: var(--navy); color: var(--gold-light); padding: 3px 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.arrow { flex: none; transition: transform .25s var(--ease); }
a:hover .arrow, .question:hover .arrow { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--radius); font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-2); color: var(--white); }
.btn--soft { background: var(--mist); color: var(--navy); }
.btn--soft:hover { background: #E3E9EF; color: var(--navy); }
.btn--gold { background: var(--gold-light); color: var(--navy); }
.btn--gold:hover { background: #EBC877; color: var(--navy); }
.btn--outline-light { border-color: rgba(255, 249, 237, .5); color: var(--ivory); }
.btn--outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow--gold { color: var(--gold-light); }
.link-arrow--gold:hover { color: var(--ivory); }

/* ---------- Header ---------- */
.case-strip { background: var(--navy); color: rgba(255, 249, 237, .8); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.case-strip__inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-logo { padding: 14px 0; }
.site-logo img { width: 336px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav-menu a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--navy); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current_page_item > a, .nav-menu .current-page-ancestor > a { border-bottom-color: var(--gold); color: var(--navy); }
.nav-cta { min-height: 44px; padding: 0 20px; font-size: 15px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
	.case-strip__coords { display: none; }
	.site-header__inner { min-height: 66px; }
	.site-logo { padding: 10px 0; }
	.site-logo img { width: min(285px, 60vw); }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 8px; background: var(--mist); cursor: pointer; position: relative; z-index: 201; }
	.nav-toggle__bars { display: grid; gap: 5px; }
	.nav-toggle__bars span { width: 24px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .2s; }
	.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
	.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.site-nav { position: fixed; inset: 0; z-index: 200; background: var(--white); flex-direction: column; align-items: flex-start; justify-content: center; gap: 32px; padding: 100px var(--gutter) 40px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-menu { flex-direction: column; gap: 8px; }
	.nav-menu a { font-family: var(--font-display); font-weight: 700; font-size: 40px; }
	.nav-open { overflow: hidden; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--ivory { background: var(--ivory); border-top: 1px solid var(--ivory-line); border-bottom: 1px solid var(--ivory-line); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy .h2, .section--navy h3 { color: var(--ivory); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; }
.section-head .h2 { margin-bottom: 0; max-width: 20ch; }
.section-head__note { max-width: 42ch; margin: 0; font-size: 16px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split--wide { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero + lens ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 56px; align-items: center; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(56px, 7vw, 88px); }
.hero__lede { margin: 30px 0 0; max-width: 44ch; font-size: 19px; color: var(--slate); }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--navy); background: var(--ivory); border: 1px solid var(--ivory-line); padding: 7px 14px; border-radius: 40px; margin-bottom: 22px; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.lens { margin: 0; }
.lens__stage { position: relative; aspect-ratio: 6 / 5; border-radius: 14px; overflow: hidden; background: #3A5466; cursor: none; touch-action: pan-y; --lx: 55%; --ly: 48%; --lr: 120px; }
.lens__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lens__layer { position: absolute; inset: 0; background-color: var(--navy); background-image: linear-gradient(rgba(226, 184, 92, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(226, 184, 92, .14) 1px, transparent 1px); background-size: 40px 40px; clip-path: circle(var(--lr) at var(--lx) var(--ly)); }
.lens__chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens__note { position: absolute; left: var(--x); top: var(--y); font-family: var(--font-mono); font-size: 12px; color: var(--gold-light); white-space: nowrap; }
.lens__note--light { color: var(--ivory); }
.lens__ring { position: absolute; left: var(--lx); top: var(--ly); width: calc(var(--lr) * 2); height: calc(var(--lr) * 2); transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--gold-light); box-shadow: 0 0 0 1px rgba(6, 43, 73, .4), 0 20px 40px rgba(0, 0, 0, .35); pointer-events: none; }
.lens__credit { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.lens__caption { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 600px) { .lens__stage { --lr: 88px; aspect-ratio: 1 / 1; } .lens__note { font-size: 11px; } }

/* ---------- Field notes ---------- */
.field-notes { background: var(--navy); color: var(--ivory); padding: 44px 0; }
.field-notes__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; }
.field-notes__list span { display: block; color: var(--gold-light); text-transform: uppercase; margin-bottom: 4px; }
.field-notes__list em { font-style: normal; color: rgba(255, 249, 237, .7); }
.cursor { color: var(--gold-light); font-weight: 400; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Credentials ---------- */
.creds { background: var(--paper); border-bottom: 1px solid var(--line); }
.creds__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.creds__item { padding: 30px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.creds__item:first-child { padding-left: 0; }
.creds__item:last-child { border-right: 0; }
.creds__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.creds__value { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1.15; color: var(--navy); margin-top: 6px; }
.creds__note { font-size: 13px; color: var(--slate); }
@media (max-width: 1080px) { .creds__item { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; } .creds__item:last-child { border-bottom: 0; } }

/* ---------- Questions ---------- */
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.questions--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.question { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--white); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.question:hover { border-color: var(--gold); box-shadow: 0 16px 30px -24px rgba(6, 43, 73, .5); }
.question__num { font-family: var(--font-mono); font-size: 13px; color: var(--gold-dark); }
.question__q { display: block; font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.question__svc { display: block; margin-top: 4px; font-size: 15px; color: var(--slate); }
.question .arrow { color: var(--gold); }
@media (max-width: 520px) { .question { grid-template-columns: minmax(0, 1fr) auto; } .question__num { grid-column: 1 / -1; } .question__q { font-size: 18px; } }

/* ---------- Redaction + stamps ---------- */
.redact { position: relative; display: inline-block; background: var(--ink); color: transparent; border-radius: 2px; padding: 0 8px; font-family: var(--font-display); font-size: 22px; overflow: hidden; user-select: none; }
.redact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(226, 184, 92, .55), transparent); transform: translateX(-100%); }
.is-visible .redact::after, .case-feature:hover .redact::after { animation: sweep 1.1s var(--ease) .2s both; }
@keyframes sweep { to { transform: translateX(100%); } }
.stamp { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 9px; border-radius: 20px; border: 1px solid currentColor; }
.stamp--solved { color: var(--green); }
.stamp--open { color: var(--gold-dark); }

/* ---------- Featured case ---------- */
.case-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); background: var(--white); border: 1px solid #E5D9BF; border-radius: 4px; overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.case-feature:hover { box-shadow: 0 30px 50px -30px rgba(6, 43, 73, .45); transform: translateY(-3px); }
.case-feature__media { display: flex; flex-direction: column; border-right: 1px solid #E5D9BF; }
.case-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid #E5D9BF; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--slate); }
.case-feature__shot { position: relative; margin: 0; flex: 1; min-height: 300px; background: var(--mist); }
.case-feature__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.case-feature__body { padding: clamp(28px, 4vw, 44px); align-self: center; }
.case-feature__sector { font-size: 14px; color: var(--slate); margin: 6px 0 18px; }
.case-feature__body h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1.08; margin-bottom: 22px; }
.deduction { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px 14px; margin: 0; font-size: 15px; line-height: 1.55; }
.deduction dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); padding-top: 3px; }
.deduction dd { margin: 0; }
@media (max-width: 520px) { .deduction { grid-template-columns: minmax(0, 1fr); gap: 2px; } .deduction dd { margin-bottom: 12px; } }

/* ---------- Exhibits ---------- */
.exhibit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.exhibit { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.exhibit:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(6, 43, 73, .45); }
.exhibit__shot { position: relative; margin: 0; aspect-ratio: 16 / 10; background: var(--mist); border-bottom: 1px solid var(--line); overflow: hidden; }
.exhibit__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease); }
.exhibit:hover .exhibit__shot img { transform: scale(1.03); }
.exhibit__body { padding: 20px 22px 24px; }
.exhibit__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 6px; }
.exhibit__body p { margin: 0; font-size: 15px; color: var(--slate); line-height: 1.55; }

/* ---------- Dossier ---------- */
.dossier { background: var(--navy); color: var(--ivory); padding: var(--section) 0; }
.dossier__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.dossier__photos { position: relative; padding: 0 120px 150px 0; max-width: 560px; }
.dossier__portrait { position: relative; margin: 0; border: 1px solid rgba(226, 184, 92, .5); border-radius: 4px; overflow: hidden; }
.dossier__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dossier__portrait figcaption { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 12px 14px; background: linear-gradient(180deg, rgba(6, 43, 73, .85), transparent); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }
.dossier__kit { position: absolute; right: 0; bottom: 0; width: 34%; margin: 0; background: var(--ivory); padding: 8px 8px 10px; box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .6); transform: rotate(2.5deg); transition: transform .4s var(--ease); }
.dossier__photos:hover .dossier__kit { transform: rotate(0deg) translateY(-6px); }
.dossier__kit img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.dossier__kit figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.dossier .h2 { color: var(--ivory); }
.dossier__copy p { font-size: 18px; line-height: 1.65; color: rgba(255, 249, 237, .88); }
@media (max-width: 520px) { .dossier__photos { padding: 0 60px 100px 0; } }

/* ---------- Off the clock ---------- */
.off-clock__lede { max-width: 60ch; color: var(--slate); margin-top: -18px; margin-bottom: 30px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.photo { position: relative; margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.05); }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 12px; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ivory); }

/* ---------- Contact panel + form ---------- */
.contact-panel-wrap { padding-top: 0; }
.section + .contact-panel-wrap, .off-clock + .contact-panel-wrap { padding-top: 0; }
.dossier + .contact-panel-wrap, .section--ivory + .contact-panel-wrap, .section--navy + .contact-panel-wrap { padding-top: var(--section); }
.contact-panel { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.contact-panel__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-panel__inner { position: relative; background: rgba(6, 43, 73, .9); color: var(--ivory); padding: clamp(36px, 5vw, 64px) clamp(24px, 4.5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; }
.contact-panel .h2 { color: var(--ivory); font-size: clamp(36px, 4.4vw, 56px); line-height: .98; }
.contact-panel__intro p { color: rgba(255, 249, 237, .78); font-size: 16px; }
.contact-panel a:not(.btn) { color: var(--gold-light); }
.case-form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.optional { font-weight: 400; opacity: .7; }
.field input, .field textarea { width: 100%; min-height: 48px; border: 1px solid rgba(255, 249, 237, .35); background: rgba(255, 249, 237, .07); color: var(--ivory); padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400; border-radius: 4px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { border-color: var(--gold-light); outline: none; box-shadow: 0 0 0 3px rgba(226, 184, 92, .3); }
.chips { border: 0; margin: 0; padding: 0; }
.chips legend { font-weight: 600; font-size: 14px; margin-bottom: 10px; padding: 0; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 40px; border: 1px solid rgba(255, 249, 237, .4); font-size: 14px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.chip input:checked + span { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.case-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #5B1E1E; color: #FFE3E3; padding: 12px 14px; border-radius: 4px; font-size: 15px; margin: 0; }
.case-received { align-self: center; border: 1px solid rgba(226, 184, 92, .5); border-radius: var(--radius); padding: 32px; }
.case-received h3 { color: var(--ivory); font-family: var(--font-display); font-size: 32px; margin-bottom: 12px; }
.case-received p { color: rgba(255, 249, 237, .8); }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--paper), var(--white)); }
.page-hero__lede { max-width: 58ch; font-size: 19px; color: var(--slate); margin-top: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-bottom: 28px; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.prose { font-size: 18px; line-height: 1.7; }
.prose--lead p:first-child { font-size: 21px; line-height: 1.6; color: var(--navy); }
.prose h2 { font-family: var(--font-display); font-size: 36px; margin: 1.4em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-size: 26px; margin: 1.3em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 4px; margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); font-size: 20px; color: var(--navy); }
.prose pre, .prose code { font-family: var(--font-mono); font-size: 15px; background: var(--mist); border-radius: 4px; }
.prose code { padding: 2px 6px; }
.prose pre { padding: 18px; overflow-x: auto; }
.prose--page { max-width: 760px; }

.evidence-card { background: var(--navy); color: var(--ivory); border-radius: var(--radius); padding: 32px; position: sticky; top: 120px; }
.clues { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.clues li { position: relative; padding-left: 28px; line-height: 1.5; }
.clues li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gold-light); }
.clues li::after { content: ""; position: absolute; left: 12px; top: 17px; width: 7px; height: 2px; background: var(--gold-light); transform: rotate(45deg); }

.look-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.look-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); padding: 16px 0; border-bottom: 1px solid var(--ivory-line); font-size: 17px; font-weight: 500; color: var(--navy); }
.look-list span { font-family: var(--font-mono); font-size: 13px; color: var(--gold-dark); padding-top: 3px; }
.deliver { background: var(--white); border: 1px solid var(--ivory-line); border-radius: var(--radius); padding: 32px; align-self: center; }
.deliver__text { font-size: 19px; line-height: 1.6; color: var(--navy); margin-bottom: 26px; }

.method__steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); border-top: 1px solid rgba(226, 184, 92, .4); }
.method__steps li { padding: 30px 28px 0 0; position: relative; }
.method__steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--gold-light); }
.method__n { font-family: var(--font-mono); font-size: 13px; color: var(--gold-light); }
.method__steps h3 { font-family: var(--font-display); font-size: 26px; margin: 6px 0 10px; }
.method__steps p { color: rgba(255, 249, 237, .78); font-size: 16px; }

.service-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.service-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease); }
.service-card:hover { border-color: var(--gold); box-shadow: 0 24px 40px -30px rgba(6, 43, 73, .5); transform: translateY(-3px); }
.service-card__num { font-family: var(--font-mono); font-size: 13px; color: var(--gold-dark); margin-bottom: 10px; }
.service-card__title { font-family: var(--font-display); font-size: 30px; line-height: 1.05; margin-bottom: 10px; }
.service-card__title a { text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; }
.service-card__q { font-weight: 600; color: var(--navy); }
.service-card p { color: var(--slate); font-size: 16px; }
.service-card .link-arrow { margin-top: auto; color: var(--navy); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: 15px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid var(--gold-light); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-light); }
.timeline b { display: block; color: var(--ivory); }
.timeline span { color: rgba(255, 249, 237, .72); font-size: 15px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; margin-top: 36px; }
.principles > div { border-top: 2px solid var(--navy); padding-top: 18px; }
.principles h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 8px; }
.principles p { color: var(--slate); font-size: 16px; margin: 0; }
.creative-callout p { color: rgba(255, 249, 237, .82); font-size: 18px; }

.next-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.next-steps li { border-top: 2px solid var(--navy); padding-top: 18px; }
.next-steps span { font-family: var(--font-mono); font-size: 13px; color: var(--gold-dark); }
.next-steps h2 { font-family: var(--font-display); font-size: 26px; margin: 6px 0 8px; }
.next-steps p { color: var(--slate); font-size: 16px; margin: 0; }

/* Insights */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--white); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(6, 43, 73, .45); }
.post-card__media { display: block; aspect-ratio: 16 / 9; background: var(--navy); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__placeholder { display: flex; align-items: flex-end; height: 100%; padding: 16px; background-image: linear-gradient(rgba(226, 184, 92, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(226, 184, 92, .14) 1px, transparent 1px); background-size: 32px 32px; }
.post-card__placeholder span { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-light); }
.post-card__body { padding: 22px 24px 26px; }
.post-card__meta { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); margin-bottom: 8px; }
.post-card__title { font-family: var(--font-display); font-size: 26px; line-height: 1.1; margin-bottom: 10px; }
.post-card__title a { text-decoration: none; }
.post-card__body p { color: var(--slate); font-size: 15px; margin: 0; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.empty-file { text-align: left; max-width: 560px; }
.post-figure { margin: 40px auto 0; }
.post-figure img { border-radius: var(--radius); width: 100%; }
.post-sign { display: flex; gap: 18px; align-items: center; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.post-sign img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.post-sign p { margin: 0 0 6px; font-size: 15px; color: var(--slate); }

/* 404 */
.missing { padding: clamp(80px, 12vw, 160px) 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }
.missing__inner { background: var(--white); padding-top: 40px; padding-bottom: 40px; border: 1px solid var(--line); border-radius: var(--radius); max-width: 860px; }
.missing__search { display: flex; gap: 12px; align-items: flex-end; margin-top: 36px; flex-wrap: wrap; }
.missing__search .field { flex: 1; min-width: 220px; color: var(--navy); }
.missing__search input { border: 1px solid var(--line); background: var(--white); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 249, 237, .75); padding: 72px 0 0; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.site-footer__brand img { width: 230px; margin-bottom: 20px; }
.site-footer__brand p { max-width: 36ch; }
.site-footer__h { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; font-weight: 500; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 249, 237, .85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .btn--gold { color: var(--navy); }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 249, 237, .12); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	.lens__stage { cursor: default; }
}

/* ---------- North Idaho investigation office (homepage hero) ---------- */
.office { --hdr: 76px; --cam: 1; position: relative; background: var(--navy-deep); color: var(--ivory); }
.office__stage { position: relative; height: calc(100svh - var(--hdr)); min-height: 560px; overflow: hidden; background: #071b29; }
.office--live { height: 210vh; }
.office--live .office__stage { position: sticky; top: var(--hdr); }
.office__camera { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: flex-start; transform-origin: 0 0; will-change: transform; }
.office__scene { --w: max(100%, calc(max(560px, 100svh - var(--hdr)) * 1.7768)); position: relative; flex: none; width: var(--w); margin-left: calc((100% - var(--w)) * .2); aspect-ratio: 1672 / 941; }
.office__scene img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.office__room, .office__desk { opacity: 0; transition: opacity .7s var(--ease); }
.office.is-layered .office__room, .office.is-layered .office__desk { opacity: 1; }
.office__desk { will-change: transform; }
.office__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(3, 21, 34, .9) 0%, rgba(3, 21, 34, .66) 26%, rgba(3, 21, 34, .14) 52%, rgba(3, 21, 34, 0) 64%), linear-gradient(0deg, rgba(3, 21, 34, .5), rgba(3, 21, 34, 0) 28%); }
.office__intro { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; pointer-events: none; }
.office__intro .container { width: 100%; }
.office__copy { max-width: 580px; pointer-events: auto; }
.office .display { color: var(--ivory); font-size: clamp(52px, 6.6vw, 96px); text-shadow: 0 2px 28px rgba(0, 0, 0, .4); }
.office .eyebrow { color: var(--gold-light); }
.office .hero__lede { color: rgba(255, 249, 237, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.office .btn--primary { background: var(--gold-light); color: var(--navy); }
.office .btn--primary:hover { background: #EBC877; color: var(--navy); }
.office .btn--soft { background: rgba(255, 249, 237, .12); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(255, 249, 237, .4); }
.office .btn--soft:hover { background: rgba(255, 249, 237, .22); color: var(--ivory); }

.office__pin { display: none; position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 40px; height: 40px; margin: 0; padding: 0; border: 2px solid var(--gold-light); border-radius: 50%; background: rgba(6, 43, 73, .92); color: var(--ivory); font: 600 12px/1 var(--font-mono); letter-spacing: .04em; cursor: pointer; box-shadow: 0 0 0 6px rgba(226, 184, 92, .22), 0 6px 16px rgba(0, 0, 0, .45); transform: translate(-50%, -50%) scale(calc(1 / var(--cam))); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease), background .2s, color .2s; }
.office--live .office__pin { display: block; }
.office.is-revealed .office__pin { opacity: 1; pointer-events: auto; }
.office__pin:hover, .office__pin:focus-visible, .office__pin[aria-expanded="true"] { background: var(--gold-light); color: var(--navy); }
.office__pin:focus-visible { opacity: 1; outline: 3px solid var(--ivory); outline-offset: 3px; }

.office__hint { display: none; position: absolute; right: clamp(20px, 4vw, 48px); bottom: 28px; z-index: 4; margin: 0; padding: 8px 14px; background: rgba(6, 27, 41, .8); border: 1px solid rgba(226, 184, 92, .4); border-radius: 3px; font: 12px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory); }
.office--live .office__hint { display: block; }
.office__hint [data-hint-pins], .office.is-revealed [data-hint-scroll] { display: none; }
.office.is-revealed [data-hint-pins] { display: inline; }

.office__panel { position: absolute; z-index: 6; left: clamp(20px, 4vw, 56px); bottom: clamp(20px, 5vh, 48px); width: min(440px, calc(100% - 40px)); padding: 26px 26px 24px; background: rgba(7, 27, 42, .97); border: 1px solid var(--gold); border-radius: 4px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55); color: var(--ivory); }
.office__panel[hidden] { display: none; }
.office__panel-num { margin: 0 0 8px; font: 12px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.office__panel-h { margin: 0 44px 10px 0; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.05; color: var(--ivory); }
.office__panel-q { margin: 0 0 10px; font-style: italic; color: var(--gold-light); }
.office__panel-lede { margin: 0 0 12px; }
.office__panel-pts { margin: 0 0 16px; padding-left: 18px; font-size: 15px; color: rgba(255, 249, 237, .85); }
.office__panel .link-arrow { color: var(--gold-light); }
.office__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(226, 184, 92, .6); border-radius: 3px; background: transparent; color: var(--ivory); font-size: 22px; line-height: 1; cursor: pointer; }
.office__close:hover, .office__close:focus-visible { background: var(--gold-light); color: var(--navy); }
.office__close:focus-visible { outline: 3px solid var(--ivory); outline-offset: 2px; }

@media (max-width: 760px) {
	.office__stage { display: flex; flex-direction: column; height: auto; min-height: 0; overflow: visible; }
	.office__camera { position: relative; order: -1; display: block; overflow: hidden; transform: none !important; }
	.office__scene { width: 100%; margin-left: 0; }
	.office__shade { background: linear-gradient(0deg, var(--navy-deep), rgba(4, 26, 45, 0) 35%); }
	.office__intro { position: relative; display: block; padding: 28px 0 48px; }
	.office .display { font-size: clamp(44px, 12vw, 64px); }
	.office__pin, .office__hint, .office__panel { display: none !important; }
}

.evidence-index { padding: clamp(56px, 7vw, 88px) 0; background: var(--navy-deep); color: var(--ivory); border-top: 1px solid rgba(226, 184, 92, .25); }
.evidence-index__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.evidence-index .h2 { margin: 0; color: var(--ivory); }
.evidence-index .link-arrow { color: var(--gold-light); }
.evidence-index__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.evidence-index__list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 20px 22px; border: 1px solid rgba(226, 184, 92, .3); border-radius: 4px; background: rgba(255, 249, 237, .04); color: var(--ivory); text-decoration: none; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.evidence-index__list a:hover, .evidence-index__list a:focus-visible { border-color: var(--gold-light); background: rgba(255, 249, 237, .08); transform: translateY(-2px); }
.evidence-index__list a:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.evidence-index__num { font: 12px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.evidence-index__t { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.evidence-index__q { font-size: 15px; color: rgba(255, 249, 237, .78); }
@media (prefers-reduced-motion: reduce) { .evidence-index__list a, .office__room, .office__desk { transition: none; } }

/* ---------- Interior visual kit: page hero scenes, props, service glyphs ---------- */
.page-hero--art { position: relative; --art-w: min(48vw, 920px); }
.page-hero__art { position: relative; }
.page-hero__frame { position: relative; overflow: hidden; background: var(--navy-deep); }
.page-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.page-hero__prop { position: absolute; z-index: 2; height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 14px 18px rgba(4, 26, 45, .35)); }
@media (min-width: 1000px) {
	.page-hero--art { display: flex; align-items: center; min-height: 460px; }
	.page-hero--art > .container { padding-right: calc(var(--art-w) - (100vw - min(100vw, var(--max-w))) / 2 + 96px); }
	.page-hero__art { position: absolute; top: 0; right: 0; bottom: 0; width: var(--art-w); }
	.page-hero__frame { position: absolute; inset: 0; border-left: 3px solid var(--gold); }
	.page-hero__prop { width: 150px; left: -80px; bottom: -34px; transform: rotate(-5deg); }
}
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
	.page-hero__img { animation: is-settle 1.8s var(--ease) both; }
	.page-hero__prop { animation: is-drift 1.4s .3s var(--ease) both; }
}
@keyframes is-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes is-drift { from { opacity: 0; transform: translateY(-16px) rotate(-5deg); } to { opacity: 1; transform: translateY(0) rotate(-5deg); } }
@media (max-width: 999px) {
	.page-hero--art { padding-bottom: 0; }
	.page-hero__art { margin-top: 32px; }
	.page-hero__frame { aspect-ratio: 16 / 9; border-top: 3px solid var(--gold); }
	.page-hero__prop { width: 92px; right: 18px; bottom: -22px; transform: rotate(5deg); }
}

/* Service glyphs (kit icons, tinted with the brand gold through a CSS mask) */
body:not(.home) .service-card:has(a[href*="/services/analytics-tracking/"]) .service-card__num::before, body:not(.home) .service-card:has(a[href*="/services/digital-marketing-ppc/"]) .service-card__num::before, body:not(.home) .service-card:has(a[href*="/services/seo/"]) .service-card__num::before, body:not(.home) .service-card:has(a[href*="/services/websites/"]) .service-card__num::before, body:not(.home) .service-card:has(a[href*="/services/custom-apps-automation/"]) .service-card__num::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 16px; background: var(--gold); -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
body:not(.home) .question[href*="/services/analytics-tracking/"] .question__num::before, body:not(.home) .question[href*="/services/digital-marketing-ppc/"] .question__num::before, body:not(.home) .question[href*="/services/seo/"] .question__num::before, body:not(.home) .question[href*="/services/websites/"] .question__num::before, body:not(.home) .question[href*="/services/custom-apps-automation/"] .question__num::before { content: ""; display: inline-block; width: 22px; height: 22px; margin-right: 10px; vertical-align: -6px; background: var(--gold); -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
body:not(.home) .service-card:has(a[href*="/services/analytics-tracking/"]), body:not(.home) .question[href*="/services/analytics-tracking/"] { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 9v40h34M16 40l10-12 10 7 15-20'/%3E%3Ccircle cx='26' cy='28' r='2' fill='%23000'/%3E%3Ccircle cx='36' cy='35' r='2' fill='%23000'/%3E%3Ccircle cx='49' cy='43' r='8'/%3E%3Cpath d='m55 49 6 6'/%3E%3C/svg%3E"); }
body:not(.home) .service-card:has(a[href*="/services/digital-marketing-ppc/"]), body:not(.home) .question[href*="/services/digital-marketing-ppc/"] { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='29' cy='35' r='22'/%3E%3Ccircle cx='29' cy='35' r='14'/%3E%3Ccircle cx='29' cy='35' r='6'/%3E%3Cpath d='M29 35 53 11M53 11v9h9M53 11h-9V2'/%3E%3C/svg%3E"); }
body:not(.home) .service-card:has(a[href*="/services/seo/"]), body:not(.home) .question[href*="/services/seo/"] { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='27' cy='27' r='18'/%3E%3Cpath d='m40 40 17 17M18 30l7-7 9 5M25 23v-7M34 28l5-6'/%3E%3Ccircle cx='18' cy='30' r='2' fill='%23000'/%3E%3Ccircle cx='25' cy='23' r='2' fill='%23000'/%3E%3Ccircle cx='34' cy='28' r='2' fill='%23000'/%3E%3C/svg%3E"); }
body:not(.home) .service-card:has(a[href*="/services/websites/"]), body:not(.home) .question[href*="/services/websites/"] { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='10' width='52' height='42' rx='4'/%3E%3Cpath d='M6 20h52M12 15h1m5 0h1m5 0h1M14 28h17v16H14zM38 28h12M38 36h12M38 44h8'/%3E%3C/svg%3E"); }
body:not(.home) .service-card:has(a[href*="/services/custom-apps-automation/"]), body:not(.home) .question[href*="/services/custom-apps-automation/"] { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='23' y='5' width='18' height='14' rx='2'/%3E%3Crect x='5' y='44' width='18' height='14' rx='2'/%3E%3Crect x='41' y='44' width='18' height='14' rx='2'/%3E%3Cpath d='M32 19v13M14 44V32h36v12M32 32v8'/%3E%3Ccircle cx='32' cy='43' r='3'/%3E%3C/svg%3E"); }

/* Evidence card: light paper case file placed beside the chosen pin (positioned by main.js) */
.office__panel { left: 0; top: 0; bottom: auto; width: min(380px, calc(100% - 32px)); padding: 30px 26px 24px; background: linear-gradient(180deg, #FFFBF2, #F6ECD6); border: 1px solid #D9C49A; border-top: 4px solid var(--gold); border-radius: 3px; color: var(--navy); box-shadow: 0 26px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .7); }
.office__panel::before { content: ""; position: absolute; top: var(--arrow-y, 50%); width: 16px; height: 16px; margin-top: -8px; background: #FAF2E0; border: 1px solid #D9C49A; transform: rotate(45deg); }
.office__panel[data-side="right"]::before { left: -9px; border-top: 0; border-right: 0; }
.office__panel[data-side="left"]::before { right: -9px; border-bottom: 0; border-left: 0; }
.office__panel::after { content: ""; position: absolute; top: -12px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #F5D888, #B27C19 65%, #70501A); box-shadow: 0 3px 4px rgba(0, 0, 0, .35); }
.office__panel-num { color: var(--gold-dark); }
.office__panel-h { color: var(--navy); }
.office__panel-q { color: #8A4D36; }
.office__panel-lede { color: var(--ink); }
.office__panel-pts { color: var(--slate); border-top: 1px dashed #CDB98C; padding-top: 12px; }
.office__panel .link-arrow { color: var(--navy); font-weight: 600; }
.office__close { top: 14px; right: 14px; border-color: #CDB98C; color: var(--navy); }
.office__close:hover, .office__close:focus-visible { background: var(--navy); color: var(--ivory); }
.office__close:focus-visible { outline-color: var(--gold-dark); }
@media (prefers-reduced-motion: no-preference) { .office__panel:not([hidden]) { animation: is-card-in .25s var(--ease); } }
@keyframes is-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Services overview: each service card opens with its office scene; method steps get brass pins on a red thread */
.service-index .service-card { overflow: hidden; }
.service-index .service-card::before { content: ""; display: block; margin: -32px -32px 26px; aspect-ratio: 16 / 7; background: var(--navy-deep) var(--scene, none) 72% 55% / cover no-repeat; border-bottom: 3px solid var(--gold); filter: brightness(.92) saturate(.95); transition: filter .4s var(--ease); }
.service-index .service-card:hover::before { filter: brightness(1.04) saturate(1.05); }
.service-index .service-card:has(a[href*="/services/analytics-tracking/"]) { --scene: url("/wp-content/uploads/is-hero-analytics-900.webp"); }
.service-index .service-card:has(a[href*="/services/digital-marketing-ppc/"]) { --scene: url("/wp-content/uploads/is-hero-advertising-900.webp"); }
.service-index .service-card:has(a[href*="/services/seo/"]) { --scene: url("/wp-content/uploads/is-hero-seo-900.webp"); }
.service-index .service-card:has(a[href*="/services/websites/"]) { --scene: url("/wp-content/uploads/is-hero-websites-900.webp"); }
.service-index .service-card:has(a[href*="/services/custom-apps-automation/"]) { --scene: url("/wp-content/uploads/is-hero-automation-900.webp"); }
body:not(.home) .method__steps { border-top: 0; background: repeating-linear-gradient(90deg, rgba(178, 72, 58, .8) 0 10px, transparent 10px 16px) left top / 100% 2px no-repeat; }
body:not(.home) .method__steps li::before { top: -8px; width: 18px; height: 18px; background: radial-gradient(circle at 30% 25%, #F5D888, #B27C19 65%, #70501A); box-shadow: 0 3px 5px rgba(0, 0, 0, .45); }

/* Video & Photo Storytelling: glyph and card scene (studio desk) */
body:not(.home) .service-card:has(a[href*="/services/video-photo-storytelling/"]), body:not(.home) .question[href*="/services/video-photo-storytelling/"] { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='20' width='38' height='28' rx='4'/%3E%3Cpath d='m43 30 15-8v24l-15-8'/%3E%3Ccircle cx='20' cy='34' r='7'/%3E%3Cpath d='M12 20l3-6h10l3 6'/%3E%3Ccircle cx='35' cy='27' r='1.5' fill='%23000'/%3E%3C/svg%3E"); }
body:not(.home) .service-card:has(a[href*="/services/video-photo-storytelling/"]) .service-card__num::before { content: ""; display: block; width: 44px; height: 44px; margin-bottom: 16px; background: var(--gold); -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
body:not(.home) .question[href*="/services/video-photo-storytelling/"] .question__num::before { content: ""; display: inline-block; width: 22px; height: 22px; margin-right: 10px; vertical-align: -6px; background: var(--gold); -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.service-index .service-card:has(a[href*="/services/video-photo-storytelling/"]) { --scene: url("/wp-content/uploads/is-hero-studio-900.webp"); }
.service-index .service-card:has(a[href*="/services/video-photo-storytelling/"])::before { background-position: 72% 55%; }

/* About: DiscoverFamily.net logo card and site snapshot */
.df-case__logo { display: inline-block; margin: 26px 0 0; padding: 16px 22px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 14px 30px -22px rgba(6, 43, 73, .55); }
.df-case__logo img { display: block; width: 240px; max-width: 100%; height: auto; }
.df-case__shot { position: relative; display: block; margin: 30px 0 22px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 34px 60px -34px rgba(6, 43, 73, .6); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.df-case__shot:hover { transform: translateY(-3px); box-shadow: 0 40px 70px -34px rgba(6, 43, 73, .7); }
.df-case__shot:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.df-case__shot::before { content: ""; position: absolute; top: -9px; left: 50%; z-index: 1; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #F5D888, #B27C19 65%, #70501A); box-shadow: 0 3px 4px rgba(0, 0, 0, .35); }
.df-case__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #EEF2F6; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; font: 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--slate); }
.df-case__bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD5E1; }
.df-case__bar span { margin-left: 10px; }
.df-case__shot img { display: block; width: 100%; height: auto; border-radius: 0 0 6px 6px; }
@media (prefers-reduced-motion: reduce) { .df-case__shot { transition: none; } .df-case__shot:hover { transform: none; } }
.df-case__title { margin: 0; line-height: 0; }
.df-case__title img { display: block; width: min(400px, 100%); height: auto; mix-blend-mode: multiply; }
