/* Secondary pages: shared structure, themed entirely through each concept's tokens. */
.sp { width: min(var(--wrap), 100%); margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(56px, 7vw, 110px); }
.sp h1, .sp h2, .sp h3 { font-family: var(--f-display); font-weight: var(--d-weight); letter-spacing: var(--d-track); text-transform: var(--d-case); color: var(--fg); text-wrap: balance; }
.sp p { text-wrap: pretty; }
.sp-arrow { display: inline-block; transition: transform .25s; }
a:hover > .sp-arrow { transform: translateX(4px); }

.sp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--muted); margin-bottom: clamp(28px, 4vw, 52px); }
.sp-crumbs a { text-decoration: none; cursor: pointer; }
.sp-crumbs a:hover { color: var(--fg); }
.sp-eyebrow { margin: 0 0 14px; font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--accent-ink); }
.sp-head { max-width: 980px; margin-bottom: clamp(32px, 5vw, 72px); }
.sp-title { margin: 0; font-size: var(--sp-h1); line-height: 1.04; }
.sp-intro { margin: 22px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.sp-rating { margin: 22px 0 0; color: var(--muted); font-size: 16px; }
.sp-rating strong { font-family: var(--f-display); font-size: 1.6em; color: var(--fg); font-weight: var(--d-weight); margin-right: 6px; }

/* Buttons */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; font-family: var(--f-btn); font-size: var(--btn-size); font-weight: var(--btn-weight); letter-spacing: var(--btn-track); text-transform: var(--btn-case); text-decoration: none; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background .25s, color .25s, border-color .25s; position: relative; }
.sp-btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.sp-btn--primary:hover { background: var(--btn-bg-hover); }
.sp-btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.sp-btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sp-textlink { font-family: var(--f-label); font-size: 13px; letter-spacing: var(--l-track); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; cursor: pointer; }

/* Work */
.sp-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.sp-chip { cursor: pointer; padding: 10px 16px; min-height: 44px; border: 1px solid var(--line); background: transparent; border-radius: var(--radius); font-family: var(--f-label); font-size: 13px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--muted); transition: all .2s; }
.sp-chip:hover { color: var(--fg); border-color: var(--fg); }
.sp-chip.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.sp-proj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 44px); }
.sp-proj { min-width: 0; display: grid; gap: 18px; align-content: start; }
.sp-proj[hidden] { display: none; }
.sp-proj-link { display: block; cursor: zoom-in; overflow: hidden; }
.sp-proj-fig { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.sp-proj-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.1,1); }
.sp-proj-link:hover img { transform: scale(1.03); }
.sp-proj-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--muted); }
.sp-proj-title { margin: 0; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.sp-proj-text { margin: 0; line-height: 1.6; color: var(--muted); max-width: 54ch; }
.sp-proj-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.sp-proj-facts dt { font-family: var(--f-label); font-size: 11px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--muted); }
.sp-proj-facts dd { margin: 2px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.sp-empty { color: var(--muted); }

/* Services */
.sp-groups { display: grid; gap: clamp(48px, 7vw, 110px); }
.sp-group { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.sp-group:nth-child(even) .sp-group-fig { order: 2; }
.sp-group-fig { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; background: var(--bg-2); }
.sp-group-fig img { width: 100%; height: 100%; object-fit: cover; }
.sp-group-body { min-width: 0; }
.sp-group-n { margin: 0 0 10px; font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.sp-group-title { margin: 0; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; }
.sp-group-line { margin: 18px 0 22px; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 42ch; }
.sp-group-items { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); }
.sp-group-items li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.sp-group-links { display: grid; gap: 10px; }
.sp-group-links a { font-family: var(--f-label); font-size: 13px; letter-spacing: var(--l-track); text-transform: uppercase; text-decoration: none; color: var(--fg); cursor: pointer; }
.sp-group-links a:hover { color: var(--accent-ink); }

/* Service detail */
.sp-svc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 7vw, 100px); }
.sp-svc-copy .sp-btn { margin-top: 30px; }
.sp-svc-fig { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.sp-svc-fig img { width: 100%; height: 100%; object-fit: cover; }
.sp-svc-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); margin-bottom: clamp(56px, 8vw, 120px); }
.sp-prose p { margin: 0 0 1.1em; font-size: 18px; line-height: 1.7; max-width: 62ch; }
.sp-includes h2, .sp-faq h2, .sp-area h2, .sp-values h2, .sp-team h2 { margin: 0 0 20px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; }
.sp-includes ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sp-includes li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sp-related { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(24px, 4vw, 56px); background: var(--bg-2); margin-bottom: clamp(56px, 8vw, 120px); }
.sp-related-fig { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.sp-related-fig img { width: 100%; height: 100%; object-fit: cover; }
.sp-related h2 { margin: 0 0 14px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; }
.sp-related p { line-height: 1.6; color: var(--muted); margin: 0 0 22px; }
.sp-related .sp-eyebrow { margin-bottom: 12px; }
.sp-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 5vw, 80px); margin-bottom: clamp(56px, 8vw, 110px); }
.sp-faq-list { border-top: 1px solid var(--line); }
.sp-faq details { border-bottom: 1px solid var(--line); }
.sp-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: 18px; font-weight: 500; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 300; transition: transform .25s; color: var(--muted); }
.sp-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.sp-faq details p { margin: 0 0 22px; line-height: 1.65; color: var(--muted); max-width: 62ch; }
.sp-area { max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.sp-area p { line-height: 1.7; color: var(--muted); }
.sp-fine { font-size: 13px; color: var(--muted); line-height: 1.5; }
.sp-more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.sp-more li { border-bottom: 1px solid var(--line); }
.sp-more a { display: flex; justify-content: space-between; padding: 18px 16px 18px 0; text-decoration: none; font-size: 17px; cursor: pointer; }
.sp-more a:hover { color: var(--accent-ink); }

/* About */
.sp-story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; margin-bottom: clamp(48px, 7vw, 100px); }
.sp-story-fig { margin: 0; }
.sp-story-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sp-story-fig figcaption { margin-top: 10px; font-family: var(--f-label); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.sp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 clamp(56px, 8vw, 110px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sp-stats div { padding: 28px 20px 28px 0; min-width: 0; }
.sp-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.sp-stats dt { font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--muted); }
.sp-stats dd { margin: 10px 0 0; font-family: var(--f-display); font-weight: var(--d-weight); font-size: clamp(36px, 4vw, 60px); line-height: 1; font-variant-numeric: tabular-nums; }
.sp-values, .sp-team { margin-bottom: clamp(56px, 8vw, 110px); }
.sp-values ul, .sp-team ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.sp-values li, .sp-team li { padding: 24px 0; border-top: 1px solid var(--line); min-width: 0; }
.sp-values h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; }
.sp-values p, .sp-team-note { margin: 0; line-height: 1.6; color: var(--muted); }
.sp-team ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-team-name { margin: 0; font-family: var(--f-display); font-weight: var(--d-weight); font-size: 22px; }
.sp-team-role { margin: 4px 0 10px; font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--accent-ink); }

