@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap");

/* Prototype 05: The Broadsheet.
   An editorial re-imagining after Garriock & Co. The whole personality is an
   oversized LIGHT serif display (Playfair) set against tiny grotesque-sans
   labels (Inter), on bright white with warm-paper accents, organized like the
   contents page of a printed journal: each band introduced by a number on the
   left and a label on the right of a full-width hairline rule. Monochrome by
   discipline; hierarchy comes from scale and weight, not color. Imagery is held
   back and rendered in grayscale so the type stays the focus.

   This file themes only the shared contract classes that render.js emits.
   No invented page types, taxonomies, or content. */

:root {
  --ink: #111110;
  --paper: #ffffff;
  --panel: #edece8;       /* warm grey band */
  --panel-2: #e8e4df;     /* deeper warm panel */
  --rule: #d9d6ce;        /* hairline */
  --rule-strong: #111110; /* the heavy editorial rule */
  --muted: #5f5c55;       /* secondary text; darkened for small-label legibility */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  /* small grotesque label: shared recipe for numbers, meta, nav, captions */
  --label-size: 0.72rem;
  --label-track: 0.14em;
}

/* ---- Reset and base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover,
a:focus { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Shared small-label recipe */
.sspc-nav__link,
.sspc-quicklinks__link,
.sspc-profile__role,
.sspc-section__title,
.sspc-related__link,
.sspc-article-card__meta,
.sspc-article__meta,
.sspc-news__meta,
.sspc-featured__eyebrow,
.sspc-news__all,
.sspc-featured__link,
.sspc-article__back,
.sspc-articles__group-title,
.sspc-notfound__link,
.sspc-contact__item,
.sspc-gallery__cap,
.sspc-lightbox__link,
.sspc-footer__contact p {
  font-family: var(--sans);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  font-size: var(--label-size);
}

/* ---- Content container ---- */
.sspc-main {
  max-width: 66rem;
  margin: 0 auto;
  padding: 3.5rem 1.75rem 4.5rem;
}

.sspc-page { display: block; }

/* ===================================================================
   SHARED HEADER  --  the masthead wordmark
   =================================================================== */
.sspc-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 1.75rem 0;
}

.sspc-header__brand {
  display: block;
  max-width: 66rem;
  margin: 0 auto;
  padding-bottom: 1.4rem;
  color: var(--ink);
}
.sspc-header__brand:hover,
.sspc-header__brand:focus { text-decoration: none; color: var(--ink); }

/* Type-first masthead: the logo mark is suppressed so the wordmark carries it. */
.sspc-header__logo { display: none; }

.sspc-header__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* On the home page the wordmark becomes the full broadsheet masthead. */
body[data-page="home"] .sspc-header__name {
  font-size: clamp(2.6rem, 10vw, 7.5rem);
}

/* Nav: a thin grotesque index row beneath the wordmark. */
.sspc-nav {
  max-width: 66rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.sspc-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0.7rem 0;
}
.sspc-nav__item { margin: 0; }
.sspc-nav__link {
  font-weight: 500;
  color: var(--muted);
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
}
.sspc-nav__link:hover,
.sspc-nav__link:focus { text-decoration: none; color: var(--ink); }
.sspc-nav__link--active { color: var(--ink); border-bottom-color: var(--ink); }

/* ===================================================================
   PAGE TITLE  --  numbered contents-page heading on inner landings
   =================================================================== */
.sspc-page__title {
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 2rem;
  padding: 2.4rem 0 1.1rem;
  border-bottom: 1px solid var(--rule-strong);
}
/* The leading index number, set small above the serif title. */
.sspc-page__title::before {
  position: absolute;
  top: 0.9rem;
  left: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--muted);
}
body[data-page="attorneys"] .sspc-page__title::before { content: "01 / The People"; }
body[data-page="practices"] .sspc-page__title::before { content: "02 / Practice"; }
body[data-page="industries"] .sspc-page__title::before { content: "03 / Sectors"; }
body[data-page="articles"] .sspc-page__title::before { content: "04 / Writing"; }
body[data-page="contact"] .sspc-page__title::before { content: "05 / Contact"; }

