/* Sid's Portfolio — direction A "Bench". Sections are core blocks with sp-* classes. */

.sp-section, .sp-dialog, body.sp-page {
	--sp-bg: #141517;
	--sp-bg-alt: #18191c;
	--sp-panel: #1b1c1f;
	--sp-line: #2a2b2e;
	--sp-line-strong: #3a3b3f;
	--sp-text: #ece9e2;
	--sp-dim: #b9b6ae;
	--sp-faint: #8f8d85;
	--sp-accent: #e8b04a;
	--sp-accent-line: #4a4030;
	--sp-radius: 18px;
	--sp-wrap: 1240px;
	--sp-gutter: clamp(16px, 4vw, 32px);
	--sp-font-display: 'Space Grotesk', system-ui, sans-serif;
	--sp-font-body: 'IBM Plex Sans', system-ui, sans-serif;
	--sp-font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

body.sp-page { background: var(--sp-bg); color: var(--sp-text); margin: 0; }
body.sp-page .wp-site-blocks { padding: 0; }
body.sp-page .sp-main, body.sp-page .sp-main > .wp-block-post-content { margin: 0; padding: 0; max-width: none; }
body.sp-page .sp-main > .wp-block-post-content > * { margin-block: 0; }

.sp-skip { position: absolute; left: -9999px; top: 8px; z-index: 100002; background: #ece9e2; color: #141517; padding: 10px 14px; border-radius: 6px; }
.sp-skip:focus { left: 8px; }

/* ---------- section basics ---------- */
.sp-section {
	background: var(--sp-bg);
	color: var(--sp-text);
	font-family: var(--sp-font-body);
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
	box-sizing: border-box;
}
.sp-section *, .sp-section *::before, .sp-section *::after { box-sizing: border-box; }
.sp-section a { color: var(--sp-text); text-decoration-color: var(--sp-line-strong); text-underline-offset: 3px; }
.sp-section a:hover { color: var(--sp-accent); text-decoration-color: var(--sp-accent); }
.sp-section a:focus-visible, .sp-section button:focus-visible, .sp-dialog a:focus-visible, .sp-dialog button:focus-visible, .sp-carousel__track:focus-visible {
	outline: 2px solid var(--sp-accent);
	outline-offset: 3px;
	border-radius: 6px;
}
.sp-section p, .sp-section h1, .sp-section h2, .sp-section h3 { margin: 0; }
.sp-wrap { max-width: var(--sp-wrap); margin-inline: auto !important; padding-inline: var(--sp-gutter); width: 100%; }

.sp-section h1, .sp-section h2, .sp-section h3, .sp-dialog h2 {
	font-family: var(--sp-font-display);
	font-weight: 500;
	color: var(--sp-text);
	letter-spacing: -0.01em;
	text-transform: none;
}
.sp-h1 { font-size: clamp(40px, 6vw, 66px) !important; line-height: 1.02 !important; letter-spacing: -0.02em !important; }
.sp-h2 { font-size: clamp(30px, 4vw, 40px) !important; line-height: 1.1 !important; }
.sp-h3 { font-size: 21px !important; line-height: 1.25 !important; }
.sp-kicker, .sp-label {
	font-family: var(--sp-font-mono);
	font-size: 13px !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sp-accent);
}
.sp-label { color: var(--sp-faint); font-size: 12px !important; letter-spacing: 0.06em; }
.sp-lede { font-size: 19px !important; line-height: 1.6; color: var(--sp-dim); max-width: 36em; }
.sp-section-lede { font-size: 17px; color: var(--sp-dim); max-width: 40em; }

/* ---------- top bar ---------- */
.sp-topbar { border-bottom: 1px solid var(--sp-line); }
.sp-topbar__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 22px; }
.sp-topbar__inner > * { margin: 0 !important; }
.sp-topbar__brand { display: flex; align-items: center; gap: 12px; margin: 0 !important; }
.sp-topbar__brand > * { margin: 0 !important; }
.sp-avatar { margin: 0 !important; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; overflow: hidden; border: 1px solid var(--sp-line-strong); }
.sp-avatar img { width: 40px !important; height: 40px !important; object-fit: cover; display: block; }
.sp-topbar__name { font-family: var(--sp-font-display); font-weight: 600; font-size: 18px; }
.sp-topbar__name a { text-decoration: none; }
.sp-topbar__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--sp-font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.sp-topbar__nav a { color: var(--sp-dim); text-decoration: none; padding-block: 10px; }

