/* Gilroy, self-hosted. Place the licensed web font files in /public/fonts/.
   Any weight that is missing falls back to Urbanist (Google Fonts). */
@font-face { font-family: "Gilroy"; font-weight: 400; font-display: swap;
  src: local("Gilroy-Regular"), url("/fonts/Gilroy-Regular.woff2") format("woff2"), url("/fonts/Gilroy-Regular.otf") format("opentype"); }
@font-face { font-family: "Gilroy"; font-weight: 500; font-display: swap;
  src: local("Gilroy-Medium"), url("/fonts/Gilroy-Medium.woff2") format("woff2"), url("/fonts/Gilroy-Medium.otf") format("opentype"); }
@font-face { font-family: "Gilroy"; font-weight: 600; font-display: swap;
  src: local("Gilroy-SemiBold"), url("/fonts/Gilroy-SemiBold.woff2") format("woff2"), url("/fonts/Gilroy-SemiBold.otf") format("opentype"); }
@font-face { font-family: "Gilroy"; font-weight: 700; font-display: swap;
  src: local("Gilroy-Bold"), url("/fonts/Gilroy-Bold.woff2") format("woff2"), url("/fonts/Gilroy-Bold.otf") format("opentype"); }

:root {
  --dark: #141414;
  --dark-2: #444444;
  --light: #f4f4f6;
  --light-2: #e7e7e7;
  --light-3: #d2d2d4;
  --grey: #979797;
  --white: #ffffff;
  --coral: #ff634a;
  --green: #0dff00;
  --font: "Gilroy", "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad: clamp(1.5rem, 5vw, 4.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--light);
  color: var(--dark);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout: dark half and light half */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4.5vw, 3.5rem) var(--pad);
}

.dark {
  background: var(--dark);
  color: var(--light);
  justify-content: space-between;
  gap: 3rem;
}

.light {
  background: var(--light);
  justify-content: center;
  gap: 1.5rem;
}

/* Cubes */

.cube {
  display: block;
  aspect-ratio: 22.23 / 25.66;
  overflow: visible;
}

.cube-top { fill: var(--top); }
.cube-left { fill: var(--left); }
.cube-right { fill: var(--right); }

.cube-coral { --top: #ff9080; --left: #ff634a; --right: #d9452d; }
.cube-dark  { --top: #5a5a5a; --left: #2e2e2e; --right: #141414; }
.cube-green { --top: #13ff00; --left: #33fc17; --right: #1ac108; }

/* Large cube sitting on the line between the two halves. */
.floater {
  --top: #ff9080; --left: #ff634a; --right: #d9452d;
  position: absolute;
  z-index: 2;
  top: clamp(2rem, 4.5vw, 3.5rem);
  right: 0;
  width: clamp(64px, 6.5vw, 96px);
  transform: translateX(50%);
  animation: bob 6s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(50%) translateY(0) rotate(0deg); }
  50% { transform: translateX(50%) translateY(-10px) rotate(4deg); }
}

/* Dark half */

.logo {
  width: min(250px, 70%);
}

.logo-tagline {
  margin-top: 0.7rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--light-3);
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Keeps the intro vertically centred in the space below the logo. */
.intro {
  margin-block: auto;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.statement {
  max-width: 13ch;
  margin-top: 1.25rem;
  font-size: clamp(2.4rem, 4.6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--white);
  text-wrap: balance;
}

.hl {
  color: var(--coral);
}

.lead {
  max-width: 44ch;
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--light-3);
}

.cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin-top: 2.25rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--coral);
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-mail {
  font-weight: 500;
}

.cta:hover,
.cta:focus-visible {
  background: var(--white);
  transform: translateY(-2px) rotate(-1deg);
  outline: none;
}

.cta:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

/* Light half */

.light .eyebrow {
  color: #6b6b6f;
}

.cards {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.card {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 1.75rem);
  padding: clamp(1.25rem, 2.2vw, 1.9rem);
  border-radius: 24px;
  background: var(--white);
  transition: transform 0.25s ease;
}

.card .cube {
  flex: none;
  width: clamp(44px, 4.4vw, 60px);
  transition: transform 0.35s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card:hover .cube {
  transform: rotate(-10deg) scale(1.08);
}

.card h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card p {
  max-width: 38ch;
  margin-top: 0.3rem;
  color: #4a4a4d;
}

.card-solid {
  background: var(--dark);
  color: var(--white);
}

.card-solid p {
  color: var(--light-3);
}

.legal {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6b6b6f;
}

/* Stacked layout for tablets and phones */

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dark {
    padding-bottom: 4.5rem;
  }

  .light {
    padding-top: 4rem;
    padding-bottom: 2.5rem;
  }

  .floater {
    top: auto;
    bottom: 0;
    right: var(--pad);
    width: 64px;
    transform: translateY(50%);
    animation-name: bob-stacked;
  }

  @keyframes bob-stacked {
    0%, 100% { transform: translateY(50%) rotate(0deg); }
    50% { transform: translateY(calc(50% - 8px)) rotate(4deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .floater {
    animation: none;
  }

  .cta,
  .card,
  .card .cube {
    transition: none;
  }
}
