:root {
  --ap-blue: #168cf0;
  --ap-ink: #151b20;
  --ap-text: #59636b;
  --ap-soft: #f2f6f8;
  --ap-line: #d7e0e5;
  --ap-white: #ffffff;
}

.ap-page {
  background: var(--ap-white);
  color: var(--ap-text);
}

.ap-page .sp-nav {
  grid-template-columns: 325px minmax(0, 1fr) auto;
  gap: 34px;
}

.ap-page .sp-brand {
  width: 325px;
  height: 34px;
}

.ap-page .sp-header:not(.is-scrolled):not(.menu-open) {
  background: linear-gradient(180deg, rgba(8, 20, 29, .44), rgba(8, 20, 29, 0));
}

.ap-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.ap-index,
.ap-kicker {
  margin: 0;
  color: var(--ap-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ap-hero {
  position: relative;
  min-height: min(820px, 100vh);
  overflow: hidden;
  background: #dce3e7;
  color: var(--ap-white);
}

.ap-hero-media,
.ap-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ap-hero-media {
  object-position: center;
  transform: scale(1.015);
  animation: ap-hero-image 1.15s cubic-bezier(.2, .7, .2, 1) both;
}

.ap-hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 18, 27, .96) 0%, rgba(7, 18, 27, .85) 31%, rgba(7, 18, 27, .38) 56%, rgba(7, 18, 27, .07) 82%),
    linear-gradient(180deg, rgba(7, 18, 27, .18), rgba(7, 18, 27, .04) 55%, rgba(7, 18, 27, .3));
}

.ap-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(820px, 100vh);
  padding: 130px 0 190px;
}

