/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f4f3ef;
  color: #171914;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* =========================================
   VARIABLES
========================================= */

:root {
  --bg: #f4f3ef;
  --dark: #171914;
  --muted: #73756d;
  --line: rgba(23, 25, 20, 0.14);
  --primary: #14253c;
  --cream: #e9e5da;

  --serif: "Playfair Display", serif;
}

/* =========================================
   CONTAINER
========================================= */

.container {
  width: min(1180px, calc(100% - 60px));
  margin: auto;
}

/* =========================================
   HEADER
========================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;

  z-index: 100;

  padding: 26px 0;

  transition:
    background 0.4s ease,
    padding 0.4s ease,
    backdrop-filter 0.4s ease;
}

.header.scrolled {
  background: rgba(244, 243, 239, 0.85);
  backdrop-filter: blur(15px);

  padding: 18px 0;

  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  display: block;

  height: 44px;
  width: auto;
}

.desktop-menu {
  display: flex;
  gap: 38px;
}

.desktop-menu a {
  font-size: 13px;
  color: var(--muted);

  transition: color 0.3s ease;
}

.desktop-menu a:hover {
  color: var(--dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 13px;
  font-weight: 500;
}

.nav-cta span {
  display: inline-flex;

  width: 32px;
  height: 32px;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--line);
  border-radius: 50%;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.nav-cta:hover span {
  background: var(--dark);
  color: white;
  transform: rotate(45deg);
}

/* =========================================
   MOBILE MENU
========================================= */

.menu-toggle {
  display: none;

  border: 0;
  background: none;

  width: 35px;
  height: 35px;

  position: relative;

  cursor: pointer;
}

.menu-toggle span {
  position: absolute;

  width: 22px;
  height: 1px;

  background: var(--dark);

  left: 6px;

  transition: 0.3s ease;
}

.menu-toggle span:first-child {
  top: 14px;
}

.menu-toggle span:last-child {
  top: 21px;
}

.mobile-menu {
  position: fixed;

  inset: 0;

  background: var(--dark);
  color: white;

  z-index: 90;

  display: flex;
  align-items: center;

  padding: 40px;

  transform: translateY(-100%);

  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu a {
  font-family: var(--serif);

  font-size: clamp(40px, 10vw, 70px);

  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #8b9dbd;
}

/* =========================================
   HERO
========================================= */

.hero {
  position: relative;

  min-height: 100vh;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.hero-background {
  position: absolute;

  width: 600px;
  height: 600px;

  right: -150px;
  top: 50%;

  transform: translateY(-50%);

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(94, 117, 158, 0.2),
    rgba(94, 117, 158, 0) 68%
  );

  filter: blur(20px);

  animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }

  50% {
    transform: translateY(-50%) scale(1.15);
  }
}

.hero-content {
  padding-top: 70px;
}

.eyebrow {
  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 0.18em;

  color: var(--muted);

  margin-bottom: 28px;
}

.hero h1 {
  max-width: 900px;

  font-size: clamp(65px, 9vw, 125px);

  line-height: 0.88;

  letter-spacing: -0.075em;

  font-weight: 400;
}

.hero h1 span {
  font-family: var(--serif);
  font-style: italic;

  color: var(--primary);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-top: 80px;

  max-width: 720px;
}

.hero-bottom p {
  max-width: 380px;

  font-size: 15px;

  line-height: 1.7;

  color: var(--muted);
}

.circle-button {
  width: 65px;
  height: 65px;

  border: 1px solid var(--line);

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background 0.4s ease,
    color 0.4s ease,
    transform 0.4s ease;
}

.circle-button:hover {
  background: var(--dark);
  color: white;

  transform: translateY(5px);
}

.hero-line {
  position: absolute;

  left: 50%;
  bottom: 0;

  width: 1px;
  height: 70px;

  background: var(--line);
}

/* =========================================
   GENERAL SECTIONS
========================================= */

.section {
  padding: 150px 0;
}

.section-label {
  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.2em;

  color: var(--muted);
}

/* =========================================
   INTRO
========================================= */

.intro {
  border-top: 1px solid var(--line);
}

.intro-grid {
  display: grid;

  grid-template-columns: 1fr 1.5fr;

  margin-top: 80px;
}

.intro-text {
  max-width: 700px;
}

.intro h2 {
  font-size: clamp(45px, 5vw, 70px);

  line-height: 1;

  letter-spacing: -0.055em;

  font-weight: 400;

  margin-bottom: 60px;
}