/* ---------- hero ---------- */
.sp-hero__cols { display: flex !important; flex-wrap: wrap !important; gap: 48px !important; align-items: center !important; padding-block: clamp(48px, 8vw, 80px) clamp(40px, 6vw, 56px); margin-block: 0 !important; }
.sp-hero__text { flex: 1 1 460px !important; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.sp-hero__text > * { margin: 0 !important; }
.sp-hero__media { flex: 1 1 400px !important; min-width: 0; }
.sp-hero__img { margin: 0 !important; border-radius: 20px; overflow: hidden; border: 1px solid var(--sp-line); background: #0e0e12; }
.sp-hero__img img { width: 100%; height: auto; display: block; }

.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px !important; }
.sp-actions .wp-block-button { margin: 0; }
.sp-actions .wp-block-button__link {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
	border-radius: 8px; font-family: var(--sp-font-body); font-size: 16px; font-weight: 500;
	text-decoration: none; line-height: 1.2; box-shadow: none;
}
.sp-btn-primary .wp-block-button__link { background: var(--sp-text); color: var(--sp-bg); border: 1px solid var(--sp-text); }
.sp-btn-primary .wp-block-button__link:hover { background: var(--sp-accent); border-color: var(--sp-accent); color: var(--sp-bg); }
.sp-btn-ghost .wp-block-button__link { background: transparent; color: var(--sp-text); border: 1px solid var(--sp-line-strong); }
.sp-btn-ghost .wp-block-button__link:hover { border-color: var(--sp-accent); color: var(--sp-accent); }

/* ---------- at a glance ---------- */
.sp-glance { padding-bottom: 56px; }
.sp-glance__cols {
	display: flex !important; flex-wrap: wrap !important; gap: 1px !important;
	background: var(--sp-line); border: 1px solid var(--sp-line); border-radius: 14px; overflow: hidden;
	padding: 0 !important; max-width: calc(var(--sp-wrap) - 2 * 32px); width: calc(100% - 2 * var(--sp-gutter)); margin: 0 auto !important;
}
.sp-glance__item { flex: 1 1 260px !important; background: var(--sp-bg-alt); padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; margin: 0 !important; }
.sp-glance__item > * { margin: 0 !important; }
.sp-glance__value { font-size: 16px; }

/* ---------- project grid ---------- */
.sp-projects { padding-block: 32px 80px; }
.sp-projects__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.sp-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip {
	min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
	font-family: var(--sp-font-mono); font-size: 13px; line-height: 1;
	border: 1px solid var(--sp-line-strong); background: transparent; color: var(--sp-text);
}
.sp-chip:hover { border-color: var(--sp-accent); }
.sp-chip[aria-pressed="true"] { background: var(--sp-text); border-color: var(--sp-text); color: var(--sp-bg); }

.sp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.sp-card { margin: 0; min-width: 0; }
.sp-card.is-featured { grid-column: span 2; }
@media (max-width: 760px) { .sp-card.is-featured { grid-column: auto; } }
.sp-card[hidden] { display: none; }
.sp-card__link {
	display: flex; flex-direction: column; height: 100%;
	text-decoration: none !important; color: var(--sp-text) !important;
	background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); overflow: hidden;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sp-card__link:hover { transform: translateY(-3px); border-color: #45464a; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.sp-card__media { display: block; aspect-ratio: 4 / 3; background: #0e0e12; overflow: hidden; }
.sp-card.is-featured .sp-card__media { aspect-ratio: 16 / 9; }
.sp-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sp-card__link:hover .sp-card__img { transform: scale(1.03); }
.sp-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 22px; }
.sp-card__meta { font-family: var(--sp-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--sp-faint); }
.sp-card__title { font-family: var(--sp-font-display); font-size: 22px; font-weight: 500; line-height: 1.2; }
.sp-card__summary { font-size: 15px; line-height: 1.55; color: var(--sp-dim); }
.sp-card__note {
	align-self: flex-start; margin-top: 4px; padding: 4px 9px; border-radius: 4px;
	font-family: var(--sp-font-mono); font-size: 12px; line-height: 1.45; color: var(--sp-accent); border: 1px solid var(--sp-accent-line);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-card__note strong { font-weight: 500; }
.sp-empty { color: var(--sp-dim); }
@media (prefers-reduced-motion: reduce) { .sp-card__link, .sp-card__img { transition: none; } .sp-card__link:hover { transform: none; } .sp-card__link:hover .sp-card__img { transform: none; } }

/* ---------- services ---------- */
.sp-services { background: var(--sp-bg-alt); border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-services > .sp-wrap { padding-block: clamp(56px, 8vw, 80px); display: flex; flex-direction: column; gap: 14px; }
.sp-services > .sp-wrap > * { margin: 0 !important; }
.sp-services__cols { display: flex !important; flex-wrap: wrap !important; gap: 28px !important; margin-top: 22px !important; }
.sp-service { flex: 1 1 280px !important; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--sp-accent); }
.sp-service > * { margin: 0 !important; }
.sp-service p { font-size: 15px; color: var(--sp-dim); }
.sp-services__secondary { margin-top: 26px !important; font-size: 15px !important; }
.sp-services__secondary strong { color: var(--sp-text); font-weight: 500; }
.sp-services__cta { margin-top: 18px !important; font-family: var(--sp-font-mono); font-size: 14px; }

/* ---------- experience & publications ---------- */
.sp-experience__cols { display: flex !important; flex-wrap: wrap !important; gap: 56px !important; padding-block: clamp(56px, 8vw, 80px); margin-block: 0 !important; }
.sp-experience__cols > .wp-block-column { flex: 1 1 380px !important; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sp-experience__cols > .wp-block-column:first-child { flex-grow: 1.4 !important; }
.sp-experience__cols > .wp-block-column > * { margin: 0 !important; }
.sp-rows { display: flex; flex-direction: column; }
.sp-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--sp-line); margin: 0 !important; }
.sp-row > * { margin: 0 !important; }
.sp-row__what { font-size: 16px; color: var(--sp-dim); }
.sp-row__what strong { color: var(--sp-text); font-weight: 500; }
.sp-row__when { font-family: var(--sp-font-mono); font-size: 13px; color: var(--sp-faint); }
.sp-pub { font-size: 15px; line-height: 1.55; color: var(--sp-dim); }
.sp-pub strong { color: var(--sp-text); font-weight: 500; }

/* ---------- contact ---------- */
.sp-contact { border-top: 1px solid var(--sp-line); }
.sp-contact__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding-block: 52px 60px; }
.sp-contact__inner > * { margin: 0 !important; }
.sp-contact__line { font-family: var(--sp-font-display); font-size: clamp(22px, 3vw, 28px); }
.sp-contact__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--sp-font-mono); font-size: 14px; }
.sp-contact__links a { padding-block: 10px; }

