:root {
  --sp-blue: #168cf0;
  --sp-blue-dark: #0879dc;
  --sp-ink: #171b20;
  --sp-text: #59636b;
  --sp-muted: #f4f7f9;
  --sp-line: #dce3e8;
  --sp-white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--sp-white);
  color: var(--sp-text);
  font-family: Manrope, Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
body.sp-menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.sp-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  height: 72px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  color: #fff;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.sp-header.is-scrolled,
.sp-header.menu-open {
  border-bottom-color: var(--sp-line);
  background: rgba(255,255,255,.97);
  color: var(--sp-ink);
  box-shadow: 0 8px 24px rgba(20,31,40,.08);
}
.sp-nav {
  display: grid;
  grid-template-columns: 325px minmax(0,1fr) auto;
  align-items: center;
  gap: 36px;
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  margin: auto;
}
.sp-brand { position: relative; display: block; width: 325px; height: 34px; }
.sp-brand img { position: absolute; inset: 0; object-fit: contain; }
.sp-brand .dark { display: none; }
.sp-header.is-scrolled .sp-brand .light,
.sp-header.menu-open .sp-brand .light { display: none; }
.sp-header.is-scrolled .sp-brand .dark,
.sp-header.menu-open .sp-brand .dark { display: block; }

/* Fallback capsule state mirrors the homepage header when the shared source
   cannot be fetched (for example, when an HTML file is opened directly). */
@media (min-width: 901px) {
  .sp-header.is-scrolled {
    top: 12px;
    right: 18px;
    left: 18px;
    width: auto;
    height: 62px;
    border: 1px solid #dce1e4;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
  }
  .sp-header.is-scrolled .sp-nav { width: min(100%, 1180px); }
}
.sp-links { display: flex; justify-content: center; align-items: stretch; gap: 28px; height: 72px; font-size: 16px; font-weight: 750; }
.sp-links > a,
.sp-nav-group > summary { display: flex; align-items: center; height: 72px; cursor: pointer; list-style: none; }
.sp-nav-group { position: relative; }
.sp-nav-group summary::-webkit-details-marker { display: none; }
.sp-nav-group summary::after {
  width: 6px; height: 6px; margin: 0 0 4px 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  content: ""; transform: rotate(45deg); transition: transform .16s ease;
}
.sp-nav-group[open] summary::after { margin-bottom: 0; transform: rotate(225deg); }
.sp-nav-menu {
  position: absolute; top: 72px; left: 0; min-width: 240px;
  padding: 10px; border: 1px solid var(--sp-line); border-top: 2px solid var(--sp-ink);
  background: #fff; color: var(--sp-text); box-shadow: 0 18px 38px rgba(20,28,23,.12);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.sp-nav-group[open] .sp-nav-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.sp-nav-menu a { display: block; padding: 11px 12px; white-space: nowrap; font-size: 14px; font-weight: 700; }
.sp-nav-menu a:hover { background: var(--sp-muted); color: var(--sp-ink); }
.sp-nav-cta,
.sp-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 0 20px; border: 1px solid var(--sp-blue); border-radius: 2px;
  background: var(--sp-blue); color: #fff; font-size: 14px; font-weight: 800;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sp-nav-cta:hover,
.sp-button:hover { border-color: var(--sp-blue-dark); background: var(--sp-blue-dark); box-shadow: 0 9px 22px rgba(22,140,240,.22); transform: translateY(-2px); }
.sp-button::after { width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; content: ""; transform: rotate(45deg); }
.sp-menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; font-size: 21px; }
.sp-mobile-head,.sp-mobile-foot,.sp-backdrop { display: none; }