.ap-breadcrumb {
  display: flex;
  gap: 9px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.ap-breadcrumb span:nth-child(2) {
  opacity: .45;
}

.ap-hero .ap-kicker {
  margin-bottom: 18px;
  color: #79c6ff;
  animation: ap-rise .65s .14s both cubic-bezier(.2, .7, .2, 1);
}

.ap-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(56px, 5.6vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.ap-hero h1 span {
  display: block;
  animation: ap-rise .78s .23s both cubic-bezier(.2, .7, .2, 1);
}

.ap-hero h1 span + span {
  margin-top: 8px;
  animation-delay: .32s;
}

.ap-hero-content > p:not(.ap-kicker) {
  max-width: 630px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  line-height: 1.72;
  animation: ap-rise .65s .43s both cubic-bezier(.2, .7, .2, 1);
}

.ap-actions,
.ap-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ap-actions {
  margin-top: 32px;
  animation: ap-rise .65s .52s both cubic-bezier(.2, .7, .2, 1);
}

.ap-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 800;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.ap-button::after,
.ap-story-details summary::after {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.ap-button.primary {
  border-color: var(--ap-blue);
  background: var(--ap-blue);
  color: var(--ap-white);
}

.ap-hero .ap-button.primary {
  border-color: var(--ap-white);
  background: var(--ap-white);
  color: var(--ap-ink);
}

.ap-button.secondary {
  border-color: rgba(255, 255, 255, .54);
  background: rgba(8, 20, 29, .18);
  color: var(--ap-white);
}

.ap-button:hover,
.ap-button:focus-visible {
  box-shadow: 0 10px 24px rgba(7, 20, 30, .18);
  transform: translateY(-2px);
}

.ap-button:hover::after,
.ap-button:focus-visible::after {
  transform: translateX(3px) rotate(45deg);
}

.ap-focus-strip {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(780px, 62vw);
  background: rgba(255, 255, 255, .96);
  color: var(--ap-ink);
  backdrop-filter: blur(10px);
  animation: ap-rise .7s .62s both cubic-bezier(.2, .7, .2, 1);
}

.ap-focus-strip div {
  min-height: 128px;
  padding: 25px 24px;
  border-left: 1px solid var(--ap-line);
}

.ap-focus-strip span,
.ap-focus-strip strong,
.ap-focus-strip small {
  display: block;
}

.ap-focus-strip span {
  color: var(--ap-blue);
  font-size: 11px;
  font-weight: 800;
}

.ap-focus-strip strong {
  margin-top: 11px;
  font-size: 19px;
}

.ap-focus-strip small {
  margin-top: 7px;
  color: #6a747b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ap-partner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--ap-line);
}

.ap-portrait {
  position: relative;
  top: auto;
  align-self: start;
  width: 100%;
  height: 720px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #d9e0e4;
}

.ap-portrait img {
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .45s ease;
}

.ap-darius .ap-portrait img {
  object-position: center top;
}

.ap-portrait:hover img {
  filter: saturate(1.03);
  transform: scale(1.02);
}

.ap-portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 5px;
  padding: 20px 24px;
  background: rgba(10, 20, 28, .8);
  color: var(--ap-white);
}

.ap-portrait figcaption span {
  font-size: 17px;
  font-weight: 800;
}

.ap-portrait figcaption small {
  color: rgba(255, 255, 255, .7);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.ap-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 720px;
  padding: 76px clamp(40px, 6vw, 96px);
  background: var(--ap-white);
}

.ap-darius .ap-story {
  background: var(--ap-soft);
}

.ap-story h2,
.ap-combination h2,
.ap-insights h2,
.ap-contact h2 {
  margin: 18px 0 0;
  color: var(--ap-ink);
  font-size: clamp(42px, 4.5vw, 66px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0;
}

.ap-story > p:not(.ap-index) {
  max-width: 620px;
  margin: 25px 0 0;
  font-size: 16px;
  line-height: 1.8;
}

.ap-story-details {
  margin-top: 34px;
  border-top: 1px solid var(--ap-line);
  border-bottom: 1px solid var(--ap-line);
}

.ap-story-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  color: var(--ap-ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.ap-story-details summary::-webkit-details-marker {
  display: none;
}

.ap-story-details summary:focus-visible {
  outline: 2px solid var(--ap-blue);
  outline-offset: 4px;
}

.ap-story-details[open] summary::after {
  transform: rotate(135deg);
}

.ap-story-more {
  overflow: hidden;
  padding: 0 0 26px;
  transition: height .36s cubic-bezier(.2, .7, .2, 1);
}

.ap-story-more p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.78;
}

.ap-story-more p:last-child {
  margin-bottom: 0;
}

.ap-combination {
  padding: 108px 0 0;
  background: var(--ap-white);
}

.ap-combination-heading {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 58px;
}

.ap-combination-heading .ap-index {
  grid-column: 1 / -1;
  margin-bottom: -44px;
}

.ap-combination-heading > p:last-child {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.ap-strengths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ap-line);
  border-bottom: 1px solid var(--ap-line);
}

.ap-strengths article {
  min-height: 310px;
  padding: 58px clamp(34px, 6vw, 96px);
}

.ap-strengths article + article {
  border-left: 1px solid var(--ap-line);
  background: var(--ap-soft);
}

.ap-strengths span {
  color: var(--ap-blue);
  font-size: 12px;
  font-weight: 800;
}

.ap-strengths h3 {
  margin: 20px 0 0;
  color: var(--ap-ink);
  font-size: clamp(30px, 3vw, 42px);
}

.ap-strengths p {
  max-width: 520px;
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.72;
}

.ap-insights {
  padding: 36px 0;
  border-bottom: 1px solid var(--ap-line);
  background: var(--ap-soft);
}

.ap-insights-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.ap-insights h2 {
  margin-top: 8px;
  font-size: clamp(30px, 3vw, 44px);
}

.ap-insights-inner > span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  color: var(--ap-ink);
  font-size: 14px;
  font-weight: 800;
}

.ap-insights-inner > span::after {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.ap-insights-inner:hover > span::after,
.ap-insights-inner:focus-visible > span::after {
  transform: translateX(4px) rotate(45deg);
}

.ap-contact {
  padding: 102px 0;
  background: var(--ap-ink);
  color: var(--ap-white);
}

.ap-contact-grid {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;
}

.ap-contact .ap-index {
  color: #79c6ff;
}

.ap-contact h2 {
  max-width: 800px;
  color: var(--ap-white);
}

.ap-contact-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.ap-contact .ap-button.secondary {
  background: transparent;
}

.ap-floating-whatsapp {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  display: none;
  width: 54px;
  height: 54px;
  border: 3px solid var(--ap-white);
  border-radius: 50%;
  background: #20bd5a url("surmount-assets/whatsapp-icon.svg") center / 25px no-repeat;
  box-shadow: 0 12px 28px rgba(20, 125, 61, .28);
}

.ap-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .52s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.ap-reveal.ap-visible {
  opacity: 1;
  transform: none;
}

@keyframes ap-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ap-hero-image {
  from { opacity: .75; transform: scale(1.045); }
  to { opacity: 1; transform: scale(1.015); }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .ap-page .sp-nav {
    grid-template-columns: 258px minmax(0, 1fr) auto;
    gap: 20px;
  }

  .ap-page .sp-brand {
    width: 258px;
    height: 27px;
  }

  .ap-page .sp-links {
    gap: 20px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .ap-page .sp-nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
  }

  .ap-page .sp-brand {
    width: clamp(144px, 41vw, 160px);
    height: 20px;
  }

  .ap-shell {
    width: calc(100% - 36px);
  }

  .ap-hero {
    min-height: 880px;
  }

  .ap-hero-media {
    object-position: 62% center;
  }

  .ap-hero-overlay {
    background: linear-gradient(90deg, rgba(7, 18, 27, .91), rgba(7, 18, 27, .5)), linear-gradient(180deg, rgba(7, 18, 27, .08), rgba(7, 18, 27, .52));
  }

  .ap-hero-content {
    justify-content: flex-start;
    min-height: 700px;
    padding: 116px 0 220px;
  }

  .ap-hero h1 {
    font-size: clamp(46px, 13vw, 64px);
  }

  .ap-hero-content > p:not(.ap-kicker) {
    font-size: 16px;
  }

  .ap-actions {
    flex-direction: column;
  }

  .ap-actions .ap-button {
    width: 100%;
  }

  .ap-focus-strip {
    width: 100%;
  }

  .ap-focus-strip div {
    min-height: 112px;
    padding: 18px 14px;
  }

  .ap-focus-strip strong {
    font-size: 15px;
  }

  .ap-partner,
  .ap-combination-heading,
  .ap-strengths {
    grid-template-columns: 1fr;
  }

  .ap-darius .ap-story {
    grid-row: 2;
  }

  .ap-darius .ap-portrait {
    grid-row: 1;
  }

  .ap-portrait,
  .ap-story {
    min-height: 0;
  }

  .ap-portrait {
    position: relative;
    top: auto;
    height: 520px;
  }

  .ap-story {
    padding: 64px 22px;
  }

  .ap-combination {
    padding-top: 76px;
  }

  .ap-combination-heading {
    gap: 24px;
    margin-bottom: 42px;
  }

  .ap-combination-heading .ap-index {
    grid-column: auto;
    margin-bottom: 0;
  }

  .ap-strengths article {
    min-height: 0;
    padding: 46px 22px;
  }

  .ap-strengths article + article {
    border-top: 1px solid var(--ap-line);
    border-right: 0;
    border-left: 0;
  }

  .ap-insights-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .ap-contact-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .ap-contact-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .ap-floating-whatsapp {
    display: block;
  }
}

@media (max-width: 560px) {
  .ap-hero {
    min-height: 920px;
  }

  .ap-hero-content {
    padding-bottom: 250px;
  }

  .ap-hero h1 {
    font-size: clamp(43px, 12.5vw, 56px);
  }

  .ap-focus-strip {
    grid-template-columns: 1fr;
  }

  .ap-focus-strip div {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    min-height: 66px;
    padding: 12px 18px;
    border-top: 1px solid var(--ap-line);
    border-left: 0;
  }

  .ap-focus-strip strong,
  .ap-focus-strip small {
    margin: 0;
  }

  .ap-focus-strip small {
    grid-column: 2;
  }

  .ap-page .sp-nav-cta {
    padding: 0 9px;
    font-size: 10px;
  }

  .ap-story h2,
  .ap-combination h2,
  .ap-insights h2,
  .ap-contact h2 {
    font-size: 40px;
  }

  .ap-portrait {
    height: 420px;
  }

  .ap-contact-actions {
    flex-direction: column;
  }

  .ap-contact-actions .ap-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-hero-media,
  .ap-hero .ap-kicker,
  .ap-hero h1 span,
  .ap-hero-content > p,
  .ap-actions,
  .ap-focus-strip {
    animation: none;
  }

  .ap-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
