/* ============================================================
   Diestro Partners — Millrose-inspired layout
   Palette: forest green #38472f, sage #567568, beige #caba9c,
            cream #ebe6e0, ink #312e28
   ============================================================ */

@font-face {
  font-family: "Galiscka";
  src: url("fonts/galiscka-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Fluid root font: 1rem ≈ 16px at 1920w; scales with viewport. */
html {
  font-size: 0.833vw;
  scroll-behavior: smooth;
}
@media (max-width: 1366px) { html { font-size: 1.171vw; } }
@media (max-width: 1024px) { html { font-size: 2vw; } }
@media (max-width: 541px)  { html { font-size: 4.444vw; } }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.76;
  color: #312e28;
  background: linear-gradient(180deg,
    rgba(202, 186, 156, 0) 0%,
    rgba(202, 186, 156, 0.2) 80%,
    rgba(202, 186, 156, 0) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
@media (max-width: 1366px) { body { font-size: 1rem; line-height: 1.7; } }
@media (max-width: 1024px) { body { font-size: 0.88rem; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

.container {
  width: 105rem;
  margin: 0 auto;
}
@media (max-width: 1366px) {
  .container { width: 100%; padding: 0 1.5rem; }
}

/* Typography ------------------------------------------------- */
h1, h2, h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 400;
  color: #312e28;
  letter-spacing: -0.04em;
}
h1 {
  font-size: 7.5rem;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
h2 {
  font-size: 4.75rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
}
@media (max-width: 1366px) { h2 { font-size: 4rem; } }
@media (max-width: 1024px) { h2 { font-size: 3rem; } }
@media (max-width: 541px)  { h2 { font-size: 2.25rem; line-height: 1.17; } }

h3 {
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
@media (max-width: 541px)  { h3 { font-size: 1.6rem; } }

p { font-family: "Inter", sans-serif; font-weight: 400; }

/* Reveal animation ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo lockup ------------------------------------------------ */
.header__logo,
.footer__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.header__logo-img,
.footer__logo-img {
  display: block;
  height: 5rem;
  width: auto;
}
.logo-mark {
  font-family: "Galiscka", "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 2rem;
  letter-spacing: 0.02em;
  color: #ebe6e0;
}
.logo-sub {
  font-family: "Inter", sans-serif;
  font-size: 0.625rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  margin-top: 0.35rem;
  color: #ebe6e0;
}

/* Header ----------------------------------------------------- */
.header {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  padding: 2rem 0;
}
.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 4.875rem;
}
.header__nav-list > li > a {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #ebe6e0;
  padding: 0.5rem 0;
  transition: opacity 0.25s ease;
}
@media (max-width: 1366px) { .header__nav-list > li > a { font-size: 1.05rem; } }
.header__nav-list > li > a:hover { opacity: 0.75; }

.menu-item.has-children { position: relative; }
.menu-item.has-children .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  background: #ebe6e0;
  padding: 1.25rem 1.5rem;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 1rem 2.5rem rgba(56, 71, 47, 0.18);
}
.menu-item.has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.menu-item .sub-menu a {
  font-size: 0.95rem;
  color: #38472f;
  letter-spacing: 0.01em;
}
.menu-item .sub-menu a:hover { color: #567568; }

.header__menu-open {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
}
.header__menu-open span {
  width: 1.75rem;
  height: 2px;
  background: #ebe6e0;
}

/* Hero ------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #ebe6e0;
  display: flex;
  align-items: flex-end;
}
.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 28, 17, 0.6) 0%,
    rgba(20, 28, 17, 0.45) 45%,
    rgba(56, 71, 47, 0.85) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 105rem;
  padding-top: 11rem;
  padding-bottom: 7rem;
}
@media (max-width: 1366px) {
  .hero .container { width: 100%; padding-left: 1.5rem; padding-right: 1.5rem; }
}

.hero__content { max-width: 50rem; }

.hero__title {
  font-family: "Galiscka", "Cormorant Garamond", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #ebe6e0;
  margin-bottom: 1.75rem;
  margin-left: -0.07em;
}

.hero__subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(235, 230, 224, 0.92);
  max-width: 42rem;
  margin-bottom: 3rem;
  font-weight: 300;
}
@media (max-width: 1366px) { .hero__subtitle { font-size: 1.05rem; } }

.hero__progress {
  display: flex;
  gap: 1rem;
  margin-top: 5rem;
  max-width: 32rem;
}
.hero__progress .line {
  flex: 1;
  height: 2px;
  background: rgba(235, 230, 224, 0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.hero__progress .line-inner {
  position: absolute;
  inset: 0;
  background: #caba9c;
  transform: scaleX(0);
  transform-origin: left;
}
.hero__progress .line.is-active .line-inner {
  animation: progress 6.5s linear forwards;
}
@keyframes progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Buttons ---------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
  transition: all 0.3s ease;
}
.button__arrow {
  display: inline-block;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid currentColor;
  position: relative;
  transition: background 0.35s ease, transform 0.35s ease;
  flex-shrink: 0;
}
.button__arrow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='10' fill='none'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' d='M1 5h30M22 1L31 5L22 9'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='10' fill='none'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' d='M1 5h30M22 1L31 5L22 9'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: 1.5rem 0.47rem;
          mask-size: 1.5rem 0.47rem;
  transition: background-color 0.35s ease;
}
.button:hover .button__arrow {
  background: currentColor;
  transform: scale(1.04);
}
.button:hover .button__arrow::after {
  background-color: var(--btn-arrow-hover, #312e28);
}
.button--coral { color: #caba9c; --btn-arrow-hover: #312e28; }
.button--green { color: #567568; --btn-arrow-hover: #ffffff; }

.hero__content .button { font-size: 1.25rem; }
@media (max-width: 1366px) { .hero__content .button { font-size: 1.05rem; } }

@media (max-width: 1024px) {
  .button__arrow { width: 2.25rem; height: 2.25rem; }
  .button__arrow::after {
    -webkit-mask-size: 1.1rem 0.34rem;
            mask-size: 1.1rem 0.34rem;
  }
}

/* Section base ---------------------------------------------- */
section { padding: 7.5rem 0; }
@media (max-width: 1024px) { section { padding: 4.5rem 0; } }

/* WHY / text-image ------------------------------------------ */
.text-image__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 6rem;
}
.text-image__content {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.text-image__content p { font-size: 1.0625rem; line-height: 1.7; }
.text-image__image { overflow: hidden; border-radius: 0.25rem; }
.text-image__image img {
  width: 100%;
  height: 100%;
  max-height: 36rem;
  object-fit: cover;
}
@media (max-width: 1024px) {
  .text-image__wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* OPPORTUNITY / move-cards ---------------------------------- */
.move-cards { padding-bottom: 5rem; }
.move-cards__wrapper { display: flex; flex-direction: column; gap: 4.5rem; }
.move-cards__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.move-cards__content .section-title { max-width: 18ch; }

.move-cards__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}
.move-cards__card {
  position: relative;
  grid-column: span 3;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.25rem;
  display: flex;
  align-items: flex-end;
  padding: 2.25rem;
  color: #ebe6e0;
  isolation: isolate;
}
.move-cards__card:nth-child(3) { grid-column: span 6; aspect-ratio: 21 / 7; }

.move-cards__card-background { position: absolute; inset: 0; z-index: -2; }
.move-cards__card-background img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.move-cards__card:hover .move-cards__card-background img { transform: scale(1.05); }
.move-cards__card-background::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(49, 46, 40, 0.05) 0%,
    rgba(49, 46, 40, 0.65) 100%);
}

.move-cards__card h3 {
  color: #ebe6e0;
  font-weight: 400;
  position: relative;
  z-index: 1;
  max-width: 24rem;
}
.move-cards__card-line {
  position: absolute;
  left: 2.25rem;
  bottom: 0;
  height: 0.1875rem;
  width: 3.5rem;
}

@media (max-width: 1024px) {
  .move-cards__grid { grid-template-columns: 1fr 1fr; }
  .move-cards__card,
  .move-cards__card:nth-child(3) { grid-column: span 1; aspect-ratio: 16 / 9; }
}
@media (max-width: 541px) {
  .move-cards__grid { grid-template-columns: 1fr; }
  .move-cards__card { padding: 1.5rem; }
  .move-cards__card-line { left: 1.5rem; }
}

/* WHAT WE DO ------------------------------------------------ */
.what-do__top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: center;
}
.what-do__content {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.what-do__content p { font-size: 1.0625rem; line-height: 1.7; }
.what-do__side img {
  width: 100%;
  max-height: 38rem;
  object-fit: cover;
  border-radius: 0.25rem;
}
.what-do__bottom {
  margin-top: 5rem;
  overflow: hidden;
  border-radius: 0.25rem;
}
.what-do__bottom img {
  width: 100%;
  height: auto;
  aspect-ratio: 3.6 / 1;
  object-fit: cover;
}
@media (max-width: 1024px) {
  .what-do__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .what-do__bottom { margin-top: 3rem; }
}

/* BANKING ---------------------------------------------------- */
.banking__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.banking__content {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.banking__content p { font-size: 1.0625rem; line-height: 1.7; }
.banking__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.banking__side-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.25rem;
}
.banking__side-image img { width: 100%; height: 100%; object-fit: cover; }
.banking__bottom {
  margin-top: 5rem;
  border-radius: 0.25rem;
  overflow: hidden;
}
.banking__bottom img {
  width: 100%;
  height: auto;
  aspect-ratio: 1680 / 866;
  object-fit: cover;
}
@media (max-width: 1024px) {
  .banking__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .banking__bottom { margin-top: 3rem; }
}
@media (max-width: 541px) {
  .banking__side { grid-template-columns: 1fr; }
}

/* Footer ----------------------------------------------------- */
.footer {
  background: #38472f;
  color: #ebe6e0;
  margin-top: 2.5rem;
}
.footer__wrapper { padding: 7.3rem 0 2.75rem; }
@media (max-width: 1024px) { .footer__wrapper { padding: 4rem 0 2rem; } }

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}
@media (max-width: 1366px) {
  .footer__top { grid-template-columns: 1fr; }
}

.footer__menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer__nav-list .has-children > span,
.footer__nav-list > li > a {
  color: #ebe6e0;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}
.footer__nav-list .sub-menu {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__nav-list .sub-menu a {
  font-size: 0.95rem;
  color: rgba(235, 230, 224, 0.6);
  font-weight: 400;
  transition: color 0.25s ease;
}
.footer__nav-list .sub-menu a:hover { color: #ebe6e0; }

.footer__additional {
  display: flex;
  flex-direction: column;
  gap: 4.9rem;
  max-width: 34.75rem;
  padding-top: 0.2rem;
}
@media (max-width: 1366px) { .footer__additional { gap: 3rem; } }

.footer__additional-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer__button {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  color: #ebe6e0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.footer__button-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(86, 117, 104, 0.6);
  position: relative;
  transition: background 0.35s ease;
  flex-shrink: 0;
}
.footer__button-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='26' fill='none'%3E%3Cpath stroke='%23ebe6e0' stroke-linecap='round' d='M7 25V1M1 7l6-6 6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.875rem 1.625rem;
  transition: background-position 0.35s ease;
}
.footer__button:hover .footer__button-circle { background: #567568; }
.footer__button:hover .footer__button-circle::after { background-position: center 25%; }

.footer__bottom {
  border-top: 0.0625rem solid rgba(255, 255, 255, 0.2);
  padding-top: 2.8rem;
  margin-top: 3.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}
.footer__services { display: flex; gap: 2rem; }
.footer__services a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.25s ease;
}
.footer__services a:hover { color: #ebe6e0; }

/* Small screens --------------------------------------------- */
@media (max-width: 720px) {
  .header__nav { display: none; }
  .header__menu-open { display: flex; }
  .footer__menu { grid-template-columns: 1fr; gap: 2rem; }
  .footer__additional-top { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
