/* Premium refinement: type, space and fine rules. Loads after brand.css. */
:root { --sp-light: #f3f6fc; --sp-border: #d5deee; --sp-header-h: 84px; }
.sp-section { padding-block: clamp(80px, 11vw, 160px); }
.sp-section-title { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.sp-section--tight { padding-block: clamp(48px, 7vw, 96px); }
.sp-page-header { background: #fff; }
.sp-page-header__title { font-weight: 600; }
.sp-btn--ghost { --btn-bd: var(--sp-navy); }
.sp-btn--ghost:hover { box-shadow: none; }
.sp-social a, .sp-menu-toggle { border-radius: 6px; }

/* Hero */
.spx-hero { padding-top: clamp(56px, 8vw, 120px); }
.spx-hero__layout { padding-bottom: clamp(56px, 8vw, 120px); }
.spx-hero .sp-hero__title { font-size: clamp(2.125rem, 1.2rem + 2.6vw, 3.375rem); font-weight: 600; line-height: 1.08; }
.spx-hero__who { padding-left: 16px; border-left: 4px solid var(--sp-blue); }

/* About: a statement, then four facts on a ruled grid */
#about .sp-about__media { display: none; }
#about .sp-about__grid { display: block; }
#about .sp-about__body { display: grid; gap: 0 64px; }
#about .sp-section-head { margin-bottom: 24px; }
#about .sp-highlights { margin-top: clamp(40px, 6vw, 80px); gap: 0; border-top: 2px solid var(--sp-navy); }
#about .sp-highlight { padding: 24px 24px 24px 0; }
#about .sp-highlight__node { display: none; }
#about .sp-highlight__title { font-size: 1.1875rem; }
@media (max-width: 639px) { #about .sp-highlight + .sp-highlight { border-top: 1px solid var(--sp-border); } }
@media (min-width: 960px) {
	#about .sp-about__body { grid-template-columns: 1fr 1fr; }
	#about .sp-highlights { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}

/* Skills: a ledger */
.sp-bento { display: block; border-top: 2px solid var(--sp-navy); }
.sp-bento__card, .sp-bento__card--wide { display: grid; gap: 8px 32px; padding: 26px 0; border: 0; border-bottom: 1px solid var(--sp-border); border-radius: 0; background: none; }
.sp-bento__card:hover { transform: none; box-shadow: none; }
.sp-bento__card::before, .sp-bento__icon { display: none; }
.sp-bento__title { margin: 0; font-size: 1.375rem; }
.sp-bento .sp-tags { gap: 4px 28px; align-items: baseline; }
.sp-bento .sp-tag { padding: 0; border: 0; background: none; font-size: 1.0625rem; font-weight: 400; color: #37445f; }
@media (min-width: 900px) { .sp-bento__card, .sp-bento__card--wide { grid-template-columns: 5fr 7fr; align-items: baseline; } }

/* Services: two ruled columns */
.sp-services.sp-section--dark { --sp-focus: var(--sp-blue); background: #fff; color: var(--sp-navy); }
.sp-services.sp-section--dark h2, .sp-services .sp-service-row__title a { color: var(--sp-navy); }
.sp-services.sp-section--dark .sp-section-intro, .sp-services .sp-service-row__text { color: var(--sp-muted); }
.sp-services .sp-btn--light { --btn-bg: #fff; --btn-fg: var(--sp-navy); --btn-bd: var(--sp-navy); }
.sp-services .sp-services__layout { display: block; }
.sp-services .sp-services__head { position: static; display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 48px; }
.sp-services__head .sp-section-head { margin: 0; }
.sp-services .sp-service-list { display: grid; border-top: 2px solid var(--sp-navy); column-gap: 64px; }
.sp-services .sp-service-row { display: grid; grid-template-columns: minmax(0, 1fr) 32px; padding: 32px 0; border-color: var(--sp-border); }
.sp-services .sp-service-row:hover { background: none; }
.sp-services .sp-service-row:hover .sp-service-row__title a { color: var(--sp-blue-600); }
.sp-services .sp-service-row__num, .sp-services .sp-service-row__icon { display: none; }
.sp-services .sp-service-row__arrow { width: 32px; height: 32px; border: 0; color: var(--sp-blue-600); }
.sp-services .sp-service-row:hover .sp-service-row__arrow { background: none; transform: translate(3px, -3px); }
.sp-services .sp-service-row:focus-within { outline-color: var(--sp-blue); }
@media (min-width: 900px) { .sp-services .sp-service-list { grid-template-columns: 1fr 1fr; } }

/* Career on tint; contact runs straight into the footer */
.sp-experience { background: var(--sp-light); }
.sp-cta-section, .sp-section--light + .sp-cta-section { padding: 0; background: var(--sp-navy); }
.sp-cta { padding: clamp(72px, 10vw, 144px) 0; border-radius: 0; background: none; box-shadow: none; }
.sp-cta__title { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.75rem); font-weight: 600; line-height: 1.02; text-wrap: balance; }
.sp-cta__channels { gap: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.sp-cta__channels li { padding: 18px 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .25); border-radius: 0; background: none; }
.sp-cta__channel-icon { display: none; }
.sp-cta__channel-label { font-family: inherit; font-size: .875rem; }
.sp-footer { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.sp-footer__title { font-family: var(--sp-font-display); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.sp-footer__tagline { display: none; }

/* ==========================================================================
   All pages
   ========================================================================== */
.sp-hero__grid-bg { display: none; }
.sp-field input, .sp-field select, .sp-field textarea, .sp-search__input, .sp-search__btn, .sp-chip-link, .sp-sort, .sp-sort__link, .sp-pagination .page-numbers, .sp-share__btn, .sp-to-top, .sp-prose pre, .sp-prose code, .sp-form__msg { border-radius: 6px; }

/* Home hero: the mark sits on a tint that runs off the right edge */
@media (min-width: 900px) {
	.spx-hero { padding-top: 0; }
	.spx-hero__layout { padding-bottom: 0; min-height: min(640px, calc(100svh - var(--sp-header-h) - 120px)); }
	.spx-hero__copy { padding-block: 72px; }
	.spx-hero__mark { position: relative; align-self: stretch; display: grid; place-items: center; width: 100%; padding-left: 48px; isolation: isolate; }
	.spx-hero__mark::before { content: ""; position: absolute; z-index: -1; inset: 0 -50vw 0 0; background: var(--sp-light); }
	.spx-hero__mark img { mix-blend-mode: multiply; }
}

/* Page opening: navy band, with the logo's three traces on the right */
.sp-page-header { --sp-focus: #fff; padding-block: clamp(56px, 8vw, 112px); border: 0; background: var(--sp-navy); }
.sp-page-header__bg { z-index: 0; }
.sp-page-header__bg::before, .sp-page-header__bg::after, .sp-page-header .sp-container::after { content: ""; position: absolute; height: 4px; background: #4d95ff; transform: skewX(-45deg); transform-origin: right; }
.sp-page-header__bg::before { right: 0; bottom: 96px; width: 22vw; }
.sp-page-header__bg::after { right: 0; bottom: 64px; width: 15vw; }
.sp-page-header .sp-container::after { display: none; }
.sp-page-header__title { color: #fff; max-width: 20ch; font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5rem); line-height: 1.02; text-wrap: balance; }
.sp-page-header__intro { max-width: 54ch; color: var(--sp-on-dark-strong); }
.sp-crumbs ol { font-family: var(--sp-font-body); font-size: .9375rem; }
.sp-crumbs, .sp-crumbs a, .sp-crumbs ol { color: var(--sp-on-dark); }
.sp-crumbs a:hover { color: #fff; }
.sp-crumbs li:not(:last-child)::after { color: var(--sp-on-dark); opacity: 1; }
@media (max-width: 899px) { .sp-page-header { padding-bottom: 88px; } .sp-page-header__bg::before { bottom: 44px; width: 46vw; } .sp-page-header__bg::after { bottom: 24px; width: 30vw; } }
@media (prefers-reduced-motion: no-preference) {
	.sp-page-header__bg::before, .sp-page-header__bg::after { animation: spx-trace .9s var(--sp-ease) both; }
	.sp-page-header__bg::after { animation-delay: .12s; }
	@keyframes spx-trace { from { transform: skewX(-45deg) scaleX(0); } }
}

/* About */
.sp-about-page .sp-portrait { max-width: none; margin: 0; }
.sp-about-page .sp-portrait--brand .sp-portrait__frame { display: none; }
.sp-about-page .sp-portrait--brand .sp-portrait__caption { margin: 0; padding: 0 0 0 20px; border: 0; border-left: 4px solid var(--sp-blue); border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sp-portrait__name { font-size: 1.5rem; }
.sp-portrait__meta { display: grid; font-size: 1rem; }
.sp-portrait__meta .sp-icon { display: none; }
.sp-about__actions { margin-inline: 0; justify-items: start; }
.sp-about-page .sp-prose--lead > p:first-child { font-family: var(--sp-font-display); font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
.sp-about-page .sp-prose--lead > p + p { color: var(--sp-muted); }
.sp-philosophy { margin-top: 48px; padding: 32px 0 0; border: 0; border-top: 2px solid var(--sp-navy); border-radius: 0; background: none; }
.sp-highlights--grid { gap: 0; border-top: 2px solid var(--sp-navy); }
.sp-highlights--grid .sp-highlight { padding: 28px 32px 28px 0; border: 0; border-bottom: 1px solid var(--sp-border); border-radius: 0; background: none; }
.sp-highlights--grid .sp-highlight__node, .sp-highlights--grid .sp-highlight::before { display: none; }
.sp-highlights--grid .sp-highlight__title { font-size: 1.375rem; }
.sp-highlights--grid .sp-highlight__text { font-size: 1.0625rem; }
.sp-about-page + .sp-section--light { background: #fff; padding-top: clamp(16px, 3vw, 48px); }

/* Career: dates in their own column once there is room */
.spx-career > li { padding-bottom: 56px; }
.spx-career h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 600; }
.spx-career__dates { padding-top: 2px; }
@media (min-width: 900px) { .sp-section--tight .spx-career > li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; } }
.sp-container--mid { max-width: calc(var(--sp-wrap) + 2 * var(--sp-gutter)); }
.spx-study { border-top: 2px solid var(--sp-navy); }
.spx-study h3 { font-size: 1.5rem; margin-bottom: 20px; }

/* Contact */
.sp-contact__list { gap: 0; margin-top: 0; border-top: 2px solid var(--sp-navy); }
.sp-contact__list li { padding: 22px 0; border: 0; border-bottom: 1px solid var(--sp-border); border-radius: 0; font-size: 1.125rem; }
.sp-contact__icon { display: none; }
.sp-contact__label { margin-bottom: 2px; font-family: inherit; font-size: .9375rem; }
.sp-contact__form { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.sp-contact__form-title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; }
.sp-form, .sp-form__row { gap: 28px; }
.sp-field label { font-size: 1rem; }
.sp-field input, .sp-field textarea { min-height: 56px; border: 1px solid #75829b; }
.sp-field textarea { min-height: 200px; }
.sp-field input:focus, .sp-field textarea:focus, .sp-search__input:focus { border-color: var(--sp-blue-600); box-shadow: 0 0 0 3px rgba(7, 87, 214, .25); }
.sp-form__privacy, .sp-form__required { font-size: .9375rem; }
.sp-form__submit { min-height: 56px; padding-inline: 32px; }

/* Lists: search results, articles, projects, services */
.sp-results { gap: 0; border-top: 2px solid var(--sp-navy); }
.sp-result { padding: 28px 0; border: 0; border-bottom: 1px solid var(--sp-border); border-radius: 0; }
.sp-result:hover { box-shadow: none; }
.sp-result:hover .sp-result__title { color: var(--sp-blue-600); }
.sp-result__title { font-size: 1.625rem; }
.sp-result__type, .sp-post-card__cat, .sp-project__cat, .sp-sort__label, .sp-article__meta, .sp-case__facts dt, .sp-author-box__label, .sp-postnav__label { font-family: inherit; font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.sp-empty { justify-items: start; padding: 48px 0; border: 0; border-top: 2px solid var(--sp-navy); border-radius: 0; text-align: left; }
.sp-empty__icon { display: none; }
.sp-empty__title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; }
*:has(> .sp-empty) > .sp-toolbar:not(:has(.sp-search)), *:has(> * > .sp-empty) > .sp-toolbar:not(:has(.sp-search)) { display: none; }
.sp-search__input { min-height: 52px; border: 1px solid #75829b; }
.sp-search__btn { top: 4px; height: 44px; width: 44px; }
.sp-service-card, .sp-case__card, .sp-postnav a, .sp-author-box { border-radius: 0; border: 0; border-top: 2px solid var(--sp-navy); background: none; box-shadow: none; padding-inline: 0; }
.sp-service-card__icon { display: none; }
.sp-project__media, .sp-case__cover, .sp-article__cover img { border-radius: 4px; box-shadow: none; }

/* Articles and 404 */
.sp-article__header { --sp-focus: #fff; background: var(--sp-navy); }
.sp-article__title, .sp-article__author { color: #fff; font-weight: 600; }
.sp-article__dek, .sp-article__meta { color: var(--sp-on-dark-strong); }
.sp-404 { --sp-focus: #fff; background: var(--sp-navy); text-align: left; }
.sp-404__inner { justify-items: start; text-align: left; }
.sp-404__code { display: none; }
.sp-404__title { color: #fff; font-size: clamp(2.5rem, 1.5rem + 4.2vw, 5rem); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; }
.sp-404__text { margin-inline: 0; color: var(--sp-on-dark-strong); }
.sp-404__actions { justify-content: flex-start; justify-items: start; }
.sp-404 .sp-btn--primary { --btn-bg: #fff; --btn-fg: var(--sp-navy); }
.sp-404 .sp-btn--primary::before { display: none; }

/* ==========================================================================
   Spacing scale and finish
   --spx-y: above and below every section. --spx-head: heading to content.
   ========================================================================== */
:root { --spx-y: clamp(72px, 8vw, 112px); --spx-head: clamp(32px, 4vw, 56px); --spx-trace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 260' fill='none' stroke='%234d95ff' stroke-width='4'%3E%3Cpath d='M660 40H400L340 100H120M660 120H450L400 170H60M660 200H380L350 230H220'/%3E%3Ccircle cx='108' cy='100' r='11'/%3E%3Ccircle cx='48' cy='170' r='11'/%3E%3Ccircle cx='208' cy='230' r='11'/%3E%3C/svg%3E"); }
.sp-section, .sp-section--tight { padding-block: var(--spx-y); }
.sp-section-head, .sp-section-row, .sp-services .sp-services__head { margin-bottom: var(--spx-head); }
.sp-section-title { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); }
.sp-section-intro { max-width: 56ch; }

/* A section that follows one of the same colour shares its gap */
.sp-about-page + .sp-section--light { padding-top: 0; }
.sp-skills + .sp-experience { background: #fff; }

/* The last row never adds to the section's own padding */
.sp-bento__card:last-child, .sp-results > :last-child, .sp-contact__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sp-empty { padding-block: 32px 0; }
.spx-study p:last-child { margin-bottom: 0; }
.sp-section .sp-link-arrow { margin-top: 0; }
#about .sp-highlight { padding-bottom: 0; }
#about .sp-about__body > p:last-child:has(.sp-link-arrow) { margin-top: 48px; }
@media (max-width: 639px) { #about .sp-highlight { padding-block: 22px; } #about .sp-highlight:last-child { padding-bottom: 0; } #about .sp-about__body > p:last-child:has(.sp-link-arrow) { margin-top: 32px; } }

/* Home hero */
.spx-hero .sp-hero__title { font-size: clamp(2.75rem, 1.2rem + 5.2vw, 5.25rem); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.spx-hero .sp-hero__desc { margin-top: 28px; max-width: 46ch; }
.spx-hero .sp-hero__ctas { margin-top: 40px; }
.spx-hero__who { margin-bottom: 28px; }
@media (max-width: 899px) { .spx-hero { padding-top: 56px; } .spx-hero__layout { padding-bottom: 72px; } }
@media (max-width: 419px) { .sp-hero__ctas .sp-btn { width: 100%; } }

/* Build, Develop, Grow */
.spx-lanes { padding-block: clamp(48px, 5vw, 72px); }
.spx-lane dd { font-size: 1.125rem; }
@media (min-width: 900px) {
	.spx-lane { grid-template-columns: 16px 220px minmax(120px, 1fr) minmax(0, 46%); padding-block: 18px; }
	.spx-lane dt { padding-left: 20px; font-size: 2.125rem; font-weight: 600; }
	.spx-lane dd { font-size: 1.25rem; }
}

/* Page bands */
.sp-page-header { padding-block: clamp(64px, 8vw, 112px); }
.sp-page-header__bg::before { display: none; }
.sp-page-header__bg::after, .sp-404 .sp-page-header__bg::after { inset: auto 0 0 auto; bottom: clamp(24px, 4vw, 56px); width: min(44vw, 600px); height: auto; aspect-ratio: 640 / 260; background: var(--spx-trace) right bottom / contain no-repeat; transform: none; }
.sp-crumbs ol { margin-bottom: 24px; }
.sp-page-header__intro { margin-top: 24px; }
@media (min-width: 1200px) { .sp-page-header__title, .sp-404__title, .sp-page-header__intro, .sp-404__text { max-width: 54%; } .sp-page-header__bg::after, .sp-404 .sp-page-header__bg::after { width: min(38vw, 560px); } }
@media (max-width: 1199px) { .sp-page-header, .sp-404 { padding-bottom: calc(min(27vw, 170px) + 64px); } .sp-page-header__bg::after, .sp-404 .sp-page-header__bg::after { bottom: 24px; width: min(66vw, 420px); } }
@media (prefers-reduced-motion: no-preference) {
	.sp-page-header__bg::after { animation: spx-draw 1.1s var(--sp-ease) both; }
	@keyframes spx-draw { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
}
.sp-404 { padding-top: clamp(72px, 10vw, 144px); }

/* Ledger and career text */
.sp-bento__title { font-size: 1.5rem; font-weight: 600; }
.sp-bento .sp-tag { font-size: 1.125rem; }
.spx-career p { font-size: 1.0625rem; }
.spx-career__org { margin: 6px 0 12px; }
.spx-career > li::before { box-sizing: border-box; }
.sp-experience .spx-career > li { padding-bottom: 48px; }
.spx-career > li:last-child, .sp-experience .spx-career > li:last-child { padding-bottom: 0; }
.spx-study { margin-top: 72px; padding-top: 40px; gap: 48px; }
.spx-study p { margin-bottom: 20px; }
#about .sp-highlight__title { font-size: 1.375rem; font-weight: 600; }
#about .sp-highlight__text { font-size: 1.0625rem; margin-top: 10px; }
@media (min-width: 640px) and (max-width: 959px) { #about .sp-highlights { row-gap: 32px; } }

/* About and contact */
.sp-about__grid { gap: clamp(48px, 6vw, 96px); }
.sp-philosophy__text { font-size: 1.1875rem; }
.sp-highlights--grid .sp-highlight:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 639px) { .sp-highlights--grid .sp-highlight:nth-last-child(2) { border-bottom: 1px solid var(--sp-border); padding-bottom: 28px; } }
.sp-contact { gap: 72px; }
.sp-contact__social { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--sp-border); }
@media (min-width: 960px) { .sp-contact { gap: 96px; } .sp-contact__info { position: sticky; top: calc(var(--sp-header-h) + 32px); } .admin-bar .sp-contact__info { top: calc(var(--sp-header-h) + 64px); } }

/* Closing band and footer */
.sp-cta-section, .sp-section--light + .sp-cta-section { padding-block: 0; }
.sp-cta { padding-block: var(--spx-y); }
.sp-cta__title { margin-top: 0; }
.sp-pill + .sp-cta__title { margin-top: 18px; }
.sp-cta__text { margin-top: 20px; font-size: 1.125rem; }
.sp-footer { padding-top: 72px; }
.sp-footer__logo-img { width: 190px; aspect-ratio: 272 / 166; }
.sp-footer__bottom { margin-top: 64px; }
@media (min-width: 1024px) { .sp-footer__grid { grid-template-columns: 5fr 3fr 4fr; } }