/* ---------- detail overlay ---------- */
.sp-dialog {
	position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0; background: var(--sp-bg); color: var(--sp-text);
	font-family: var(--sp-font-body); font-size: 16px; line-height: 1.6;
	overflow: hidden;
}
.sp-dialog::backdrop { background: rgba(8, 8, 9, .7); }
.sp-dialog[open] { display: flex; flex-direction: column; animation: sp-in .22s ease-out; }
@keyframes sp-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sp-dialog[open] { animation: none; } }
.sp-dialog__bar { flex: 0 0 auto; display: flex; justify-content: flex-end; padding: 14px var(--sp-gutter); border-bottom: 1px solid var(--sp-line); }
.sp-dialog__close {
	min-height: 44px; padding: 0 16px; border-radius: 8px; cursor: pointer;
	background: transparent; border: 1px solid var(--sp-line-strong); color: var(--sp-text);
	font-family: var(--sp-font-mono); font-size: 13px;
}
.sp-dialog__close:hover { border-color: var(--sp-accent); color: var(--sp-accent); }
.sp-dialog__body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sp-dialog a { color: var(--sp-text); text-underline-offset: 3px; }
.sp-dialog a:hover { color: var(--sp-accent); }

.sp-detail { max-width: 1320px; margin: 0 auto; padding: 28px var(--sp-gutter) 64px; }
.sp-detail__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.sp-detail__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--sp-font-mono); font-size: 13px; color: var(--sp-faint); text-transform: uppercase; letter-spacing: .04em; }
.sp-tag { border: 1px solid var(--sp-line-strong); border-radius: 4px; padding: 1px 7px; color: var(--sp-dim); }
.sp-detail__title { margin: 0; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; outline: none; }

