/**
 * SkillXarc — Services Page Styles
 * File: assets/css/services.css
 *
 * Mirrors the About page (about.css) structure with "sp-" prefix.
 *
 * Sections:
 *  1.  Shared tokens & utilities
 *  2.  Intro section  (label + headline + body | services visual card)
 *  3.  Stats band     (dark animated counter strip)
 *  4.  Services list  (existing .service-block rules kept in style.css)
 */

/* ─────────────────────────────────────────────────────
   1. SHARED TOKENS & UTILITIES
───────────────────────────────────────────────────── */
.sp-lbl {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0a0e1a;
    margin-bottom: 1.25rem;
}

.sp-headline {
    font-family: var(--font-body);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #0a0e1a;
    margin-bottom: 1.5rem;
}
.sp-headline--md { font-size: clamp(2rem, 4vw, 3rem); }
.sp-headline__green { color: #006644; }

.sp-lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1f2937;
    max-width: 52ch;
    margin-bottom: 1.25rem;
}

.sp-body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #374151;
    max-width: 58ch;
    margin-bottom: 1rem;
}
.sp-body:last-of-type { margin-bottom: 0; }

.sp-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #006644;
    text-decoration: none;
    margin-top: 1.75rem;
    transition: gap 0.2s ease;
}
.sp-cta-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sp-cta-link:hover { gap: 0.75rem; }

/* ─────────────────────────────────────────────────────
   2. INTRO SECTION
   Left: label + headline + body + CTA
   Right: services visual card
───────────────────────────────────────────────────── */
.sp-intro {
    padding: calc(var(--header-height) + 2rem) 0 clamp(4rem, 7vw, 5rem);
    background: #ffffff;
}

.sp-intro__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}


/* Services visual card — dark card with floating discipline icons */
.sp-vis-card {
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4 / 3.6;
    background: linear-gradient(135deg, #081520 0%, #0a2018 50%, #081520 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.sp-vis-card__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 280px;
}

.sp-vis-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.25);
    border-radius: 16px;
    padding: 1.25rem 0.75rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: default;
}
.sp-vis-icon:hover {
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.6);
    transform: translateY(-3px);
}

.sp-vis-icon__emoji {
    font-size: 1.75rem;
    line-height: 1;
}

.sp-vis-icon__label {
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* Glow overlay */
.sp-vis-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(22, 163, 74, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.sp-vis-card__inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* DNA stem */
.sp-dna-stem {
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, #006644, #22c55e, #006644);
    border-radius: 4px;
    position: relative;
}

/* DNA icon badges */
.sp-dna-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
    left: 50%;
    line-height: 1;
}
.sp-dna-icon--1 { top: 4%;  left: calc(50% + 72px); }
.sp-dna-icon--2 { top: 19%; left: calc(50% - 80px); }
.sp-dna-icon--3 { top: 36%; left: calc(50% + 76px); }
.sp-dna-icon--4 { top: 53%; left: calc(50% - 72px); }
.sp-dna-icon--5 { top: 69%; left: calc(50% + 74px); }
.sp-dna-icon--6 { top: 84%; left: calc(50% - 78px); }

/* ─────────────────────────────────────────────────────
   3. VALUES / PHILOSOPHY SECTION
   Centered headline + 3 feature cards
───────────────────────────────────────────────────── */
.sp-values {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #f7f8fa;
}

/* Centered header */
.sp-values__header {
    max-width: 960px;
    margin: 0 auto clamp(3rem, 5vw, 4rem);
    text-align: center;
}

.sp-values__headline {
    font-family: var(--font-body);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #0a0e1a;
    margin-bottom: 1.25rem;
}
.sp-values__green { color: #006644; }

.sp-values__lead {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #1f2937;
    max-width: none;
    margin: 0 auto;
}

/* 3-column card grid */
.sp-values__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Individual value card */
.sp-val-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 1.25rem;
    row-gap: 1.25rem;
    align-items: start;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.sp-val-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Circular icon container */
.sp-val-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.25s ease;
}
.sp-val-card:hover .sp-val-card__icon { background: #dcfce7; }

.sp-val-card__icon svg {
    width: 26px;
    height: 26px;
    color: #374151;
    transition: color 0.25s ease;
}
.sp-val-card:hover .sp-val-card__icon svg { color: #006644; }

.sp-val-card__title {
    font-family: var(--font-body);
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0e1a;
    margin: 0;
    align-self: center;
}

.sp-val-card__body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #374151;
    margin: 0;
    grid-column: 1 / -1;
}

/* ─────────────────────────────────────────────────────
   4. HOW WE WORK TOGETHER
   Dark section + centered header + 3 white process cards
───────────────────────────────────────────────────── */
.sp-how {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #0a0e1a;
    position: relative;
    overflow: hidden;
}

/* Shimmer line at the top, mirroring the about principles section */
.sp-how::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #006644, #00b36b, #006644);
    background-size: 200% 100%;
    animation: sp-shimmer-how 4s linear infinite;
}
@keyframes sp-shimmer-how {
    from { background-position: 0% 0%; }
    to   { background-position: 200% 0%; }
}

/* Centered header */
.sp-how__header {
    max-width: 720px;
    margin: 0 auto clamp(3rem, 5vw, 4rem);
    text-align: center;
}

.sp-how__headline {
    font-family: var(--font-body);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}
.sp-how__green { color: #00b36b; }

.sp-how__lead {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.60);
    margin: 0 auto;
}

/* 3-column card grid */
.sp-how__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Individual card — white on dark background */
.sp-how-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 1.25rem;
    row-gap: 1.25rem;
    align-items: start;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.sp-how-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px);
}

