/* Self-hosted Google Fonts, latin subset (Manrope is a variable font covering 500-800). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-500.woff2") format("woff2");
}

:root {
  --bg: #0f0f0f;
  --card: #141414;
  --line: #1f1f1f;
  --text: #fff;
  --muted: #a2a2a2;
  --accent: #818cf8;
  --column: 640px;
}

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

html,
body {
  margin: 0;
  background: var(--bg);
}

body {
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p,
ul,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: inherit;
}

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

.accent {
  color: var(--accent);
}

/* Page and background glows */

.page {
  position: relative;
  overflow: clip;
  min-height: 100vh;
  background: var(--bg);
}

.glow {
  position: absolute;
  z-index: 1;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.glow-hero {
  top: -16px;
  left: -8px;
  width: 759px;
  aspect-ratio: 1.9176672384 / 1;
}

.glow-right {
  top: 858px;
  right: 0;
  width: 617px;
  aspect-ratio: 0.6618272841 / 1;
  opacity: 0.6;
}

.glow-left {
  top: 55%;
  left: 0;
  width: 764px;
  aspect-ratio: 1.1499654457 / 1;
  opacity: 0.6;
  transform: translateY(-50%);
}

.container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 112px;
  padding: 16px 0 32px;
}

.container > * {
  width: var(--column);
}

/* Hero */

.upper {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  line-height: 120%;
}

.logomark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #0f0e0f;
  overflow: hidden;
}

.logomark-h {
  position: absolute;
  top: 10px;
  left: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  line-height: 20px;
}

.logomark-underscore {
  position: absolute;
  top: 25px;
  left: 21px;
  width: 11px;
  height: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  padding: 8px 15px;
  border: 1px solid var(--text);
  border-radius: 24px;
  color: var(--text);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn img {
  width: 16px;
  height: 16px;
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.headline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h1 {
  color: var(--text);
  font-size: 48px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.02em;
}

.pill {
  position: absolute;
  top: 65px;
  left: 262px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  line-height: 100%;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mail {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  cursor: pointer;
}

.mail-address {
  color: var(--text);
  line-height: 100%;
  border-radius: 50px;
}

.mail-icon {
  width: 14px;
  height: 14px;
}

/* About */

.about {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-mark {
  color: var(--text);
  font-size: 48px;
  font-weight: 800;
  line-height: 100%;
  letter-spacing: -0.02em;
}

.about-text {
  position: relative;
  height: 179px;
  padding-top: 3px;
}

.about-text p {
  white-space: pre-wrap;
}

.about-text p + p {
  margin-top: 22.4px;
}

.avatar {
  position: absolute;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 100px;
  background: url("assets/images/avatar-bg.png") center / cover;
  overflow: hidden;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: inherit;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-jed {
  left: 4px;
}

.avatar-rey {
  left: 166px;
}

/* Sections */

.section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

h2 {
  color: var(--text);
  font-size: 32px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.02em;
  white-space: pre;
}

.cta-title-mobile {
  display: none;
}

.services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.service {
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 8px 8px 8px 16px;
  border-radius: 12px;
  color: var(--text);
  box-shadow: inset 0 0 0 0.75px var(--line);
}

.service img {
  width: 42px;
  height: 42px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.card {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 24px;
  min-width: 311px;
  padding: 24px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.card-stretch {
  align-self: stretch;
}

.card-wide-gap {
  gap: 40px;
}

.client {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 44px;
}

.client strong {
  color: var(--text);
  font-weight: 600;
}

/* Footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  line-height: 140%;
}

/* Copy-to-clipboard cursor */

.copy-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--line);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 12px;
  line-height: 100%;
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  scale: 0.9;
  transition: opacity 0.2s ease, scale 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.copy-cursor.is-visible {
  opacity: 1;
  scale: 1;
}

/* Tablet */

@media (min-width: 810px) and (max-width: 1199px) {
  .glow-hero {
    left: 54%;
    width: 119%;
    transform: translateX(-50%);
  }

  .glow-left {
    top: auto;
    bottom: 828px;
    transform: none;
  }
}

/* Phone */

@media (max-width: 809px) {
  :root {
    --column: min(358px, calc(100vw - 16px));
  }

  .glow-hero {
    left: -50px;
    width: calc(100% + 119px);
  }

  .glow-right {
    top: 780px;
    left: -103px;
    right: auto;
    width: calc(100% + 227px);
  }

  .glow-left {
    top: 54%;
    /* Framer anchors this glow to a centred 560px-wide wrapper on phones. */
    left: calc(50% - 484px);
  }

  .logo-text {
    display: none;
  }

  .pill {
    top: 68px;
    left: 252px;
  }

  .mail {
    flex-wrap: wrap;
    width: 100%;
  }

  .mail-label {
    width: 100%;
  }

  .about-text {
    height: 292px;
  }

  h2.cta-title {
    white-space: pre-wrap;
  }

  .cta-title-desktop {
    display: none;
  }

  .cta-title-mobile {
    display: block;
  }

  .cta-group-final {
    height: 133px;
  }

  .cta-group-final .mail {
    flex: 1 0 0;
    align-content: center;
  }

  .card-stretch {
    align-self: auto;
  }
}