.intro h2 em {
  font-family: var(--serif);

  color: var(--primary);
}

.intro p {
  max-width: 550px;

  color: var(--muted);

  font-size: 15px;

  line-height: 1.8;

  margin-bottom: 20px;
}

/* =========================================
   COMPANIES
========================================= */

.companies {
  background: var(--dark);
  color: white;
}

.companies .section-label {
  color: rgba(255, 255, 255, 0.45);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  margin-top: 80px;

  margin-bottom: 80px;
}

.section-header h2 {
  font-size: clamp(50px, 6vw, 85px);

  font-weight: 400;

  line-height: 0.95;

  letter-spacing: -0.065em;
}

.section-header h2 em {
  font-family: var(--serif);
  color: #8598b8;
}

.companies-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.company-card {
  min-height: 330px;

  position: relative;

  overflow: hidden;

  padding: 35px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.15);

  transition:
    background 0.5s ease,
    color 0.5s ease;
}

.company-card:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.company-card:hover {
  background: var(--card-hover-bg, #e9e7df);
  color: var(--dark);
}

.company-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background: var(--card-logo, url("logo.svg")) center / 55% auto no-repeat;

  opacity: 0;

  transition: opacity 0.5s ease;

  pointer-events: none;
}

.company-card:hover::after {
  opacity: 0.1;
}

.company-number {
  position: relative;
  z-index: 1;

  font-size: 10px;

  color: rgba(255, 255, 255, 0.4);

  transition: color 0.4s ease;
}

.company-card:hover .company-number {
  color: var(--muted);
}

.company-content {
  position: absolute;
  z-index: 1;

  left: 35px;
  bottom: 35px;
}

.company-logo {
  font-size: 27px;

  font-weight: 600;

  letter-spacing: -0.06em;

  margin-bottom: 18px;
}

.company-logo.small {
  font-size: 22px;

  line-height: 0.95;
}

.company-content p {
  max-width: 240px;

  color: rgba(255, 255, 255, 0.5);

  font-size: 13px;

  line-height: 1.6;

  transition: color 0.4s ease;
}

.company-card:hover .company-content p {
  color: var(--muted);
}

.company-arrow {
  position: absolute;
  z-index: 1;

  top: 30px;
  right: 35px;

  width: 38px;
  height: 38px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.4s ease,
    background 0.4s ease,
    color 0.4s ease;
}

.company-card:hover .company-arrow {
  transform: rotate(45deg);

  background: var(--dark);

  color: white;
}

/* =========================================
   SECTORS
========================================= */

.sectors {
  border-bottom: 1px solid var(--line);
}

.sectors-header {
  display: grid;

  grid-template-columns: 1.3fr 1fr;

  gap: 100px;

  margin-top: 70px;

  margin-bottom: 100px;
}

.sectors-header h2 {
  font-size: clamp(50px, 6vw, 85px);

  font-weight: 400;

  line-height: 0.95;

  letter-spacing: -0.065em;
}

.sectors-header h2 em {
  font-family: var(--serif);

  color: var(--primary);
}

.sectors-header p {
  max-width: 370px;

  align-self: end;

  color: var(--muted);

  line-height: 1.8;

  font-size: 15px;
}

.sector {
  display: grid;

  grid-template-columns: 80px 1fr 50px;

  align-items: center;

  padding: 35px 0;

  border-top: 1px solid var(--line);

  transition:
    padding 0.4s ease,
    color 0.4s ease;
}

.sector:last-child {
  border-bottom: 1px solid var(--line);
}

.sector:hover {
  padding-left: 20px;
  padding-right: 20px;

  color: var(--primary);
}

.sector > span {
  font-size: 11px;
  color: var(--muted);
}

.sector h3 {
  font-size: 25px;

  font-weight: 400;

  margin-bottom: 5px;
}

.sector p {
  color: var(--muted);

  font-size: 13px;
}

.sector strong {
  font-weight: 400;

  font-size: 20px;

  transition: transform 0.4s ease;
}

.sector:hover strong {
  transform: rotate(45deg);
}

/* =========================================
   NUMBERS
========================================= */

.numbers {
  background: var(--cream);
}

.numbers-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 30px;
}

.number-item {
  padding-right: 30px;

  border-right: 1px solid var(--line);
}

.number-item:last-child {
  border-right: none;
}

.number-item strong {
  font-size: 65px;

  line-height: 1;

  font-weight: 400;

  letter-spacing: -0.06em;
}