/* Reviews */
.sp-review-list { columns: 2; column-gap: clamp(24px, 4vw, 64px); }
.sp-review { break-inside: avoid; margin: 0 0 clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.sp-review blockquote { margin: 0; }
.sp-review blockquote p { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; }
.sp-review figcaption { margin-top: 16px; display: grid; gap: 2px; }
.sp-review-name { font-weight: 600; }
.sp-review-meta { font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--muted); }

/* Contact */
.sp-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.sp-contact-facts { margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sp-contact-facts div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sp-contact-facts dt { font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.sp-contact-facts dd { margin: 0; }
.sp-contact-facts a { text-decoration: none; font-weight: 600; cursor: pointer; }
.sp-form { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 48px); background: var(--form-bg); border: 1px solid var(--line); border-radius: var(--radius); }
.sp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sp-field { display: grid; gap: 8px; min-width: 0; }
.sp-field label { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 500; }
.sp-req, .sp-opt { font-family: var(--f-label); font-size: 11px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--muted); font-weight: 400; padding-top: 2px; }
.sp-req { color: var(--accent-ink); }
.sp-field input, .sp-field select, .sp-field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--fg); background: var(--input-bg); border: 1px solid var(--input-line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.sp-field select { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.sp-field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.sp-field input:focus, .sp-field select:focus, .sp-field textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px var(--focus-ring); }
.sp-field [aria-invalid="true"] { border-color: var(--error); }
.sp-err { margin: 0; color: var(--error); font-size: 14px; }
.sp-hint { margin: 0; font-size: 12px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.sp-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.sp-submit .sp-btn { min-width: 230px; }
.sp-status { margin: 0; font-size: 15px; line-height: 1.45; flex: 1 1 220px; }
.sp-status[data-state="error"] { color: var(--error); }
.sp-status[data-state="ok"] { color: var(--ok); }
.sp-spin { position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; opacity: 0; animation: sp-spin .7s linear infinite; }
.sp-btn.is-loading .sp-btn-label { opacity: 0; }
.sp-btn.is-loading .sp-spin { opacity: 1; }
.sp-btn:disabled { cursor: progress; }
@keyframes sp-spin { to { transform: rotate(360deg); } }

/* CTA band */
.sp-cta { background: var(--cta-bg); color: var(--cta-fg); }
.sp-cta-inner { width: min(var(--wrap), 100%); margin: 0 auto; padding: clamp(56px, 8vw, 120px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; }
.sp-cta h2 { margin: 0; font-family: var(--f-display); font-weight: var(--d-weight); letter-spacing: var(--d-track); text-transform: var(--d-case); font-size: clamp(36px, 4.6vw, 68px); line-height: 1.02; color: inherit; grid-row: span 2; text-wrap: balance; }
.sp-cta p { margin: 0; line-height: 1.6; opacity: .82; max-width: 46ch; }
.sp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sp-cta .sp-btn--primary { background: var(--cta-btn-bg); color: var(--cta-btn-fg); }
.sp-cta .sp-btn--primary:hover { background: var(--cta-btn-hover); }
.sp-cta .sp-btn--ghost:hover { background: var(--cta-fg); color: var(--cta-bg); border-color: var(--cta-fg); }

@media (max-width: 900px) {
  .sp-proj-grid, .sp-group, .sp-svc-hero, .sp-svc-body, .sp-related, .sp-faq, .sp-story, .sp-contact, .sp-cta-inner { grid-template-columns: minmax(0, 1fr); }
  .sp-group:nth-child(even) .sp-group-fig { order: 0; }
  .sp-values ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-team ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .sp-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sp-review-list { columns: 1; }
  .sp-cta h2 { grid-row: auto; }
}
@media (max-width: 560px) {
  .sp-row { grid-template-columns: minmax(0, 1fr); }
  .sp-values ul, .sp-team ul { grid-template-columns: minmax(0, 1fr); }
  .sp-contact-facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sp-submit .sp-btn { width: 100%; }
  .sp-cta-actions .sp-btn { flex: 1 1 100%; }
}