.sp-hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(540px, 72vh, 720px); padding: 140px 24px 82px;
  overflow: hidden; background: var(--sp-ink) var(--sp-hero) center / cover no-repeat; color: #fff;
}
.sp-hero::before { position: absolute; inset: 0; background: rgba(10,20,28,.58); content: ""; }
.sp-hero-inner { position: relative; z-index: 1; width: min(1180px,100%); margin: auto; }
.sp-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; color: rgba(255,255,255,.76); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.sp-breadcrumb span { opacity: .55; }
.sp-hero h1 { max-width: 1050px; margin: 0; font-size: clamp(50px,6vw,88px); font-weight: 800; line-height: .98; }
.sp-hero p { max-width: 680px; margin: 28px 0 0; color: rgba(255,255,255,.82); font-size: clamp(17px,1.8vw,21px); line-height: 1.65; }
.sp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.sp-hero .sp-button { border-color: #fff; background: #fff; color: var(--sp-ink); }
.sp-hero .sp-button.secondary { background: transparent; color: #fff; }

.sp-section { border-bottom: 1px solid #edf0f2; background: #fff; }
.sp-section:nth-child(even) { background: var(--sp-muted); }
.sp-section-inner { display: grid; grid-template-columns: minmax(0,1fr); width: min(1180px,100%); margin: auto; }
.sp-section.has-media .sp-section-inner { grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; max-width: none; }
.sp-section-media { min-height: 540px; overflow: hidden; background: #dbe2e7; }
.sp-section-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.sp-section:hover .sp-section-media img { transform: scale(1.025); }
.sp-section.reverse .sp-section-media { grid-column: 2; grid-row: 1; }
.sp-section-body { align-self: center; width: min(100%, 720px); padding: 84px clamp(28px,6vw,90px); }
.sp-section:not(.has-media) .sp-section-body { width: min(900px,100%); padding: 86px 24px; }
.sp-section h2 { margin: 0 0 28px; color: var(--sp-ink); font-size: clamp(36px,4vw,54px); line-height: 1.08; }
.sp-section h3 { margin: 34px 0 12px; padding-top: 24px; border-top: 1px solid var(--sp-line); color: var(--sp-ink); font-size: 22px; line-height: 1.25; }
.sp-section h4 { margin: 26px 0 10px; color: var(--sp-ink); font-size: 17px; }
.sp-section p { margin: 0 0 18px; font-size: 16px; line-height: 1.78; }
.sp-section ul,.sp-section ol { display: grid; gap: 10px; margin: 18px 0 26px; padding-left: 22px; font-size: 16px; line-height: 1.65; }
.sp-section a:not(.sp-button) { color: #0d70ba; text-decoration: underline; text-underline-offset: 3px; }
.sp-inline-cta { margin: 28px 0 4px; }
.sp-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 28px; }
.sp-gallery img { aspect-ratio: 4/3; }

.sp-final { padding: 90px 24px; background: var(--sp-ink); color: #fff; }
.sp-final-inner { display: flex; justify-content: space-between; align-items: end; gap: 40px; width: min(1180px,100%); margin: auto; }
.sp-final h2 { max-width: 760px; margin: 0; font-size: clamp(38px,5vw,64px); line-height: 1.05; }
.sp-final p { max-width: 620px; margin: 20px 0 0; color: rgba(255,255,255,.7); line-height: 1.7; }

.sp-footer { padding: 72px 24px 24px; background: #fff; border-top: 1px solid var(--sp-line); }
.sp-footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3,1fr); gap: 42px; width: min(1180px,100%); margin: auto; }
.sp-footer h2,.sp-footer h3 { margin: 0 0 18px; color: var(--sp-ink); }
.sp-footer h2 { font-size: 28px; }
.sp-footer h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.sp-footer p,.sp-footer li { font-size: 14px; line-height: 1.65; }
.sp-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.sp-footer a:hover { color: var(--sp-blue); }
.sp-footer-bottom { display: flex; justify-content: space-between; gap: 20px; width: min(1180px,100%); margin: 56px auto 0; padding-top: 20px; border-top: 1px solid var(--sp-line); font-size: 12px; }

.sp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .58s cubic-bezier(.2,.7,.2,1); }
.sp-reveal.visible { opacity: 1; transform: none; }

@media (min-width: 901px) and (max-width: 1100px) {
  .sp-nav { grid-template-columns: 258px minmax(0,1fr) auto; gap: 20px; }
  .sp-brand { width: 258px; height: 27px; }
  .sp-links { gap: 20px; font-size: 15px; }
  .sp-nav-cta { padding-right: 16px; padding-left: 16px; }
}

@media (max-width: 900px) {
  .sp-header { height: 62px; }
  .sp-nav { grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; width: calc(100% - 28px); }
  .sp-brand { width: clamp(144px,41vw,160px); height: 20px; }
  .sp-nav-cta { min-height: 38px; padding: 0 12px; font-size: 11px; }
  .sp-menu-toggle { display: grid; place-items: center; }
  .sp-links {
    position: fixed; z-index: 70; inset: 0 0 0 auto; display: flex; flex-direction: column; justify-content: flex-start;
    width: min(100%,380px); height: 100%; padding: 0 22px 30px; overflow-y: auto;
    background: #fff; color: var(--sp-ink); box-shadow: -18px 0 42px rgba(20,28,23,.16);
    opacity: 0; pointer-events: none; transform: translateX(105%); transition: opacity .2s ease, transform .26s ease;
  }
  .sp-header.menu-open .sp-links { opacity: 1; pointer-events: auto; transform: none; }
  .sp-mobile-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 72px; margin: 0 -22px 8px; padding: 0 22px; border-bottom: 1px solid var(--sp-line); background: #fff; }
  .sp-mobile-head img { width: 190px; height: auto; object-fit: contain; }
  .sp-mobile-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--sp-line); border-radius: 50%; background: var(--sp-muted); font-size: 22px; }
  .sp-links > a,.sp-nav-group > summary { width: 100%; min-height: 56px; height: auto; border-bottom: 1px solid var(--sp-line); font-size: 17px; }
  .sp-nav-group { width: 100%; }
  .sp-nav-menu { position: static; min-width: 0; padding: 4px 0 10px 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .sp-nav-menu a { padding: 10px 0; white-space: normal; }
  .sp-mobile-foot { display: grid; gap: 8px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--sp-line); font-size: 12px; }
  .sp-mobile-foot .sp-button { margin-top: 8px; }
  .sp-backdrop { position: fixed; z-index: 50; inset: 0; display: block; visibility: hidden; border: 0; background: rgba(15,22,28,.52); opacity: 0; pointer-events: none; transition: opacity .2s ease,visibility .2s ease; }
  .sp-backdrop.open { visibility: visible; opacity: 1; pointer-events: auto; }
  .sp-hero { min-height: 620px; padding: 122px 20px 70px; }
  .sp-hero h1 { font-size: clamp(44px,13vw,64px); }
  .sp-hero-actions { flex-direction: column; }
  .sp-hero-actions .sp-button { width: 100%; }
  .sp-section.has-media .sp-section-inner { grid-template-columns: 1fr; }
  .sp-section.reverse .sp-section-media { grid-column: 1; grid-row: auto; }
  .sp-section-media { min-height: 340px; }
  .sp-section-body,.sp-section:not(.has-media) .sp-section-body { width: 100%; padding: 56px 22px; }
  .sp-gallery { grid-template-columns: 1fr; }
  .sp-final { padding: 70px 22px; }
  .sp-final-inner { align-items: start; flex-direction: column; }
  .sp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .sp-nav { width: calc(100% - 22px); }
  .sp-brand { width: clamp(144px,41vw,160px); height: 20px; }
  .sp-nav-cta { min-height: 36px; padding: 0 10px; font-size: 10px; }
  .sp-hero { min-height: 600px; }
  .sp-section-media { min-height: 280px; }
  .sp-footer-grid { grid-template-columns: 1fr; }
  .sp-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .sp-reveal { opacity: 1; transform: none; }
}
