/*
Theme Name: Shahid Nihal
Theme URI: https://shahidnihal.com
Author: Shahid Nihal
Author URI: https://shahidnihal.com
Description: Custom block theme for shahidnihal.com. Charcoal and amber, editorial layout, built for the WordPress editor without a page builder.
Version: 1.1.1
Requires at least: 6.6
Tested up to: 6.7
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: shahid-nihal
*/

/* ---------- Tokens ---------- */
:root {
	--sn-accent: var(--wp--preset--color--accent, #E3A82B);
	--sn-base: var(--wp--preset--color--base, #0E1012);
	--sn-surface: var(--wp--preset--color--surface, #15181B);
	--sn-surface-2: var(--wp--preset--color--surface-2, #111316);
	--sn-line: var(--wp--preset--color--line, #23272B);
	--sn-line-strong: var(--wp--preset--color--line-strong, #3A3F45);
	--sn-contrast: var(--wp--preset--color--contrast, #F2F1EC);
	--sn-soft: var(--wp--preset--color--soft, #C9CDD1);
	--sn-muted: var(--wp--preset--color--muted, #A3A9B0);
	--sn-subtle: var(--wp--preset--color--subtle, #8A9199);
	--sn-section-line: #1E2226;
	--sn-heading: var(--wp--preset--font-family--heading, "Inter Tight", sans-serif);
	--sn-gutter: 32px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--sn-accent); color: #111315; }
:where(a) { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--sn-accent); outline-offset: 3px; }

/* ---------- Layout shells ---------- */
.sn-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(1200px + (var(--sn-gutter) * 2));
	margin-inline: auto !important;
	padding-inline: var(--sn-gutter);
}
.sn-section {
	padding-block: 96px;
	border-top: 1px solid var(--sn-section-line);
	margin-block: 0 !important;
}
.sn-section.sn-hero { border-top: 0; padding-block: 56px 104px; overflow-x: clip; }
.sn-section.sn-contact { padding-block: 112px; }
.sn-main { margin-block: 0 !important; }
.sn-main > * { margin-block: 0 !important; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- Shared type ---------- */
.sn-eyebrow {
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--sn-subtle);
	line-height: 1.4;
}
.sn-eyebrow.sn-accent-text, .sn-accent-text { color: var(--sn-accent); }
.sn-accent { color: var(--sn-accent); }
.sn-label {
	font-size: 12px !important;
	font-weight: 600;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--sn-muted);
	line-height: 1.4;
}
.sn-h2 {
	font-size: clamp(30px, 3.4vw, 44px) !important;
	letter-spacing: -1px !important;
	line-height: 1.1 !important;
	max-width: 900px;
}
.sn-lead { font-size: 19px; line-height: 1.6; color: var(--sn-muted); max-width: 560px; }
.sn-body { font-size: 16px; line-height: 1.65; color: var(--sn-muted); }
.sn-big {
	font-family: var(--sn-heading);
	font-weight: 600;
	line-height: 1 !important;
	color: var(--sn-accent);
	font-size: clamp(36px, 3.6vw, 48px);
	letter-spacing: -1.4px;
}

body .sn-wrap > .sn-eyebrow + .sn-h2 { margin-top: 14px; }
body .sn-wrap > .sn-h2 + * { margin-top: 40px; }

/* ---------- Buttons ---------- */
.wp-block-buttons.sn-ctas { gap: 12px; }
.wp-block-button .wp-block-button__link { min-height: 50px; box-sizing: border-box; display: inline-flex; align-items: center; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.wp-block-button.sn-btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--sn-contrast);
	border: 1px solid var(--sn-line-strong);
	font-weight: 500;
}
.wp-block-button.sn-btn-ghost .wp-block-button__link:hover { border-color: var(--sn-accent); color: var(--sn-accent); background: transparent; }

/* ---------- Header ---------- */
.sn-header { padding-block: 24px; margin: 0 !important; }
.sn-header-inner { justify-content: space-between; }
/* Logo: the name as a wordmark, with an amber full stop. */
.sn-brand { margin: 0; font-family: var(--sn-heading); font-weight: 600; font-size: 20px; letter-spacing: -0.4px; line-height: 1.2; }
.sn-brand a { text-decoration: none; color: var(--sn-contrast); }
.sn-brand a::after,
.sn-wordmark::after { content: "."; color: var(--sn-accent); }
.sn-nav { gap: 28px; }
.sn-navlinks { margin: 0; display: flex; gap: 28px; font-size: 15px; }
.sn-navlinks a { color: var(--sn-soft); text-decoration: none; }
.sn-navlinks a:hover { color: var(--sn-accent); }
.wp-block-button.sn-btn-nav .wp-block-button__link {
	min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 500;
	background: transparent; color: var(--sn-contrast); border: 1px solid var(--sn-line-strong);
}
.wp-block-button.sn-btn-nav .wp-block-button__link:hover { border-color: var(--sn-accent); color: var(--sn-accent); }

/* ---------- Hero ---------- */
/* Headline first; when the columns stack, the portrait follows the text. */
body .sn-hero-inner.is-layout-flex { flex-wrap: wrap; align-items: center; }
.sn-hero-text { flex: 1 1 520px; min-width: 0; }
.sn-h1 {
	font-size: clamp(44px, 6vw, 80px) !important;
	line-height: 1.02 !important;
	letter-spacing: -2px !important;
}
body .sn-hero-text > .sn-eyebrow { color: var(--sn-accent); }
body .sn-hero-text > .sn-h1 { margin-top: 22px; }
body .sn-hero-text > .sn-lead { margin-top: 28px; }
body .sn-hero-text > .sn-stats { margin-top: 40px; }
body .sn-hero-text > .sn-ctas { margin-top: 40px; }
.sn-stats { row-gap: 20px !important; column-gap: 0 !important; }
.sn-stat { padding-right: 28px; margin-right: 28px !important; border-right: 1px solid #2A2E33; }
.sn-stat:last-child { border-right: 0; margin-right: 0 !important; padding-right: 0; }
.sn-stat-value { font-family: var(--sn-heading); font-weight: 600; font-size: 34px; letter-spacing: -0.8px; line-height: 1.2; margin: 0; font-variant-numeric: tabular-nums; }
.sn-stat-label { font-size: 14px; color: var(--sn-muted); margin: 4px 0 0 !important; }

.sn-hero-media { flex: 1 1 340px; max-width: 470px; position: relative; margin-inline: auto !important; }
.sn-hero-media::before {
	content: "";
	position: absolute;
	inset: -36px -48px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 470 470' preserveAspectRatio='none'%3E%3Cpath d='M 30 360 C 60 120, 300 20, 420 140 S 380 450, 200 410 S 60 200, 260 60' fill='none' stroke='%23E3A82B' stroke-opacity='0.35' stroke-width='1.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	pointer-events: none;
}
.sn-hero-media.has-line::before { display: none; }
.sn-line {
	position: absolute; left: -56px; top: -40px; width: calc(100% + 112px); height: calc(100% + 80px);
	pointer-events: none; overflow: visible; color: color-mix(in srgb, var(--sn-accent) 60%, transparent);
}
.sn-line path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: sn-draw 2.8s cubic-bezier(.4,0,.2,1) .2s forwards; }
@keyframes sn-draw { to { stroke-dashoffset: 0; } }
.sn-portrait { position: relative; margin: 0 !important; }
.sn-portrait img {
	display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0;
	border-radius: 28px; border: 1px solid var(--sn-line);
}
.sn-chip-location {
	position: absolute; left: 20px; bottom: 20px; margin: 0 !important;
	background: rgba(14, 16, 18, 0.88); border: 1px solid #2A2E33; border-radius: 999px;
	padding: 10px 16px; font-size: 13px; color: #D9DBDD; line-height: 1.3;
}

/* ---------- Sector band ---------- */
.sn-band { overflow: hidden; background: var(--sn-surface-2); border-top: 1px solid var(--sn-section-line); padding-block: 24px; margin: 0 !important; }
body .sn-band .sn-band-track { gap: 0 !important; width: max-content; margin: 0 !important; }
body .sn-band-track > * { margin: 0 !important; }
.sn-band-item {
	display: flex; align-items: center; gap: 28px; padding-left: 28px; white-space: nowrap;
	font-family: var(--sn-heading); font-weight: 600; font-size: 28px; letter-spacing: -0.3px; line-height: 1.2; color: var(--sn-soft);
}
.sn-band-item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sn-accent); flex: none; }
.sn-band-track.is-moving { animation: sn-marquee 50s linear infinite; }
.sn-band:hover .sn-band-track.is-moving { animation-play-state: paused; }
@keyframes sn-marquee { to { transform: translateX(-50%); } }

/* ---------- Point of view: the Growth Loop ---------- */
.sn-section.sn-pov { border-top: 0; overflow-x: clip; }
.sn-pov-inner { gap: 56px !important; align-items: center; }
.sn-pov-text { flex: 1 1 460px; min-width: 0; }
.sn-pov-quote {
	font-family: var(--sn-heading); font-weight: 500;
	font-size: clamp(32px, 3.8vw, 50px); line-height: 1.12; letter-spacing: -1.2px;
}
body .sn-pov-text > .sn-pov-quote { margin-top: 18px; }
body .sn-pov-text > .sn-lead { margin-top: 22px; }
body .sn-pov-text > .sn-fullstack { margin-top: 20px; max-width: 520px; font-family: var(--sn-heading); font-weight: 500; font-size: 20px; line-height: 1.4; color: var(--sn-contrast); }
body .sn-pov-text > .sn-stage-list { margin-top: 32px; }
body .sn-pov-text > .sn-loop-hint { margin-top: 14px; font-size: 14px; color: var(--sn-subtle); display: none; }

/* Stage details: a readable list by default; one card at a time once the loop is interactive. */
.sn-stage-list { border-top: 1px solid var(--sn-line); }
body .sn-stage-list > * { margin: 0 !important; }
.sn-stage { padding-block: 16px; border-bottom: 1px solid var(--sn-line); }
body .sn-stage > * { margin: 0; }
.sn-stage-label { font-size: 12px !important; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--sn-accent); }
body .sn-stage > .sn-stage-caps { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--sn-contrast); }
body .sn-stage > .sn-stage-proof { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--sn-muted); }
.sn-stage-proof strong { color: var(--sn-subtle); font-weight: 600; font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; margin-right: 6px; }

.sn-loop {
	position: relative; flex: 1 1 420px; width: 100%; max-width: 520px;
	aspect-ratio: 1 / 1; margin-inline: auto !important;
}
.sn-loop::before {
	content: ""; position: absolute; inset: 8%;
	border: 1.5px dashed color-mix(in srgb, var(--sn-accent) 42%, transparent);
	border-radius: 50%; box-sizing: border-box;
}
.sn-loop::after {
	content: ""; position: absolute; inset: calc(8% - 7px); border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle 6px at 50% 7px, var(--sn-accent) 92%, transparent 100%);
	animation: sn-orbit 18s linear infinite; z-index: 0;
}
@keyframes sn-orbit { to { transform: rotate(360deg); } }
body .sn-loop > * { margin: 0 !important; }
.sn-loop-center {
	position: absolute; inset: 31%; border-radius: 50%; box-sizing: border-box;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
	background: var(--sn-surface-2); border: 1px solid var(--sn-line); z-index: 1;
	font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--sn-accent); line-height: 1.4;
}
.sn-loop-active { font-family: var(--sn-heading); font-size: 24px; font-weight: 600; letter-spacing: -0.3px; text-transform: none; color: var(--sn-contrast); }
.sn-chip {
	position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
	background: var(--sn-surface); border: 1px solid #2E3338; border-radius: 999px;
	padding: 11px 18px; font-size: 15px; font-weight: 600; line-height: 1.2; z-index: 2;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.sn-chip-1 { left: 50%; top: 8%; }
.sn-chip-2 { left: 89.9%; top: 37%; }
.sn-chip-3 { left: 74.7%; top: 84%; }
.sn-chip-4 { left: 25.3%; top: 84%; }
.sn-chip-5 { left: 10.1%; top: 37%; }
.sn-chip:has(.sn-chip-btn) { padding: 0; }
.sn-chip-btn {
	all: unset; box-sizing: border-box; display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
	border-radius: 999px; cursor: pointer; font: inherit; color: inherit;
}
.sn-chip-btn:focus-visible { outline: 2px solid var(--sn-accent); outline-offset: 3px; }
.sn-chip:hover { border-color: var(--sn-accent); }
.sn-chip.is-active { background: var(--sn-accent); border-color: var(--sn-accent); color: #111315; }

/* Desktop with the script running: one stage card at a time. */
@media (min-width: 721px) {
	.sn-pov.is-interactive .sn-stage-list { border: 1px solid var(--sn-line); border-radius: 20px; background: var(--sn-surface); padding: 6px 26px; }
	.sn-pov.is-interactive .sn-stage { display: none; border: 0; padding-block: 20px; }
	.sn-pov.is-interactive .sn-stage.is-active { display: block; animation: sn-fade .45s ease; }
	.sn-pov.is-interactive .sn-loop-hint { display: block; }
}
@keyframes sn-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* The WordPress editor makes every block position:relative. These labels must stay
   absolutely placed there too, or the loop diagram and photo label fall out of place. */
.sn-loop .sn-chip,
.sn-loop .sn-loop-center,
.sn-hero-media .sn-chip-location { position: absolute !important; }
.sn-loop .sn-chip { width: max-content; }

/* ---------- Selected work (the light section) ---------- */
.sn-section.sn-cream { background: #F4F1EA; color: #141619; border-top: 0; }
.sn-cream + .sn-section { border-top: 0; }
.sn-cream .sn-eyebrow, .sn-cream .sn-label { color: #5D6167; }
.sn-cream .sn-h2, .sn-cream h3, .sn-cream .sn-big-sub, .sn-cream .sn-step-title, .sn-cream .sn-team-note { color: #141619; }
.sn-cream .sn-card { background: #FFFFFF; border-color: #E4DED2; }
.sn-cream .sn-big { color: #A06A00; font-variant-numeric: tabular-nums; }
.sn-cream .sn-body, .sn-cream .sn-list { color: #4A4F55; }
.sn-cream .sn-step { background: #FAF8F3; border-color: #E4DED2; }
.sn-cream .sn-step:last-of-type { border: 1.5px solid #A06A00; background: #FFFFFF; }
.sn-cream .sn-step:not(:last-of-type)::after { background: linear-gradient(#D9D1C1, #D9D1C1) center / 2px 14px no-repeat; }
.sn-cream .sn-step-num { color: #A06A00; }
.sn-cream .sn-step-note, .sn-cream .sn-steps-caption { color: #5D6167 !important; }
.sn-spark { display: block; width: 100%; height: auto; font-family: var(--sn-body, Inter), sans-serif; }
.sn-spark-line { stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.4,0,.2,1) .3s; }
.sn-cases.sn-reveal:not(.is-in) .sn-spark-line { stroke-dashoffset: 100; }
.sn-case-feature .sn-step { transition: opacity .6s ease, transform .6s ease; }
.sn-case-feature.sn-reveal:not(.is-in) .sn-step { opacity: 0; transform: translateY(10px); }
.sn-case-feature .sn-step:nth-of-type(2) { transition-delay: .25s; }
.sn-case-feature .sn-step:nth-of-type(3) { transition-delay: .5s; }
.sn-case-feature .sn-step:nth-of-type(4) { transition-delay: .75s; }

body .sn-work > .sn-case-feature,
body .sn-work > .sn-cases,
body .sn-work > .sn-h2 + .sn-case-feature { margin-top: 40px; }

.sn-card {
	background: var(--sn-surface); border: 1px solid var(--sn-line); border-radius: 24px;
	padding: 32px; box-sizing: border-box;
}
body .sn-card > * { margin: 0; }
body .sn-card > * + * { margin-top: 16px; }
.sn-card h3, .sn-card .wp-block-heading { font-size: 24px; line-height: 1.25; letter-spacing: -0.4px; }
.sn-case-feature { padding: 40px; gap: 40px !important; align-items: center; }
.sn-case-text { flex: 1 1 420px; min-width: 0; }
body .sn-case-text > * { margin: 0; }
body .sn-case-text > * + * { margin-top: 16px; }
body .sn-case-text > .sn-big-sub { margin-top: 10px; }
.sn-case-feature .sn-big { font-size: clamp(52px, 6vw, 84px); letter-spacing: -2.4px; }
.sn-big-sub { font-family: var(--sn-heading); font-weight: 500; font-size: 22px; color: var(--sn-contrast); }
.sn-case-feature h3 { font-size: 28px; line-height: 1.2; letter-spacing: -0.5px; margin-top: 24px !important; }
.sn-case-feature .sn-body { font-size: 17px; }

.sn-steps { flex: 1 1 380px; min-width: 0; }
body .sn-steps > * { margin: 0; }
body .sn-steps > .sn-step + .sn-step { margin-top: 28px; }
.sn-step {
	position: relative; background: var(--sn-surface-2); border: 1px solid #2A2E33; border-radius: 16px;
	padding: 18px 20px; gap: 14px !important; flex-wrap: nowrap !important;
}
.sn-step:not(:last-of-type)::after {
	content: ""; position: absolute; left: 33px; bottom: -24px; width: 2px; height: 20px;
	background: linear-gradient(var(--sn-line-strong), var(--sn-line-strong)) center / 2px 14px no-repeat;
}
.sn-step:last-of-type { border-color: var(--sn-accent); }
.sn-step p { margin: 0 !important; }
.sn-step-num { width: 28px; flex: 0 0 28px; font-family: var(--sn-heading); font-weight: 600; font-size: 15px; color: var(--sn-accent); }
.sn-step-title { font-family: var(--sn-heading); font-weight: 600; font-size: 19px; }
.sn-step-note { margin-left: auto !important; font-size: 14px; color: var(--sn-subtle); text-align: right; }
body .sn-steps > .sn-steps-caption { margin-top: 14px; font-size: 13px; color: var(--sn-subtle); }

.sn-cases { gap: 20px !important; }
.sn-list { margin: 0; padding-left: 20px; color: var(--sn-muted); font-size: 16px; line-height: 1.55; }
.sn-list li + li { margin-top: 8px; }
.sn-team-note { font-size: 16px; color: var(--sn-soft); line-height: 1.6; }

/* ---------- Career: a horizontal timeline ---------- */
body .sn-career-inner.is-layout-flex { flex-direction: column; align-items: stretch !important; gap: 56px !important; }
.sn-career-head { min-width: 0; }
body .sn-career-head > .sn-h2 { margin-top: 14px; }
body .sn-career-head > .sn-edu { margin-top: 16px; font-size: 15px; color: var(--sn-subtle); }
.sn-career-list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; min-width: 0; }
.sn-career-list::before, .sn-career-list::after { content: ""; position: absolute; left: 0; top: 9px; height: 2px; }
.sn-career-list::before { right: 0; background: var(--sn-line); }
.sn-career-list::after { width: 100%; background: var(--sn-accent); transform-origin: left center; transition: transform 1.8s cubic-bezier(.4,0,.2,1) .2s; }
.sn-career-list.sn-reveal:not(.is-in)::after { transform: scaleX(0); }
body .sn-career-list > * { margin: 0 !important; }
.sn-row { position: relative; padding-top: 40px; }
.sn-row::before {
	content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%;
	background: var(--sn-base); border: 2px solid var(--sn-line-strong); z-index: 1;
}
.sn-row.is-current::before { background: var(--sn-accent); border-color: var(--sn-accent); animation: sn-pulse 1.9s ease-out infinite; }
@keyframes sn-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--sn-accent) 55%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
body .sn-row > * { margin: 0 !important; }
.sn-row-year { font-size: 14px; font-weight: 600; color: var(--sn-subtle); }
.sn-row.is-current .sn-row-year { color: var(--sn-accent); }
body .sn-row > .sn-row-detail { margin-top: 8px !important; }
.sn-row-role { font-family: var(--sn-heading); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0 !important; }
body .sn-row-detail > * { margin: 0; }
body .sn-row-detail > .sn-row-org { margin-top: 6px; font-size: 15px; color: var(--sn-muted); }

/* ---------- Writing (cards) ---------- */
.sn-writing-head { justify-content: space-between; align-items: flex-end !important; }
body .sn-writing-head > * { margin: 0 !important; }
body .sn-writing-head .sn-h2 { margin-top: 14px; }
.sn-more-link { margin: 0; font-size: 15px; font-weight: 500; }
.sn-more-link a { color: var(--sn-accent); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.sn-more-link a:hover { color: var(--sn-contrast); }
body .sn-writing > .sn-writing-head + .sn-posts { margin-top: 40px; }

.sn-posts .wp-block-post-template { counter-reset: sn-post; gap: 20px; margin: 0; padding: 0; }
.sn-posts .wp-block-post { counter-increment: sn-post; display: flex; flex-direction: column; }
body .sn-posts .wp-block-post > * { margin: 0; }
body .sn-posts .wp-block-post > * + * { margin-top: 16px; }
.sn-cover {
	position: relative; aspect-ratio: 16 / 10; border-radius: 20px; background: var(--sn-surface);
	border: 1px solid var(--sn-line); padding: 22px 24px; box-sizing: border-box; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-start; transition: border-color .25s ease;
}
.sn-posts .wp-block-post:hover .sn-cover { border-color: var(--sn-accent); }
.sn-cover::after {
	content: ""; position: absolute; right: 20px; bottom: 18px; width: 44%; aspect-ratio: 160 / 92;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 92'%3E%3Cpath d='M12 84A68 68 0 0 1 148 84' fill='none' stroke='%232E3338' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M12 84A68 68 0 0 1 126 36' fill='none' stroke='%23E3A82B' stroke-width='10' stroke-linecap='round'/%3E%3Cline x1='80' y1='84' x2='118' y2='48' stroke='%23F2F1EC' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='80' cy='84' r='6' fill='%23F2F1EC'/%3E%3C/svg%3E");
}
.sn-posts .wp-block-post:nth-child(3n+2) .sn-cover::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 92'%3E%3Crect x='20' y='52' width='34' height='38' rx='6' fill='%232E3338'/%3E%3Crect x='66' y='34' width='34' height='56' rx='6' fill='%233A3F45'/%3E%3Crect x='112' y='4' width='34' height='86' rx='6' fill='%23E3A82B'/%3E%3C/svg%3E");
}
.sn-posts .wp-block-post:nth-child(3n) .sn-cover::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 92'%3E%3Ccircle cx='110' cy='46' r='36' fill='none' stroke='%23E3A82B' stroke-opacity='.6' stroke-width='2' stroke-dasharray='5 6'/%3E%3Ccircle cx='110' cy='10' r='7' fill='%23E3A82B'/%3E%3Ccircle cx='144' cy='35' r='6' fill='%23F2F1EC'/%3E%3Ccircle cx='131' cy='75' r='6' fill='%23F2F1EC'/%3E%3Ccircle cx='89' cy='75' r='6' fill='%23F2F1EC'/%3E%3Ccircle cx='76' cy='35' r='6' fill='%23F2F1EC'/%3E%3C/svg%3E");
}
.sn-cover .wp-block-post-terms {
	margin: 0; position: relative; z-index: 1; max-width: 70%;
	font-family: var(--sn-heading); font-size: 24px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.2; color: var(--sn-contrast);
}
.sn-cover .wp-block-post-terms a { color: var(--sn-contrast); text-decoration: none; }
.sn-cover .wp-block-post-terms a:hover { color: var(--sn-accent); }
.sn-cover .wp-block-post-terms .wp-block-post-terms__separator { color: var(--sn-subtle); }
.sn-posts .wp-block-post-date { font-size: 14px; color: var(--sn-subtle); }
.sn-posts .wp-block-post-title { font-size: 21px !important; line-height: 1.3 !important; letter-spacing: -0.3px !important; }
.sn-posts .wp-block-post-title a { text-decoration: none; color: var(--sn-contrast); }
.sn-posts .wp-block-post-title a:hover { color: var(--sn-accent); }
.sn-posts .wp-block-post-excerpt { font-size: 15px; color: var(--sn-muted); line-height: 1.6; }
.sn-posts .wp-block-post-excerpt__more-text { display: none; }
.sn-posts .wp-block-query-pagination { margin-top: 48px; gap: 16px; font-size: 15px; }
.sn-posts .wp-block-query-pagination a { color: var(--sn-accent); text-decoration: none; }
.sn-posts .wp-block-query-pagination .page-numbers.current { color: var(--sn-contrast); font-weight: 600; }

/* ---------- Independent advisory ---------- */
body .sn-advisory .sn-wrap > .sn-h2 { max-width: 820px; }
body .sn-advisory .sn-wrap > .sn-lead { margin-top: 18px; }
body .sn-advisory .sn-wrap > .sn-adv-label { margin-top: 48px; }
body .sn-advisory .sn-wrap > .sn-adv-list { margin-top: 14px; }
body .sn-advisory .sn-wrap > .sn-adv-actions { margin-top: 40px; gap: 12px 24px; }
body .sn-adv-actions > * { margin: 0 !important; }
.sn-adv-list { border-top: 1px solid var(--sn-line); }
body .sn-adv-list > * { margin: 0 !important; }
.sn-adv-row {
	display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 32px; gap: 24px; align-items: center;
	padding-block: 22px; border-bottom: 1px solid var(--sn-line);
}
.sn-adv-row::after { content: "→"; color: var(--sn-accent); font-size: 20px; text-align: right; opacity: 0; transform: translateX(-8px); transition: opacity .25s ease, transform .25s ease; }
body .sn-adv-row > * { margin: 0 !important; }
.sn-adv-name { font-family: var(--sn-heading); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.6px; line-height: 1.15; color: var(--sn-contrast); transition: color .25s ease, transform .25s ease; }
.sn-adv-text { font-size: 16px; line-height: 1.5; color: var(--sn-subtle); transition: color .25s ease; }
.sn-adv-row:hover .sn-adv-name { color: var(--sn-accent); transform: translateX(8px); }
.sn-adv-row:hover .sn-adv-text { color: var(--sn-contrast); }
.sn-adv-row:hover::after { opacity: 1; transform: none; }
.sn-nowrap { white-space: nowrap; }

/* ---------- Brands + quote patterns (inserted later) ---------- */
.sn-logos { gap: 12px !important; }
.sn-logos .wp-block-image {
	margin: 0; height: 88px; box-sizing: border-box; padding: 16px 20px;
	border: 1px solid var(--sn-line); border-radius: 14px; background: #121417;
	display: flex; align-items: center; justify-content: center;
}
.sn-logos .wp-block-image img { max-height: 44px; width: auto; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .75; transition: opacity .2s; }
.sn-logos .wp-block-image:hover img { opacity: 1; }
.sn-note { padding: 40px; gap: 40px !important; align-items: center; }
.sn-note .wp-block-image { flex: 0 1 340px; margin: 0; }
.sn-note .wp-block-image img { border-radius: 18px; width: 100%; height: auto; }
.sn-note-text { flex: 1 1 420px; min-width: 0; }
body .sn-note-text > * { margin: 0; }
body .sn-note-text > * + * { margin-top: 24px; }
.sn-note .wp-block-quote { border: 0; padding: 0; margin: 0; }
.sn-note .wp-block-quote p { font-family: var(--sn-heading); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; letter-spacing: -0.5px; }
.sn-note-caption { font-size: 15px; color: var(--sn-muted); }
.sn-note-caption strong { color: var(--sn-contrast); }
.sn-quote-line { font-size: 15px; line-height: 1.6; color: var(--sn-muted); }

/* ---------- Contact ---------- */
.sn-contact-title {
	font-size: clamp(52px, 8vw, 112px) !important; letter-spacing: -3px !important; line-height: 1 !important;
}
body .sn-contact-inner.is-layout-flex { gap: 56px !important; align-items: flex-start !important; }
.sn-contact-text { flex: 1 1 420px; min-width: 0; }
body .sn-contact-text > * { margin: 0; }
body .sn-contact-text > .sn-lead { margin-top: 28px; }
body .sn-contact-text > .sn-ctas { margin-top: 36px; }
body .sn-contact-text > .sn-location { margin-top: 28px; font-size: 15px; color: var(--sn-subtle); }
.sn-contact-form {
	flex: 1 1 460px; min-width: 0; box-sizing: border-box;
	background: var(--sn-surface); border: 1px solid var(--sn-line); border-radius: 24px; padding: 32px;
}
body .sn-contact-form > * { margin: 0; }

/* The contact form (Contact Form 7) */
.sn-contact-form .wpcf7 form { margin: 0; }
.sn-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.sn-form-grid p { margin: 0; }
.sn-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sn-full { grid-column: 1 / -1; }
.sn-f label { font-size: 14px; color: var(--sn-muted); }
.sn-opt { color: var(--sn-subtle); }
.sn-f br { display: none; }
.sn-contact-form .wpcf7-form-control-wrap { display: block; }
.sn-contact-form :is(input[type=text], input[type=email], input[type=tel], select, textarea) {
	width: 100%; max-width: 100%; box-sizing: border-box;
	background: var(--sn-surface-2); color: var(--sn-contrast);
	border: 1px solid var(--sn-line-strong); border-radius: 12px;
	padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.4;
}
.sn-contact-form select { appearance: none; padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A3A9B0' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.sn-contact-form textarea { min-height: 140px; resize: vertical; }
.sn-contact-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--sn-accent); outline-offset: 1px; }
.sn-contact-form .wpcf7-submit {
	background: var(--sn-accent); color: #111315; border: 0; border-radius: 999px;
	padding: 0 26px; min-height: 50px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
	transition: background-color .2s ease;
}
.sn-contact-form .wpcf7-submit:hover { background: var(--sn-contrast); }
.sn-f-submit { display: flex; align-items: center; gap: 12px; }
.sn-contact-form .wpcf7-spinner { margin: 0; }
.sn-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.sn-contact-form .wpcf7-not-valid-tip { color: #F0A58A; font-size: 13px; margin-top: 6px; }
.sn-contact-form .wpcf7-not-valid { border-color: #F0A58A !important; }
.sn-contact-form .wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--sn-line-strong);
	font-size: 15px; color: var(--sn-contrast);
}
.sn-contact-form .wpcf7 form.sent .wpcf7-response-output { border-color: var(--sn-accent); }
.sn-contact-form .wpcf7 form:is(.init, .resetting, .submitting) .wpcf7-response-output,
.sn-contact-form .wpcf7-response-output:empty { display: none; }
.sn-contact-form .wpcf7 form.invalid .wpcf7-response-output,
.sn-contact-form .wpcf7 form.failed .wpcf7-response-output,
.sn-contact-form .wpcf7 form.spam .wpcf7-response-output { border-color: #F0A58A; }

/* ---------- Footer ---------- */
.sn-footer { margin: 0 !important; }
.sn-footer-inner {
	justify-content: space-between;
	background: linear-gradient(var(--sn-section-line), var(--sn-section-line)) center top / calc(100% - (var(--sn-gutter) * 2)) 1px no-repeat;
	padding-block: 28px 40px;
}
.sn-footer-inner p { margin: 0 !important; font-size: 14px; color: var(--sn-subtle); }
.sn-footer-inner .sn-footer-brand { display: flex; align-items: baseline; gap: 14px; }
.sn-wordmark { font-family: var(--sn-heading); font-weight: 600; font-size: 17px; letter-spacing: -0.3px; color: var(--sn-contrast); }
.sn-footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.sn-footer-links a { color: var(--sn-muted); text-decoration: none; }
.sn-footer-links a:hover { color: var(--sn-accent); }

/* ---------- Article pages ---------- */
.sn-page-head { padding-block: 64px 48px; }
body .sn-page-head > * { margin: 0; }
body .sn-page-head > * + * { margin-top: 16px; }
.sn-page-title { font-size: clamp(36px, 5vw, 60px) !important; line-height: 1.08 !important; letter-spacing: -1.5px !important; max-width: 900px; }
.sn-article-meta { gap: 8px 16px !important; font-size: 14px; color: var(--sn-subtle); }
.sn-article-meta .wp-block-post-terms a { color: var(--sn-accent); text-decoration: none; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; font-size: 12px; }
.sn-article-meta .wp-block-post-date { color: var(--sn-subtle); }
.sn-prose { font-size: 18px; line-height: 1.75; color: var(--sn-soft); padding-bottom: 72px; }
.sn-prose > * { max-width: 720px; }
.sn-prose h2 { font-size: 30px; margin-top: 2.2em; letter-spacing: -0.6px; }
.sn-prose h3 { font-size: 25px; margin-top: 1.9em; }
.sn-prose h4 { font-size: 22px; margin-top: 1.8em; }
.sn-prose h5 { font-size: 22px; margin-top: 1.8em; letter-spacing: -0.3px; }
.sn-prose h6 { font-size: 18px; margin-top: 1.6em; letter-spacing: -0.2px; text-transform: none; }
.sn-prose :is(h2, h3, h4, h5, h6) + * { margin-top: .6em; }
.sn-prose a { color: var(--sn-accent); text-decoration: underline; }
.sn-prose a:hover { color: var(--sn-contrast); }
.sn-prose strong { color: var(--sn-contrast); }
.sn-prose ul, .sn-prose ol { padding-left: 1.3em; }
.sn-prose li + li { margin-top: .4em; }
.sn-prose img { border-radius: 16px; height: auto; }
.sn-prose blockquote, .sn-prose .wp-block-quote {
	margin-inline: 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--sn-accent);
	font-family: var(--sn-heading); font-size: 22px; line-height: 1.5; color: var(--sn-contrast);
}
.sn-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.sn-prose th, .sn-prose td { border-bottom: 1px solid var(--sn-line); padding: 10px 12px; text-align: left; }
.sn-prose hr { border: 0; border-top: 1px solid var(--sn-line); margin-block: 48px; }
.sn-author { padding-block: 40px 96px; border-top: 1px solid var(--sn-section-line); gap: 20px !important; align-items: center; }
.sn-author .wp-block-image { margin: 0; flex: 0 0 64px; }
.sn-author .wp-block-image img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.sn-author-text { flex: 1 1 300px; min-width: 0; }
body .sn-author-text > * { margin: 0; }
.sn-author-name { font-family: var(--sn-heading); font-weight: 600; font-size: 18px; }
body .sn-author-text > .sn-author-bio { margin-top: 4px; font-size: 15px; color: var(--sn-muted); }
.sn-404 { padding-block: 120px; }
body .sn-404 > * + * { margin-top: 24px; }

/* ---------- Content made earlier with a page builder ---------- */
/* Pages keep their own full-width layout. */
.sn-prose > .elementor { max-width: none; }
/* Articles come back to the reading column and the theme's type sizes. */
.single-post .sn-prose > .elementor { max-width: 720px; }
.single-post .sn-prose > .elementor > .e-con,
.single-post .sn-prose > .elementor > .e-con > .e-con-inner { padding-inline: 0; }
.single-post .sn-prose .elementor .elementor-widget-text-editor,
.single-post .sn-prose .elementor .elementor-widget-text-editor :is(p, li) {
	font-size: 18px !important; line-height: 1.75 !important; letter-spacing: normal !important; font-weight: 400;
}
.single-post .sn-prose .elementor .elementor-widget-text-editor :is(strong, b) { font-weight: 600; }
.single-post .sn-prose .elementor :is(h2, h3, h4, h5, h6) { letter-spacing: -0.3px !important; line-height: 1.3 !important; }
.single-post .sn-prose .elementor blockquote {
	font-size: 22px !important; line-height: 1.5 !important; letter-spacing: normal !important; font-weight: 500;
}

/* ---------- Forms inside content (contact forms) ---------- */
.sn-prose :is(input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]), textarea, select) {
	width: 100%; max-width: 100%; box-sizing: border-box;
	background: var(--sn-surface-2); color: var(--sn-contrast);
	border: 1px solid var(--sn-line-strong); border-radius: 12px;
	padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.4;
}
.sn-prose textarea { min-height: 140px; resize: vertical; }
.sn-prose :is(input, textarea)::placeholder { color: var(--sn-subtle); opacity: 1; }
.sn-prose :is(input, textarea, select):focus-visible { outline: 2px solid var(--sn-accent); outline-offset: 1px; }
.sn-prose :is(input[type=submit], button[type=submit]) {
	background: var(--sn-accent); color: #111315; border: 0; border-radius: 999px;
	padding: 14px 24px; min-height: 50px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
	transition: background-color .2s ease;
}
.sn-prose :is(input[type=submit], button[type=submit]):hover { background: var(--sn-contrast); }
.sn-prose .wpcf7 form p { margin: 0 0 14px; }
.sn-prose .wpcf7 form label { display: block; font-size: 15px; color: var(--sn-muted); }

/* ---------- Sections that ease in (added by the script, only below the first screen) ---------- */
.sn-reveal { transition: opacity .8s ease, transform .8s ease; }
.sn-reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* ---------- Stacked hero (tablets and phones) ---------- */
@media (max-width: 1000px) {
	.sn-hero-media { max-width: 380px; }
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
	.sn-hero-media { max-width: 300px; }
	.sn-hero-media::before { inset: -20px -28px; }
	:root { --sn-gutter: 20px; }
	.sn-section { padding-block: 64px; }
	.sn-section.sn-hero { padding-block: 24px 72px; }
	.sn-section.sn-contact { padding-block: 80px; }
	.sn-navlinks { display: none !important; }
	.sn-case-feature, .sn-note { padding: 28px 22px; }
	.sn-card { padding: 26px 22px; }
	.sn-stat { padding-right: 14px; margin-right: 14px !important; }
	.sn-stat-value { font-size: 26px; }
	.sn-stat-label { font-size: 13px; }
	.sn-step-note { display: none; }
	.sn-line { left: -28px; top: -20px; width: calc(100% + 56px); height: calc(100% + 40px); }
	.sn-band { padding-block: 18px; }
	.sn-band-item { font-size: 20px; gap: 20px; padding-left: 20px; }
	.sn-chip { font-size: 13px; }
	.sn-chip-btn { min-height: 44px; padding: 0 14px; }
	.sn-loop-center { inset: 30%; }
	.sn-loop-active { font-size: 18px; }
	.sn-career-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.sn-career-list::before { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
	.sn-career-list::after { display: none; }
	.sn-row { padding: 0 0 0 44px; }
	.sn-adv-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 18px; }
	.sn-adv-row::after { display: none; }
	.sn-adv-text { color: var(--sn-muted); }
	.sn-contact-form { padding: 22px; }
	.sn-form-grid { grid-template-columns: minmax(0, 1fr); }

	/* Growth Loop on phones: heading, then the loop, then the five stages. */
	body .sn-pov-inner.is-layout-flex { gap: 0 !important; }
	.sn-pov-text { display: contents; }
	body .sn-pov-text > * { flex: 0 0 100%; max-width: 100%; }
	.sn-loop { order: 1; flex: 0 0 100%; margin-top: 40px !important; }
	body .sn-pov-text > .sn-stage-list { order: 2; margin-top: 36px; }
	body .sn-pov-text > .sn-loop-hint { order: 3; }
	.sn-pov.is-interactive .sn-stage {
		padding-left: 14px; border-left: 2px solid transparent;
		transition: background-color .3s ease, border-color .3s ease;
	}
	.sn-pov.is-interactive .sn-stage.is-active {
		border-left-color: var(--sn-accent);
		background: color-mix(in srgb, var(--sn-accent) 7%, transparent);
	}
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.sn-line path { stroke-dashoffset: 0; }
}