.sp-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--sp-line); margin-top: 10px; }
.sp-tab {
	background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
	min-height: 44px; padding: 0 2px; color: var(--sp-dim);
	font-family: var(--sp-font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em;
}
.sp-tab:hover { color: var(--sp-text); }
.sp-tab[aria-selected="true"] { color: var(--sp-text); border-bottom-color: var(--sp-accent); }

.sp-detail__layout { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.sp-detail__media { flex: 999 1 560px; min-width: 0; }
.sp-detail__text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1000px) { .sp-detail__text { position: sticky; top: 0; } }
.sp-detail__lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--sp-text); }
.sp-detail__body { color: var(--sp-dim); }
.sp-detail__body p { margin: 0 0 .9em; }
.sp-detail__body p:last-child { margin-bottom: 0; }
.sp-detail__body strong { color: var(--sp-text); font-weight: 500; }
.sp-note { border: 1px solid var(--sp-accent-line); border-left-width: 1px; border-radius: 10px; padding: 14px 16px; background: rgba(232, 176, 74, .06); }
.sp-note > strong { display: block; font-family: var(--sp-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-accent); font-weight: 500; margin-bottom: 4px; }
.sp-note p { margin: 0; color: var(--sp-text); }
.sp-facts { margin: 0; display: grid; gap: 4px; }
.sp-facts dt { font-family: var(--sp-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-faint); margin-top: 8px; }
.sp-facts dd { margin: 0; color: var(--sp-dim); }
.sp-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--sp-line-strong); border-radius: 8px; text-decoration: none; font-size: 14px; }

/* carousel */
.sp-carousel { position: relative; }
.sp-carousel__track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; gap: 0; border-radius: 14px;
}
.sp-carousel__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .sp-carousel__track { scroll-behavior: auto; } }
.sp-slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; min-width: 0; display: flex; flex-direction: column; }
.sp-slide__media { background: #0e0e12; border: 1px solid var(--sp-line); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sp-slide__media img, .sp-slide__media video { width: 100%; height: auto; max-height: 62vh; object-fit: contain; display: block; }
.sp-carousel.is-compact .sp-slide__media img, .sp-carousel.is-compact .sp-slide__media video { max-height: 34vh; }
.sp-slide__caption { padding: 12px 2px 0; font-size: 15px; color: var(--sp-dim); }
.sp-slide__caption strong { display: block; color: var(--sp-text); font-weight: 500; margin-bottom: 2px; }
.sp-slide__caption p { margin: 0 0 .5em; }
.sp-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.sp-carousel__btn {
	width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
	border: 1px solid var(--sp-line-strong); background: var(--sp-panel); color: var(--sp-text);
	font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.sp-carousel__btn:hover { border-color: var(--sp-accent); color: var(--sp-accent); }
.sp-carousel__btn:disabled { opacity: .35; cursor: default; border-color: var(--sp-line-strong); color: var(--sp-text); }
.sp-carousel__count { font-family: var(--sp-font-mono); font-size: 13px; color: var(--sp-faint); min-width: 64px; text-align: center; }

.sp-cad { margin-top: 18px; }
.sp-cad__toggle {
	min-height: 44px; padding: 0 16px; border-radius: 8px; cursor: pointer;
	background: transparent; border: 1px dashed var(--sp-line-strong); color: var(--sp-dim);
	font-family: var(--sp-font-mono); font-size: 13px;
}
.sp-cad__toggle:hover, .sp-cad__toggle[aria-expanded="true"] { color: var(--sp-text); border-color: var(--sp-accent); }
.sp-cad__panel { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--sp-line); }
.sp-cad__label { margin: 0 0 10px; font-family: var(--sp-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-faint); }

html.sp-dialog-open { overflow: hidden; }

/* ---------- editor ---------- */
.sp-editor-note { font: 12px/1.4 system-ui, sans-serif; opacity: .7; margin: 0 0 8px; padding: 8px 12px; border: 1px dashed currentColor; border-radius: 6px; }

/* ---------- v2.1: role tags, AI badge, more list, rethink ---------- */
.sp-credit {
	display: inline-block; align-self: flex-start; padding: 2px 8px; border-radius: 999px;
	font-family: var(--sp-font-mono); font-size: 11px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase;
	color: var(--sp-text); border: 1px solid var(--sp-line-strong); background: rgba(255, 255, 255, .03); white-space: nowrap; vertical-align: middle;
}
.sp-card__media, .sp-slide__media { position: relative; }
.sp-ai-badge {
	position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 3px 8px; border-radius: 4px;
	font-family: var(--sp-font-mono); font-size: 11px; line-height: 1.4; letter-spacing: .03em;
	color: #ece9e2; background: rgba(14, 14, 18, .78); border: 1px solid rgba(255, 255, 255, .14); pointer-events: none;
}
.sp-more { margin-top: 48px; }
.sp-more[hidden] { display: none; }
.sp-more__title { margin-bottom: 8px !important; }
.sp-more__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sp-line); }
.sp-more__item { margin: 0; border-bottom: 1px solid var(--sp-line); }
.sp-more__item[hidden] { display: none; }
.sp-more__link {
	display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); grid-template-areas: "name summary" "meta summary";
	gap: 4px 32px; align-items: start; padding: 14px 4px; text-decoration: none !important; color: var(--sp-text) !important;
}
.sp-more__link:hover .sp-more__name { color: var(--sp-accent); }
.sp-more__name { grid-area: name; font-family: var(--sp-font-display); font-size: 18px; font-weight: 500; line-height: 1.3; }
.sp-more__name .sp-credit { margin-left: 6px; }
.sp-more__summary { grid-area: summary; font-size: 15px; color: var(--sp-dim); line-height: 1.5; }
.sp-more__meta { grid-area: meta; font-family: var(--sp-font-mono); font-size: 11px; color: var(--sp-faint); text-transform: uppercase; letter-spacing: .04em; line-height: 1.5; }
@media (max-width: 860px) {
	.sp-more__link { grid-template-columns: 1fr; grid-template-areas: "name" "summary" "meta"; }
}
.sp-note--rethink { border-color: var(--sp-line-strong); background: rgba(255, 255, 255, .03); }
.sp-note--rethink > strong { color: var(--sp-dim); }