/* ===================================================================
   HOME PAGE
   =================================================================== */
.sspc-hero {
  display: block;
  margin: 0 0 1rem;
  padding: 2.5rem 0 0;
}
/* The header wordmark is the masthead, so the hero leads with the motto as the
   opening statement; its own firm-name title and any media are suppressed for
   Garriock's pure-type opening. */
.sspc-hero__title { display: none; }
.sspc-hero__media { display: none; }
.sspc-hero__body { display: block; }
.sspc-hero__tagline { /* plain-tagline fallback when no philosophy data */
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--ink);
  margin: 0;
}

/* The numbered editorial index applied to each home band. */
.sspc-page--home > section,
.sspc-page--home > nav {
  position: relative;
  border-top: 1px solid var(--rule-strong);
  margin-top: 3rem;
  padding-top: 3.1rem;
}
.sspc-page--home > section::before,
.sspc-page--home > nav::before,
.sspc-page--home > section::after,
.sspc-page--home > nav::after {
  position: absolute;
  top: 0.85rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--label-size);
  letter-spacing: var(--label-track);
  text-transform: uppercase;
  color: var(--muted);
}
.sspc-page--home > section::before,
.sspc-page--home > nav::before { left: 0; }
.sspc-page--home > section::after,
.sspc-page--home > nav::after { right: 0; text-align: right; color: var(--ink); }

/* The hero/masthead opening carries no index rule and sits close under the
   masthead wordmark. Scoped with the parent class so it beats the generic
   `.sspc-page--home > section` border/margin above. */
.sspc-page--home > .sspc-hero { border-top: 0; margin-top: 0; padding-top: 1.1rem; }
.sspc-hero::before,
.sspc-hero::after { content: none; }

.sspc-intro::before { content: "01 /"; }
.sspc-intro::after  { content: "Introduction"; }
.sspc-quicklinks::before { content: "02 /"; }
.sspc-quicklinks::after  { content: "Sections"; }
.sspc-featured::before { content: "03 /"; }
.sspc-featured::after  { content: "Featured"; }
.sspc-news::before { content: "04 /"; }
.sspc-news::after  { content: "Latest"; }
.sspc-gallery::before { content: "05 /"; }
.sspc-gallery::after  { content: "From the firm"; }

/* Intro prose: a large centered editorial statement. */
.sspc-intro { max-width: none; }
.sspc-intro__paragraph {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.4;
  margin: 0 0 1rem;
  max-width: 50rem;
  text-align: justify;
  hyphens: auto;
}