/* Circular icon container */
.sp-how-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.25s ease;
}
.sp-how-card:hover .sp-how-card__icon { background: #dcfce7; }

.sp-how-card__icon svg {
    width: 26px;
    height: 26px;
    color: #374151;
    transition: color 0.25s ease;
}
.sp-how-card:hover .sp-how-card__icon svg { color: #006644; }

.sp-how-card__title {
    font-family: var(--font-body);
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0e1a;
    margin: 0;
    align-self: center;
}

.sp-how-card__body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: #374151;
    margin: 0;
    grid-column: 1 / -1;
}

/* ─────────────────────────────────────────────────────
   5. SKILLS AT A GLANCE — tabbed section
───────────────────────────────────────────────────── */
.sg-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: #ffffff;
}

/* Centered header */
.sg-header {
    max-width: 680px;
    margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
}

.sg-headline {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0a0e1a;
    margin-bottom: 1rem;
}
.sg-green { color: #006644; }

.sg-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #1f2937;
    margin: 0;
}

/* ── Shared keyframes ── */
@keyframes sgPanelIn {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes sgFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes sgIconPop {
    0%   { opacity: 0; transform: scale(0.7) translateY(8px); }
    60%  { transform: scale(1.08) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Tab bar ── */
.sg-tabbar {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 2rem;
}
.sg-tabbar::-webkit-scrollbar { display: none; }

.sg-tab {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
    margin: 4px;
}
.sg-tab:hover:not(.is-active) {
    color: #0a0e1a;
    background: #f3f4f6;
}
.sg-tab.is-active {
    background: #ffffff;
    color: #006644;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

.sg-tab__icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

/* ── Panel visibility + entrance animation ── */
.sg-panel { display: none; }
.sg-panel.is-active {
    display: block;
    animation: sgPanelIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── What We Build & Industries: staggered card entrance ── */
.sg-panel.is-active .sg-card {
    animation: sgFadeUp 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sg-panel.is-active .sg-card .sg-card__icon {
    animation: sgIconPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sg-panel.is-active .sg-card:nth-child(1)                     { animation-delay:  40ms; }
.sg-panel.is-active .sg-card:nth-child(1) .sg-card__icon      { animation-delay:  40ms; }
.sg-panel.is-active .sg-card:nth-child(2)                     { animation-delay:  85ms; }
.sg-panel.is-active .sg-card:nth-child(2) .sg-card__icon      { animation-delay:  85ms; }
.sg-panel.is-active .sg-card:nth-child(3)                     { animation-delay: 130ms; }
.sg-panel.is-active .sg-card:nth-child(3) .sg-card__icon      { animation-delay: 130ms; }
.sg-panel.is-active .sg-card:nth-child(4)                     { animation-delay: 175ms; }
.sg-panel.is-active .sg-card:nth-child(4) .sg-card__icon      { animation-delay: 175ms; }
.sg-panel.is-active .sg-card:nth-child(5)                     { animation-delay: 220ms; }
.sg-panel.is-active .sg-card:nth-child(5) .sg-card__icon      { animation-delay: 220ms; }
.sg-panel.is-active .sg-card:nth-child(6)                     { animation-delay: 265ms; }
.sg-panel.is-active .sg-card:nth-child(6) .sg-card__icon      { animation-delay: 265ms; }
.sg-panel.is-active .sg-card:nth-child(7)                     { animation-delay: 310ms; }
.sg-panel.is-active .sg-card:nth-child(7) .sg-card__icon      { animation-delay: 310ms; }
.sg-panel.is-active .sg-card:nth-child(8)                     { animation-delay: 355ms; }
.sg-panel.is-active .sg-card:nth-child(8) .sg-card__icon      { animation-delay: 355ms; }

/* ── Technologies: staggered column entrance ── */
.sg-panel.is-active .sg-tech-col {
    animation: sgFadeUp 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sg-panel.is-active .sg-tech-col:nth-child(1) { animation-delay:  40ms; }
.sg-panel.is-active .sg-tech-col:nth-child(2) { animation-delay: 100ms; }
.sg-panel.is-active .sg-tech-col:nth-child(3) { animation-delay: 160ms; }
.sg-panel.is-active .sg-tech-col:nth-child(4) { animation-delay: 220ms; }

/* ── Practices: staggered column entrance ── */
.sg-panel.is-active .sg-prac-col {
    animation: sgFadeUp 0.44s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sg-panel.is-active .sg-prac-col:nth-child(1) { animation-delay:  40ms; }
.sg-panel.is-active .sg-prac-col:nth-child(2) { animation-delay: 110ms; }
.sg-panel.is-active .sg-prac-col:nth-child(3) { animation-delay: 180ms; }

/* ── Reduced motion: strip all ── */
@media (prefers-reduced-motion: reduce) {
    .sg-panel.is-active,
    .sg-panel.is-active .sg-card,
    .sg-panel.is-active .sg-card .sg-card__icon,
    .sg-panel.is-active .sg-tech-col,
    .sg-panel.is-active .sg-prac-col { animation: none; }
}

/* ─────────────────────────────────────────────────────
   5a. WHAT WE BUILD + INDUSTRIES — card grid
───────────────────────────────────────────────────── */
.sg-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.sg-card {
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 1rem;
    row-gap: 1rem;
    align-items: start;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.sg-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #d1fae5;
}

.sg-card__icon {
    width: 36px;
    height: 36px;
    color: #006644;
    flex-shrink: 0;
    align-self: center;
}
.sg-card__icon svg { width: 100%; height: 100%; }

.sg-card__title {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0e1a;
    margin: 0;
    align-self: center;
}

.sg-card__desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
    grid-column: 1 / -1;
}

/* Tech tags at card bottom */
.sg-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    grid-column: 1 / -1;
}
.sg-card__tag {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #006644;
    background: #dcfce7;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

/* ─────────────────────────────────────────────────────
   5b. TECHNOLOGIES — 4-column layout
───────────────────────────────────────────────────── */
.sg-tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.sg-tech-col {
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.sg-tech-col__head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sg-tech-col__icon {
    width: 22px;
    height: 22px;
    color: #006644;
    flex-shrink: 0;
}
.sg-tech-col__icon svg { width: 100%; height: 100%; display: block; }

.sg-tech-col__name {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0e1a;
}

.sg-tech-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.sg-tech-item:last-child { border-bottom: none; }

.sg-tech-item__label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0a0e1a;
    margin: 0 0 0.25rem;
}

.sg-tech-item__stack {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

/* ─────────────────────────────────────────────────────
   5c. PRACTICES — 3-column layout
───────────────────────────────────────────────────── */
.sg-prac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.sg-prac-col {
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.sg-prac-col__head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.sg-prac-col__icon {
    width: 22px;
    height: 22px;
    color: #006644;
    flex-shrink: 0;
}
.sg-prac-col__icon svg { width: 100%; height: 100%; display: block; }

.sg-prac-col__name {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0e1a;
}

.sg-prac-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.sg-prac-item:last-child { border-bottom: none; }

.sg-prac-item__name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0a0e1a;
    margin: 0 0 0.375rem;
}

.sg-prac-item__desc {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: #374151;
    margin: 0;
}

/* ─────────────────────────────────────────────────────
   6. PARTNERSHIP BANNER — "Here's what sets us apart"
   Exact ap-team-banner layout: image left | green panel right
───────────────────────────────────────────────────── */
.sp-apart {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: #f7f8fa;
}

.sp-apart__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

/* Left: image — fixed aspect ratio so it doesn't stretch to content height */
.sp-apart__image {
    border-radius: 20px;
    background: #e9ecef;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.sp-apart__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s ease;
}
.sp-apart__image:hover .sp-apart__img { transform: scale(1.03); }

/* Right: green panel — matches ap-team-banner__content exactly */
.sp-apart__content {
    background: #006644;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px 20px 80px 20px;
}

.sp-apart__label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.75rem;
}

.sp-apart__headline {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1rem;
}
/* Lighter green accent readable on dark-green background */
.sp-apart__green { color: #86efac; }

.sp-apart__body {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 0.5rem;
}
.sp-apart__body:last-of-type { margin-bottom: 0; }

/* CTA — white underline link, mirrors ap-team-banner__linkedin */
.sp-apart__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.45);
    padding-bottom: 0.25rem;
    width: fit-content;
    transition: border-color 0.2s ease, gap 0.2s ease;
}
.sp-apart__btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.sp-apart__btn:hover {
    border-color: rgba(255, 255, 255, 0.9);
    gap: 0.75rem;
}

/* ─────────────────────────────────────────────────────
   7. RESPONSIVE BREAKPOINTS
───────────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .sg-tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    /* Intro */
    .sp-intro__grid { grid-template-columns: 1fr; gap: 3rem; }
    .sp-intro__visual { order: -1; }
    .sp-vis-card { aspect-ratio: 16 / 9; }
    .sp-vis-card__grid { max-width: 340px; }

    /* Values & How */
    .sp-values__cards { grid-template-columns: 1fr; }
    .sp-how__cards    { grid-template-columns: 1fr; }

    /* Partnership banner */
    .sp-apart__grid   { grid-template-columns: 1fr; gap: 2.5rem; }
    .sp-apart__image  { aspect-ratio: 16 / 9; border-radius: 20px 20px 20px 60px; }
    .sp-apart__body   { max-width: none; }

    /* Skills at a glance */
    .sg-card-grid  { grid-template-columns: repeat(2, 1fr); }
    .sg-tech-grid  { grid-template-columns: repeat(2, 1fr); }
    .sg-prac-grid  { grid-template-columns: 1fr; }
    .sg-tab        { flex: 0 0 auto; }
}

@media (max-width: 768px) {
    .sp-headline { font-size: clamp(2rem, 8vw, 3rem); }
    .sp-values__headline { font-size: clamp(1.75rem, 6vw, 2.25rem); }
    .sg-headline  { font-size: clamp(1.75rem, 6vw, 2.25rem); }

    /* Collapse all grids to single column */
    .sg-card-grid  { grid-template-columns: 1fr; }
    .sg-tech-grid  { grid-template-columns: 1fr; }
    .sg-prac-grid  { grid-template-columns: 1fr; }

    /* Tabs: left-align, scrollable */
    .sg-tabbar { border-radius: 10px; }
    .sg-tab    { font-size: 0.8125rem; padding: 0.75rem 1rem; }
    .sg-tab__label { display: none; }
    .sg-tab__icon  { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
    .sp-vis-card__grid { grid-template-columns: repeat(2, 1fr); }
    .sg-tab__label { display: inline; }
}