/* ---------- contact form ---------- */
.sp-form-wrap { width: 100%; max-width: 760px; }
.sp-form__intro { color: var(--sp-dim); margin: 0 0 14px !important; }
.sp-form { display: flex; flex-direction: column; gap: 16px; }
.sp-form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.sp-form__row > .sp-form__field { flex: 1 1 240px; }
.sp-form__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-form__field > span { font-family: var(--sp-font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--sp-faint); }
.sp-form__field em { font-style: normal; text-transform: none; letter-spacing: 0; }
.sp-form input, .sp-form select, .sp-form textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 8px;
	background: var(--sp-panel); color: var(--sp-text); border: 1px solid var(--sp-line-strong);
	font: 16px/1.5 var(--sp-font-body);
}
.sp-form textarea { min-height: 140px; resize: vertical; }
.sp-form input:focus, .sp-form select:focus, .sp-form textarea:focus { outline: 2px solid var(--sp-accent); outline-offset: 1px; border-color: var(--sp-accent); }
.sp-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sp-form__submit {
	min-height: 48px; padding: 0 24px; border-radius: 8px; cursor: pointer;
	background: var(--sp-text); color: var(--sp-bg); border: 1px solid var(--sp-text); font: 500 16px/1 var(--sp-font-body);
}
.sp-form__submit:hover { background: var(--sp-accent); border-color: var(--sp-accent); }
.sp-form__fine { margin: 0 !important; font-size: 14px; color: var(--sp-faint); max-width: 34em; }
.sp-form__msg { margin: 0 0 16px !important; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--sp-line-strong); }
.sp-form__msg.is-ok { border-color: var(--sp-accent-line); background: rgba(232, 176, 74, .08); }
.sp-form__msg.is-err { border-color: #7a3b3b; background: rgba(200, 80, 80, .08); }

/* ---------- v2.1: hero status, experience notes, skills, work-with-me blocks, contact ---------- */
.sp-status { display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--sp-font-mono); font-size: 12px !important; letter-spacing: .04em; text-transform: uppercase; color: var(--sp-dim); }
.sp-status span { padding: 4px 10px; border: 1px solid var(--sp-line-strong); border-radius: 999px; }
.sp-hero__img figcaption, .sp-hero__img .wp-element-caption {
	margin: 0 !important; padding: 8px 14px; font-family: var(--sp-font-mono); font-size: 11px; letter-spacing: .03em;
	color: var(--sp-faint); text-align: left; border-top: 1px solid var(--sp-line); background: var(--sp-bg-alt);
}