/* Quick links: ruled index rows. */
.sspc-quicklinks__list {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sspc-quicklinks__item { border-bottom: 1px solid var(--rule); }
.sspc-quicklinks__link {
  display: block;
  padding: 1rem 0;
  font-weight: 500;
  color: var(--ink);
}
.sspc-quicklinks__link::after { content: " \2192"; color: var(--muted); }
.sspc-quicklinks__link:hover,
.sspc-quicklinks__link:focus { text-decoration: none; color: var(--muted); padding-left: 0.8rem; }

/* ===================================================================
   FEATURED + LATEST NEWS
   =================================================================== */
.sspc-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 52rem) {
  .sspc-featured { grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
}
.sspc-featured__media { display: block; border: 1px solid var(--rule); background: var(--panel); }
.sspc-featured__diagram { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(1.04); }
.sspc-featured__media--pending {
  display: flex; align-items: center; justify-content: center; min-height: 16rem;
  background: var(--panel); border: 1px dashed var(--rule);
}
.sspc-featured__pending { font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase; font-size: var(--label-size); color: var(--muted); }
.sspc-featured__eyebrow { color: var(--muted); font-weight: 500; margin: 0 0 0.8rem; }
.sspc-featured__sep { color: var(--rule); }
.sspc-featured__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
.sspc-featured__title-link { color: var(--ink); }
.sspc-featured__title-link:hover,
.sspc-featured__title-link:focus { color: var(--muted); text-decoration: none; }
.sspc-featured__date { display: block; font-family: var(--sans); font-size: var(--label-size); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.sspc-featured__summary { font-size: 1.05rem; line-height: 1.7; margin: 0 0 1.3rem; color: var(--ink); }
.sspc-featured__link {
  display: inline-block; color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--ink); padding-bottom: 3px;
}
.sspc-featured__link::after { content: " \2192"; }
.sspc-featured__link:hover,
.sspc-featured__link:focus { text-decoration: none; color: var(--muted); border-color: var(--muted); }

.sspc-news { }
.sspc-news__head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; margin-bottom: 0.5rem;
}
.sspc-news__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.sspc-news__all { color: var(--muted); font-weight: 500; }
.sspc-news__all::after { content: " \2192"; }
.sspc-news__all:hover,
.sspc-news__all:focus { color: var(--ink); text-decoration: none; }
.sspc-news__list { list-style: none; margin: 0; padding: 0; }
.sspc-news__item { border-bottom: 1px solid var(--rule); }
.sspc-news__link {
  display: grid; grid-template-columns: 1fr; gap: 0.3rem;
  padding: 1.1rem 0; color: inherit;
  transition: padding-left 0.15s ease;
}
@media (min-width: 44rem) {
  .sspc-news__link { grid-template-columns: 13rem 1fr; gap: 1.5rem; align-items: baseline; }
}
.sspc-news__link:hover,
.sspc-news__link:focus { text-decoration: none; padding-left: 0.8rem; }
.sspc-news__meta { display: flex; flex-direction: column; gap: 0.15rem; color: var(--muted); }
.sspc-news__category { color: var(--ink); font-weight: 600; }
.sspc-news__headline { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.sspc-news__link:hover .sspc-news__headline,
.sspc-news__link:focus .sspc-news__headline { color: var(--muted); }

/* ===================================================================
   MOTTO  --  the opening editorial statement
   =================================================================== */
.sspc-motto {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  margin: 0;
  font-family: var(--serif);
}
.sspc-motto__word {
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.05;
  transition: color 0.15s ease;
}
.sspc-motto__word:hover,
.sspc-motto__word:focus { color: var(--muted); text-decoration: none; }
/* Pipe strip: scaled to read between the large words, kept light so it stays
   subordinate to the words themselves. */
.sspc-motto__sep { color: #a8a59b; font-weight: 400; font-size: clamp(1.1rem, 3vw, 2.1rem); }

/* ===================================================================
   ATTORNEYS LIST  --  grayscale portrait grid
   =================================================================== */
.sspc-attorney-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 2rem 1.75rem;
  list-style: none; margin: 0; padding: 0;
}
.sspc-attorney-card { margin: 0; }
.sspc-attorney-card__link { display: block; color: inherit; }
.sspc-attorney-card__link:hover,
.sspc-attorney-card__link:focus { text-decoration: none; }
.sspc-attorney-card__media {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel);
  border: 1px solid var(--rule);
}
.sspc-attorney-card__portrait {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05); transition: filter 0.25s ease;
}
.sspc-attorney-card__link:hover .sspc-attorney-card__portrait,
.sspc-attorney-card__link:focus .sspc-attorney-card__portrait { filter: grayscale(1) contrast(1.12) brightness(1.03); }
.sspc-attorney-card__name {
  font-family: var(--serif); font-weight: 400; font-size: 1.4rem;
  letter-spacing: -0.01em; line-height: 1.1; margin: 0.85rem 0 0.2rem;
}
.sspc-attorney-card__link:hover .sspc-attorney-card__name { color: var(--muted); }
.sspc-attorney-card__role { font-family: var(--sans); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted); margin: 0; }

