:root {
  --bg: #ffffff;
  --text: #151515;
  --muted: #f4f4f2;
  --line: rgba(21, 21, 21, 0.14);
  --hero-text: #ffffff;
  --accent: #151515;
  --contact-bg: #151515;
  --contact-text: #ffffff;

  --shell: 1180px;
  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 0.85rem;

  --step--1: clamp(0.82rem, 0.78rem + 0.18vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.22vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --step-2: clamp(1.8rem, 1.35rem + 2.1vw, 3.2rem);
  --step-3: clamp(2.8rem, 1.65rem + 5.5vw, 6.7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: "ubuntu", Inter, Helvetica, sans-serif;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: var(--step-3);
  font-weight: 700;
}

h2 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: var(--step-2);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: var(--step-1);
}

.shell {
  width: min(100% - (2 * var(--pad-x)), var(--shell));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  color: var(--hero-text);
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.5)
    ),
    url("assets/unossphere-hero.jpg") center center / cover no-repeat,
    radial-gradient(
      circle at 77% 23%,
      rgba(255, 255, 255, 0.13),
      transparent 0 18%,
      transparent 19%
    ),
    radial-gradient(
      circle at 22% 34%,
      rgba(255, 255, 255, 0.07),
      transparent 0 13%,
      transparent 14%
    ),
    linear-gradient(
      135deg,
      #0e1110 0%,
      #20251f 48%,
      #3b352e 100%
    );
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.14) 10%, rgba(0,0,0,.62) 100%);
}

.brand {
  position: absolute;
  z-index: 2;
  top: clamp(1.25rem, 3vw, 2.5rem);
  right: var(--pad-x);
  width: clamp(7.5rem, 12vw, 12rem);
}

.brand img {
  width: 100%;
}

.hero__content {
  padding-block: clamp(7rem, 18vh, 13rem) clamp(3rem, 8vh, 6rem);
}

.hero__intro {
  max-width: 42rem;
  margin-bottom: 3rem;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.35rem);
}

.eyebrow {
  margin-bottom: 1rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: "ubuntu", Inter, Helvetica, sans-serif;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.button--ghost {
  background: rgba(255,255,255,.04);
  color: #fff;
}

.button--light {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--line);
}

.section--muted {
  background: var(--muted);
}

.section--contact {
  background: var(--contact-bg);
  color: var(--contact-text);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: start;
}

.prose {
  max-width: 42rem;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem);
}

.prose > *:last-child,
.card > *:last-child {
  margin-bottom: 0;
}

.about-portrait {
  margin-top: 3rem;
  width: 100%;
  max-width: 420px;
}

.about-portrait img {
  display: block;
  width: 80%;
  height: auto;
  border-radius: var(--radius);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 5vw, 4rem);
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  min-height: 17rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--muted);
}

.card__number {
  display: inline-block;
  margin-bottom: 5rem;
  font-size: var(--step--1);
  opacity: .55;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 2rem;
}

.trust-list span {
  padding: .6rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
}

.axiom {
  margin-bottom: 2rem;
  font-size: clamp(1.4rem, 1.05rem + 1.2vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.questions {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.questions p {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.questions span {
  font-size: var(--step--1);
  opacity: .5;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

.contact__actions {
  justify-content: flex-end;
}

.text-link {
  font-size: var(--step--1);
}

.footer {
  padding-block: 1.4rem;
  font-size: var(--step--1);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: center;
}

.footer p {
  margin: 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    min-height: 82svh;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .card:last-child {
    grid-column: 1 / -1;
  }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
  .hero {
    min-height: 78svh;
  }

  .brand {
    width: clamp(10rem, 40vw, 16rem);
  }

  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact__actions {
    justify-content: flex-start;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card:last-child {
    grid-column: auto;
  }

  .card {
    min-height: 0;
  }

  .card__number {
    margin-bottom: 3.5rem;
  }
}

/* Phone */
@media (max-width: 480px) {
  :root {
    --pad-x: 1.1rem;
  }

  .hero {
    min-height: 100svh;
    background-position: center center;
  }

  .brand {
    width: clamp(9rem, 42vw, 50vw);
    right: var(--pad-x);
  }

  .hero__content {
    padding-bottom: 2rem;
  }

  .hero__actions,
  .contact__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Very wide screens */
@media (min-width: 1440px) {
  :root {
    --shell: 1280px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