.sp-experience .sp-section-lede { font-size: 16px; }
.sp-row { align-items: baseline; }
.sp-row__note { flex: 1 1 100%; font-size: 14px; line-height: 1.5; color: var(--sp-faint); }
.sp-row__other { font-size: 14px; color: var(--sp-faint); }
.sp-row__other strong { color: var(--sp-dim); font-weight: 500; }

.sp-skills { border-top: 1px solid var(--sp-line); }
.sp-skills > .sp-wrap { padding-block: clamp(48px, 7vw, 72px); display: flex; flex-direction: column; gap: 24px; }
.sp-skills > .sp-wrap > * { margin: 0 !important; }
.sp-skills__cols {
	display: flex !important; flex-wrap: wrap !important; gap: 1px !important; margin: 0 !important;
	background: var(--sp-line); border: 1px solid var(--sp-line); border-radius: 14px; overflow: hidden;
}
.sp-skills__item { flex: 1 1 260px !important; background: var(--sp-bg-alt); padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; margin: 0 !important; }
.sp-skills__item > * { margin: 0 !important; }
.sp-skills__item .sp-glance__value { font-size: 15px; line-height: 1.6; color: var(--sp-dim); }

.sp-sub { margin-top: 8px !important; margin-bottom: 4px !important; }
.sp-h4 { font-size: 19px !important; line-height: 1.3 !important; font-family: var(--sp-font-display); font-weight: 500; }
.sp-services__split { display: flex !important; flex-wrap: wrap !important; gap: 28px 56px !important; margin: 40px 0 0 !important; }
.sp-services__split > .wp-block-column { flex: 1 1 340px !important; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-services__split > .wp-block-column > * { margin: 0 !important; }
.sp-services__para { font-size: 15px; color: var(--sp-dim); max-width: 38em; }
.sp-services__para strong { color: var(--sp-text); font-weight: 500; }
.sp-bullets, .sp-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--sp-dim); }
.sp-bullets li { position: relative; padding-left: 20px; }
.sp-bullets li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 1px; background: var(--sp-accent); }
.sp-steps { counter-reset: sp-step; }
.sp-steps li { position: relative; padding-left: 40px; counter-increment: sp-step; min-height: 28px; }
.sp-steps li::before {
	content: counter(sp-step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
	border: 1px solid var(--sp-accent-line); color: var(--sp-accent); font: 500 12px/24px var(--sp-font-mono); text-align: center;
}
.sp-bullets strong, .sp-steps strong { color: var(--sp-text); font-weight: 500; }
.sp-services > .sp-wrap > .sp-sub { margin-top: 40px !important; }
.sp-cases { display: flex !important; flex-wrap: wrap !important; gap: 20px !important; margin: 8px 0 0 !important; }
.sp-case { flex: 1 1 280px !important; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: var(--sp-panel); border: 1px solid var(--sp-line); border-radius: 14px; }
.sp-case > * { margin: 0 !important; }
.sp-case p { font-size: 15px; color: var(--sp-dim); }
.sp-case .sp-case__link { margin-top: auto !important; font-family: var(--sp-font-mono); font-size: 13px; }
.sp-services__actions { margin-top: 32px !important; }

.sp-contact__cols { display: flex !important; flex-wrap: wrap !important; gap: 40px 64px !important; padding-block: clamp(56px, 8vw, 80px); margin-block: 0 !important; }
.sp-contact__main { flex: 2 1 480px !important; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sp-contact__aside { flex: 1 1 240px !important; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.sp-contact__main > *, .sp-contact__aside > * { margin: 0 !important; }
.sp-contact__aside .sp-contact__links { flex-direction: column; gap: 2px; }
.sp-contact__where { font-size: 14px; color: var(--sp-faint); }

/* ---------- v2.2: calmer page — fewer boxes, more air ---------- */
.sp-section { --sp-air: clamp(64px, 9vw, 112px); }

/* hero */
.sp-hero__cols { padding-block: clamp(48px, 8vw, 88px) clamp(40px, 6vw, 64px); }
.sp-hero__text { gap: 20px; }
.sp-status { gap: 4px 0; text-transform: none; letter-spacing: .01em; font-size: 13px !important; color: var(--sp-faint); }
.sp-status span { padding: 0; border: 0; border-radius: 0; }
.sp-status span:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--sp-line-strong); }
.sp-hero__media { flex: 0 1 440px !important; }
.sp-hero__img img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; max-height: 640px; }
.sp-hero__img figcaption, .sp-hero__img .wp-element-caption { border-top: 0; background: transparent; padding: 10px 2px 0; font-size: 12px; }
.sp-hero__img { border: 0; background: transparent; border-radius: 0; overflow: visible; }
.sp-hero__img img { border-radius: 16px; border: 1px solid var(--sp-line); }