/* ===================================================================
   ATTORNEY PROFILE (detail)
   =================================================================== */
.sspc-profile { max-width: 54rem; }
.sspc-profile__header {
  display: flex; flex-wrap: wrap; gap: 2.25rem; align-items: flex-end;
  margin-bottom: 2.25rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule-strong);
}
.sspc-profile__media { flex: 0 0 15rem; max-width: 15rem; overflow: hidden; border: 1px solid var(--rule); }
.sspc-profile__portrait { width: 100%; height: auto; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.sspc-profile__heading { flex: 1 1 18rem; }
.sspc-profile__name {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em; line-height: 1; margin: 0 0 0.5rem;
}
.sspc-profile__role { color: var(--muted); font-weight: 500; margin: 0 0 1.25rem; }

.sspc-contact { list-style: none; margin: 0; padding: 0; }
.sspc-contact__item { color: var(--ink); margin: 0.3rem 0; }

.sspc-section__title {
  color: var(--muted); font-weight: 600;
  margin: 2.5rem 0 0.9rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--rule);
}

.sspc-bio { margin-top: 1.75rem; }
.sspc-bio__paragraph { font-size: 1.08rem; line-height: 1.75; margin: 0 0 1.1rem; max-width: 44rem; }

.sspc-credentials { margin-top: 1.5rem; }
.sspc-credentials__section { margin-bottom: 1.4rem; }
.sspc-credentials__heading { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin: 0 0 0.4rem; }
.sspc-credentials__list { margin: 0; padding: 0; list-style: none; }
.sspc-credentials__line { font-size: 1rem; color: var(--ink); margin: 0.3rem 0; padding-left: 1.1rem; position: relative; }
.sspc-credentials__line::before { content: "\00B7"; position: absolute; left: 0.15rem; color: var(--muted); font-weight: 700; }

.sspc-related { margin-top: 1.5rem; }
.sspc-related__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.sspc-related__item { margin: 0; }
.sspc-related__link {
  display: inline-block; padding: 0.4rem 0.85rem; font-weight: 500;
  color: var(--ink); border: 1px solid var(--rule);
}
.sspc-related__link:hover,
.sspc-related__link:focus { text-decoration: none; background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ===================================================================
   PRACTICE / INDUSTRY LIST  --  ruled two-column editorial rows
   =================================================================== */
.sspc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.sspc-list__item { border-bottom: 1px solid var(--rule); }
.sspc-list__link {
  display: grid; grid-template-columns: 1fr; gap: 0.4rem;
  padding: 1.75rem 0; color: inherit;
  transition: padding-left 0.15s ease;
}
@media (min-width: 46rem) {
  .sspc-list__link { grid-template-columns: 18rem 1fr; gap: 2rem; align-items: baseline; }
}
.sspc-list__link:hover,
.sspc-list__link:focus { text-decoration: none; padding-left: 0.9rem; }
.sspc-list__name {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.015em; line-height: 1.05; color: var(--ink); margin: 0;
}
.sspc-list__link:hover .sspc-list__name,
.sspc-list__link:focus .sspc-list__name { color: var(--muted); }
.sspc-list__summary { font-size: 1.02rem; line-height: 1.6; color: var(--muted); margin: 0; max-width: 40rem; }

/* ===================================================================
   PRACTICE / INDUSTRY DETAIL (topic)
   =================================================================== */
.sspc-topic { max-width: 48rem; }
.sspc-topic__name {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em; line-height: 1.02; margin: 1rem 0 0.85rem;
  padding-bottom: 0.9rem; border-bottom: 1px solid var(--rule-strong);
}
.sspc-topic__callout { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--ink); margin: 1.25rem 0 1.5rem; }
.sspc-topic__body { margin-top: 1.25rem; }
.sspc-topic__paragraph { font-size: 1.06rem; line-height: 1.75; margin: 0 0 1.1rem; }
.sspc-topic__heading { font-family: var(--serif); font-weight: 500; }