.number-item > span {
  font-size: 25px;

  color: var(--primary);
}

.number-item p {
  color: var(--muted);

  font-size: 12px;

  margin-top: 15px;
}

/* =========================================
   PHILOSOPHY
========================================= */

.philosophy-content {
  margin-top: 90px;
}

.large-text {
  max-width: 1000px;

  font-size: clamp(50px, 7vw, 100px);

  line-height: 0.95;

  letter-spacing: -0.065em;
}

.large-text span {
  font-family: var(--serif);

  font-style: italic;

  color: var(--primary);
}

.philosophy-description {
  max-width: 420px;

  margin-left: auto;

  margin-top: 80px;

  color: var(--muted);

  line-height: 1.8;

  font-size: 14px;
}

/* =========================================
   CONTACT
========================================= */

.contact {
  background: var(--primary);

  color: white;
}

.contact-box {
  max-width: 900px;
}

.contact .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.contact h2 {
  font-size: clamp(55px, 7vw, 100px);

  font-weight: 400;

  line-height: 0.9;

  letter-spacing: -0.065em;

  margin: 70px 0 45px;
}

.contact h2 em {
  font-family: var(--serif);
  color: #fff;
}

.contact p {
  max-width: 450px;

  color: rgba(255, 255, 255, 0.6);

  line-height: 1.8;

  font-size: 14px;
}

.contact-button {
  display: inline-flex;

  align-items: center;

  gap: 20px;

  margin-top: 45px;

  padding: 16px 22px;

  border: 1px solid rgba(255, 255, 255, 0.3);

  border-radius: 50px;

  transition:
    background 0.4s ease,
    color 0.4s ease;
}

.contact-button span {
  transition: transform 0.4s ease;
}

.contact-button:hover {
  background: white;

  color: var(--dark);
}

.contact-button:hover span {
  transform: rotate(45deg);
}

/* =========================================
   FOOTER
========================================= */

footer {
  background: var(--dark);

  color: white;

  padding: 50px 0 25px;
}

.footer-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding-bottom: 50px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-size: 25px;

  font-weight: 600;

  letter-spacing: -.06em;
}

.footer-logo img {
  display: block;

  height: 42px;
  width: auto;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.4);

  font-size: 12px;
}

.footer-bottom {
  display: flex;

  justify-content: space-between;

  padding-top: 25px;

  color: rgba(255, 255, 255, 0.35);

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

/* =========================================
   REVEAL ANIMATION
========================================= */

.reveal {
  opacity: 0;

  transform: translateY(35px);

  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================
   CUSTOM CURSOR
========================================= */

.cursor {
  position: fixed;

  width: 12px;
  height: 12px;

  border-radius: 50%;

  background: var(--dark);

  pointer-events: none;

  z-index: 999;

  transform: translate(-50%, -50%);

  transition:
    width 0.25s ease,
    height 0.25s ease,
    background 0.25s ease;

  mix-blend-mode: difference;
}

.cursor.hover {
  width: 45px;
  height: 45px;

  background: white;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {
  .container {
    width: min(100% - 40px, 1180px);
  }

  .desktop-menu,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .section {
    padding: 100px 0;
  }

  .hero h1 {
    font-size: clamp(55px, 15vw, 90px);
  }

  .hero-bottom {
    margin-top: 55px;

    align-items: flex-start;
  }

  .hero-bottom p {
    max-width: 280px;
  }

  .circle-button {
    flex-shrink: 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;

    margin-top: 50px;
  }

  .intro-grid > div:first-child {
    display: none;
  }

  .intro h2 {
    margin-bottom: 40px;
  }

  .section-header {
    margin-top: 50px;

    margin-bottom: 50px;
  }

  .companies-grid {
    grid-template-columns: 1fr;
  }

  .company-card {
    min-height: 270px;
  }

  .company-card:nth-child(odd) {
    border-right: none;
  }

  .sectors-header {
    grid-template-columns: 1fr;

    gap: 40px;

    margin-top: 50px;

    margin-bottom: 60px;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 40px 20px;
  }

  .number-item {
    border-right: none;
  }

  .number-item strong {
    font-size: 55px;
  }

  .philosophy-description {
    margin-left: 0;

    margin-top: 50px;
  }

  .footer-top {
    align-items: flex-start;

    gap: 30px;

    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 12px;
  }
}

/* =========================================
   REDUCE MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