/* at a glance: a quiet row instead of a boxed panel */
.sp-glance { padding-bottom: 24px; }
.sp-glance__cols { background: transparent; border: 0; border-top: 1px solid var(--sp-line); border-radius: 0; gap: 0 32px !important; overflow: visible; }
.sp-glance__item { background: transparent; padding: 20px 0 0; flex: 1 1 220px !important; }
.sp-glance__value { font-size: 15px; color: var(--sp-dim); }

/* projects */
.sp-projects { padding-block: var(--sp-air) 0; }
.sp-projects__head { margin-bottom: 32px; }
.sp-chip { min-height: 40px; padding: 0 14px; font-size: 12px; color: var(--sp-dim); }
.sp-grid { gap: 28px; }
.sp-card__body { gap: 10px; padding: 20px 22px 24px; }
.sp-card__meta { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-card__summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sp-card__link .sp-credit { font-size: 10px; color: var(--sp-dim); }
.sp-ai-badge { left: 8px; bottom: 8px; padding: 2px 6px; font-size: 10px; color: var(--sp-dim); background: rgba(14, 14, 18, .66); border-color: rgba(255, 255, 255, .08); }
.sp-slide__media .sp-ai-badge { font-size: 11px; }

/* more projects: collapsed behind one button */
.sp-more { margin-top: 48px; }
.sp-more__toggle {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 14px;
	width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 auto; min-height: 60px; padding: 0 36px;
	border: 1px solid var(--sp-accent); border-radius: 999px; background: rgba(232, 176, 74, .08);
	font-family: var(--sp-font-display); font-size: 18px; font-weight: 500; color: var(--sp-text);
	transition: background-color .15s ease, color .15s ease;
}
.sp-more__toggle::-webkit-details-marker { display: none; }
.sp-more__toggle::marker { content: ""; }
.sp-more__toggle::after { content: "+"; color: var(--sp-accent); font-size: 24px; font-weight: 400; line-height: 1; transition: color .15s ease; }
.sp-more[open] > .sp-more__toggle::after { content: "−"; }
.sp-more__toggle:hover { background: var(--sp-accent); color: var(--sp-bg); }
.sp-more__toggle:hover::after { color: var(--sp-bg); }
.sp-more__toggle:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: 4px; }
@media (max-width: 600px) { .sp-more__toggle { width: 100%; padding: 0 20px; font-size: 17px; } }
.sp-more__hide, .sp-more[open] .sp-more__show { display: none; }
.sp-more[open] .sp-more__hide { display: inline; }
.sp-more[open] .sp-more__list { margin-top: 28px; }
.sp-more__grid { margin-top: 32px; }
.sp-more__grid .sp-card__meta { white-space: normal; line-height: 1.5; }
.sp-more__name { font-size: 17px; }
.sp-more__summary { font-size: 14px; }

/* experience + skills */
.sp-experience__cols { padding-block: var(--sp-air); }
.sp-skills { border-top: 0; }
.sp-skills > .sp-wrap { padding-block: 0 var(--sp-air); }
.sp-skills__cols { background: transparent; border: 0; border-radius: 0; gap: 0 32px !important; overflow: visible; }
.sp-skills__item { background: transparent; padding: 18px 0 0; border-top: 1px solid var(--sp-line); flex: 1 1 240px !important; }
.sp-skills__item .sp-glance__value { font-size: 14px; }