/* ===================================================================
   ARTICLES  --  editorial feed
   =================================================================== */
.sspc-articles__intro { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); margin: 0 0 0.5rem; max-width: 46rem; text-transform: none; letter-spacing: normal; }
.sspc-articles { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.sspc-article-card { border-bottom: 1px solid var(--rule); }
.sspc-article-card__link { display: block; padding: 1.75rem 0; color: inherit; transition: padding-left 0.15s ease; }
.sspc-article-card__link:hover,
.sspc-article-card__link:focus { text-decoration: none; padding-left: 0.9rem; }
.sspc-article-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem;
  color: var(--muted); margin-bottom: 0.5rem;
}
.sspc-article-card__category { color: var(--ink); font-weight: 600; }
.sspc-article-card__status { border: 1px solid var(--rule); padding: 0.1rem 0.45rem; color: var(--muted); }
.sspc-article-card__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.015em; line-height: 1.15; color: var(--ink); margin: 0 0 0.4rem;
}
.sspc-article-card__link:hover .sspc-article-card__title,
.sspc-article-card__link:focus .sspc-article-card__title { color: var(--muted); }
.sspc-article-card__summary { font-size: 1.02rem; line-height: 1.6; color: var(--muted); margin: 0; max-width: 46rem; }
.sspc-articles__group { margin-top: 3rem; }
.sspc-articles__group-title { color: var(--muted); font-weight: 500; margin: 0 0 0.3rem; }

/* Article detail: a feature */
.sspc-article { max-width: 42rem; }
.sspc-article__meta { display: flex; gap: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }
.sspc-article__category { color: var(--ink); font-weight: 600; }
.sspc-article__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 0.5rem;
}
.sspc-article__status { display: inline-block; font-family: var(--sans); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: uppercase; border: 1px solid var(--rule); color: var(--muted); padding: 0.15rem 0.5rem; margin: 0.4rem 0 0; }
.sspc-article__body { margin-top: 2rem; }
.sspc-article__body > :first-child { margin-top: 0; }
.sspc-article__subhead { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.01em; margin: 2.25rem 0 0.6rem; }
.sspc-article__para { margin: 0 0 1.2rem; line-height: 1.8; font-size: 1.08rem; }
.sspc-article__list { margin: 0 0 1.2rem 1.3rem; padding: 0; }
.sspc-article__list-item { margin: 0.4rem 0; line-height: 1.7; font-size: 1.08rem; }
.sspc-article__footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule-strong); }
.sspc-article__back { color: var(--muted); }
.sspc-article__back::before { content: "\2190\00A0"; }
.sspc-article__back:hover,
.sspc-article__back:focus { color: var(--ink); text-decoration: none; }

/* ===================================================================
   CONTACT CARD
   =================================================================== */
.sspc-contact-card {
  font-style: normal; padding: 1.75rem; border: 1px solid var(--ink);
  background: var(--panel); max-width: 26rem;
}
.sspc-contact-card__name { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 0 0 0.6rem; }
.sspc-contact-card__address,
.sspc-contact-card__phone { font-family: var(--sans); font-size: 0.95rem; line-height: 1.55; color: var(--ink); margin: 0.2rem 0; }

/* ===================================================================
   NOT-FOUND and ERROR
   =================================================================== */