/* work with me: scan-friendly */
.sp-services > .sp-wrap { padding-block: var(--sp-air); gap: 16px; }
.sp-services > .sp-wrap > .sp-sub { margin-top: 48px !important; }
.sp-svc { list-style: none; margin: 0 !important; padding: 0; border-top: 1px solid var(--sp-line); }
.sp-svc li { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 4px 32px; padding: 14px 0; border-bottom: 1px solid var(--sp-line); font-size: 15px; color: var(--sp-dim); }
.sp-svc strong { font-family: var(--sp-font-display); font-size: 18px; font-weight: 500; color: var(--sp-text); }
@media (max-width: 760px) { .sp-svc li { grid-template-columns: 1fr; } }

.sp-services > .sp-wrap > .sp-steps--row { margin-top: 4px !important; }
.sp-steps--row { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px !important; margin-top: 8px !important; }
.sp-steps--row li { padding: 40px 0 0; min-height: 0; font-size: 14px; line-height: 1.5; }
.sp-steps--row li::before { top: 0; }
.sp-steps--row strong { display: block; margin-bottom: 4px; font-size: 15px; }
@media (max-width: 900px) { .sp-steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sp-steps--row { grid-template-columns: 1fr; gap: 16px !important; } .sp-steps--row li { padding: 0 0 0 40px; } }

.sp-services > .sp-wrap > .sp-services__split { margin-top: 56px !important; gap: 28px 64px !important; }
.sp-cases-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--sp-dim); }
.sp-cases-list strong { color: var(--sp-text); font-weight: 500; }
.sp-cases__when { font-family: var(--sp-font-mono); font-size: 12px; color: var(--sp-faint); margin-right: 4px; }
.sp-cases-list a { font-family: var(--sp-font-mono); font-size: 12px; white-space: nowrap; }

.sp-faq { display: flex; flex-direction: column; border-top: 1px solid var(--sp-line); margin-top: 4px !important; max-width: 52rem; }
.sp-faq > * { margin: 0 !important; }
.sp-faq__item { border-bottom: 1px solid var(--sp-line); }
.sp-faq__item summary {
	cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	min-height: 52px; padding: 12px 0; font-size: 16px; color: var(--sp-text);
}
.sp-faq__item summary::-webkit-details-marker { display: none; }
.sp-faq__item summary::marker { content: ""; }
.sp-faq__item summary::after { content: "+"; font-family: var(--sp-font-mono); color: var(--sp-accent); font-size: 18px; }
.sp-faq__item[open] summary::after { content: "−"; }
.sp-faq__item summary:hover { color: var(--sp-accent); }
.sp-faq__item summary:focus-visible { outline: 2px solid var(--sp-accent); outline-offset: 3px; border-radius: 4px; }
.sp-faq__item p { margin: 0 0 16px !important; font-size: 15px; color: var(--sp-dim); max-width: 44em; }
.sp-services > .sp-wrap > .sp-services__actions { margin-top: 40px !important; }

/* contact */
.sp-contact__cols { padding-block: var(--sp-air); }

/* ---------- v2.2: review fixes ---------- */
/* galleries: every slide in the same stage, so arrows don't jump and videos show a frame */
.sp-slide__media { width: 100%; aspect-ratio: 4 / 3; max-height: 62vh; }
.sp-slide__media img, .sp-slide__media video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.sp-carousel.is-compact .sp-slide__media { max-height: 34vh; }
.sp-carousel.is-compact .sp-slide__media img, .sp-carousel.is-compact .sp-slide__media video { max-height: none; }

/* phone: nav on one row, status items stacked */
@media (max-width: 480px) {
	.sp-topbar__nav { gap: 4px 14px; font-size: 12px; letter-spacing: .03em; }
}
@media (max-width: 600px) {
	.sp-status { flex-direction: column; gap: 2px; }
	.sp-status span:not(:last-child)::after { content: none; }
}

/* contact form: placeholder option */
.sp-form select:invalid { color: var(--sp-faint); }
.sp-form select option { color: var(--sp-text); }
.sp-skills__item { flex: 1 1 170px !important; }
.sp-card__summary { -webkit-line-clamp: 4; }