.sspc-notfound { padding: 2.5rem 0; max-width: 40rem; }
.sspc-notfound__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 0.75rem; }
.sspc-notfound__message { font-size: 1.05rem; color: var(--muted); margin: 0 0 1.25rem; }
.sspc-notfound__back { margin: 0; }
.sspc-notfound__link { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.sspc-notfound__link:hover,
.sspc-notfound__link:focus { text-decoration: none; color: var(--muted); }

.sspc-error { font-family: var(--sans); color: var(--ink); padding: 1.5rem; border: 1px solid var(--ink); margin: 1.5rem 0; }

/* ===================================================================
   SHARED FOOTER  --  fine print + repeated wordmark bookend
   =================================================================== */
.sspc-footer { border-top: 1px solid var(--rule-strong); background: var(--paper); margin-top: 4rem; }
.sspc-footer__contact { max-width: 66rem; margin: 0 auto; padding: 2rem 1.75rem 1rem; }
.sspc-footer__contact p { color: var(--muted); letter-spacing: 0.06em; margin: 0.25rem 0; }
.sspc-footer__founded { color: var(--ink); }
.sspc-footer__disclaimer { margin-top: 1.1rem; font-size: 0.66rem; letter-spacing: 0.06em; color: var(--muted); }

/* ===================================================================
   PHILOSOPHY  --  radial mind map, monochrome (value, not color)
   =================================================================== */
.sspc-main--bare { max-width: 70rem; margin: 0 auto; padding: 3.5rem 1.75rem 5rem; }
.sspc-mindmap__intro { text-align: center; margin: 0 auto 1.5rem; }
.sspc-mindmap__kicker { font-family: var(--sans); font-size: var(--label-size); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.sspc-mindmap__motto.sspc-motto { justify-content: center; }
.sspc-mindmap__motto .sspc-motto__word { font-size: clamp(1.8rem, 5vw, 3.4rem); }
.sspc-mindmap__motto .sspc-motto__sep { font-size: clamp(1.5rem, 4vw, 2.8rem); }
.sspc-mindmap__lead { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 0.8rem 0 0; }
.sspc-mindmap__diagram { width: 100%; max-width: 58rem; margin: 1.5rem auto 2rem; }

.sspc-mm { width: 100%; height: auto; overflow: visible; display: block; animation: sspc-mm-in 0.5s ease both; }
@keyframes sspc-mm-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.sspc-mm__link, .sspc-mm__twig {
  stroke: var(--rule); fill: none;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: sspc-mm-draw 0.7s ease forwards;
}
.sspc-mm__link { stroke-width: 1.5; }
.sspc-mm__twig { stroke-width: 1; animation-delay: 0.25s; }
@keyframes sspc-mm-draw { to { stroke-dashoffset: 0; } }
.sspc-mindmap[data-active] .sspc-mm__link,
.sspc-mindmap[data-active] .sspc-mm__twig { opacity: 0.35; transition: opacity 0.25s, stroke 0.25s; }
.sspc-mm__link.is-active, .sspc-mm__twig.is-active { opacity: 1; stroke: var(--ink); }
.sspc-mm__hub-disc { fill: var(--ink); }
.sspc-mm__hub-text { fill: var(--paper); font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 2px; }
.sspc-mm__sub-dot { fill: var(--rule); transition: fill 0.25s, r 0.25s; }
.sspc-mm__sub-label { fill: var(--muted); font-family: var(--sans); font-size: 14px; letter-spacing: 0.02em; transition: fill 0.25s; }
.sspc-mindmap[data-active] .sspc-mm__sub { opacity: 0.35; transition: opacity 0.25s; }
.sspc-mm__sub.is-active { opacity: 1; }
.sspc-mm__sub.is-active .sspc-mm__sub-dot { fill: var(--ink); r: 6; }
.sspc-mm__sub.is-active .sspc-mm__sub-label { fill: var(--ink); font-weight: 600; }
.sspc-mm__pillar { cursor: pointer; }
.sspc-mm__pillar:focus { outline: none; }
.sspc-mm__disc { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; transition: fill 0.2s, stroke 0.2s; }
.sspc-mm__icon { color: var(--ink); }
.sspc-mm__icon path { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sspc-mm__word { fill: var(--ink); font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; transition: fill 0.2s; }
.sspc-mm__pillar:hover .sspc-mm__disc, .sspc-mm__pillar:focus-visible .sspc-mm__disc { fill: var(--panel); }
.sspc-mm__pillar.is-active .sspc-mm__disc { fill: var(--ink); stroke: var(--ink); }
.sspc-mm__pillar.is-active .sspc-mm__icon { color: var(--paper); }
/* The pillar word sits below the disc on the page, so it stays ink (not paper)
   to remain visible when active; weight carries the active emphasis. */
.sspc-mm__pillar.is-active .sspc-mm__word { fill: var(--ink); font-weight: 600; }

.sspc-mindmap__readout { max-width: 44rem; margin: 0 auto; min-height: 7rem; text-align: center; }
.sspc-mindmap__panel { display: none; }
.sspc-mindmap__panel.is-active { display: block; animation: sspc-fade 0.25s ease; }
@keyframes sspc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sspc-mindmap__panel-word { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: 0.01em; text-transform: uppercase; margin: 0 0 0.7rem; }
.sspc-mindmap__panel-text { font-family: var(--serif); font-size: 1.3rem; line-height: 1.6; color: var(--ink); margin: 0; }

/* ===================================================================
   HOME CAROUSEL ("From the firm") + LIGHTBOX
   =================================================================== */
.sspc-gallery { }
.sspc-gallery__head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-bottom: 0.6rem; margin-bottom: 1.25rem; }
.sspc-gallery__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.sspc-gallery__controls { display: flex; gap: 0.5rem; }
.sspc-gallery__nav { width: 2.1rem; height: 2.1rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer; transition: background 0.15s, color 0.15s; }
.sspc-gallery__nav:hover, .sspc-gallery__nav:focus { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sspc-gallery__track { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0 0 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.sspc-gallery__item { flex: 0 0 auto; scroll-snap-align: start; }
.sspc-gallery__btn { display: block; width: 18rem; max-width: 74vw; padding: 0; border: 1px solid var(--rule); background: var(--paper); cursor: pointer; color: var(--ink); text-align: left; overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.sspc-gallery__btn:hover, .sspc-gallery__btn:focus { border-color: var(--ink); transform: translateY(-3px); }
.sspc-gallery__image { width: 100%; height: 11rem; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }
.sspc-gallery__cap { display: block; padding: 0.7rem 0.85rem; color: var(--ink); letter-spacing: 0.04em; }
.sspc-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; }
.sspc-lightbox[data-open="true"] { display: block; }
.sspc-lightbox__backdrop { position: absolute; inset: 0; background: rgba(17,17,16,0.78); }
.sspc-lightbox__dialog { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(62rem, 92vw); max-height: 90vh; background: var(--paper); border: 1px solid var(--ink); display: grid; grid-template-columns: 1.4fr 1fr; overflow: hidden; }
.sspc-lightbox__media { background: var(--panel); display: flex; align-items: center; justify-content: center; }
.sspc-lightbox__image { width: 100%; height: 100%; max-height: 90vh; object-fit: contain; display: block; filter: grayscale(1) contrast(1.04); }
.sspc-lightbox__aside { padding: 2rem 1.75rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
.sspc-lightbox__title { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; font-size: 1.6rem; }
.sspc-lightbox__caption { margin: 0; color: var(--muted); line-height: 1.65; }
.sspc-lightbox__link { align-self: flex-start; margin-top: 0.5rem; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.sspc-lightbox__link::after { content: " \2197"; }
.sspc-lightbox__link:hover, .sspc-lightbox__link:focus { color: var(--muted); border-color: var(--muted); text-decoration: none; }
.sspc-lightbox__close { position: absolute; top: 0.5rem; right: 0.6rem; z-index: 2; width: 2rem; height: 2rem; border: none; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sspc-lightbox__close:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 40rem) { .sspc-lightbox__dialog { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; } .sspc-lightbox__image { max-height: 50vh; } }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 48rem) {
  .sspc-main { padding: 2.5rem 1.25rem 3rem; }
  .sspc-profile__media { flex-basis: 100%; max-width: 18rem; }
  .sspc-page--home > section::after,
  .sspc-page--home > nav::after { display: none; } /* keep just the number on narrow screens */
}
