:root {
  --canvas: #0a0e24;
  --surface-1: #141b3d;
  --surface-2: #1c2450;
  --surface-3: #252f5e;
  --navy: #1b2a6b;
  --hairline: rgba(178, 190, 220, 0.10);
  --hairline-soft: rgba(178, 190, 220, 0.06);

  --ink: #f4f7ff;
  --ink-muted: #aab3cf;
  --ink-subtle: #626c8c;
  --ink-inverse: #0a0e24;

  --blue: #2f6bff;
  --cyan: #2dc7ff;

  --font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xxl: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 500 16px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 48px;
}

.section {
  padding-block: 96px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius-md);
  min-height: 40px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: var(--ink);
}

.btn-primary:hover {
  background: color-mix(in oklab, var(--blue), white 12%);
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img {
  display: block;
  height: 26px;
  width: auto;
}

.nav-link {
  color: var(--ink-muted);
  font-size: 14px;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-email {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: 14px;
}

.nav-email:hover {
  color: var(--ink);
}

/* Interior pages */

.page {
  min-height: 60vh;
  padding-block: 96px;
}

.page h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.028em;
}

.page p {
  max-width: 65ch;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1.69;
}

.projects-list {
  max-width: 720px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.projects-list li {
  padding-block: 24px;
  border-bottom: 1px solid var(--hairline);
}

.projects-list h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
}

.projects-list p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
}

/* Hero */

.hero {
  overflow: clip;
  padding-block: 112px 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 0.65fr);
  gap: 48px;
  align-items: center;
}

.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  max-width: 264px;
  margin-left: auto;
}

.hero-logo {
  position: relative;
  z-index: 1;
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 1;
}

.hero-chevron {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .hero-chevron-right {
    animation: hero-chevron-slide 900ms ease-out both;
  }

  .hero-chevron-middle {
    animation: hero-chevron-slide 980ms ease-out 100ms both;
  }

  .hero-chevron-left {
    animation: hero-chevron-slide 1060ms ease-out 200ms both;
  }
}

@keyframes hero-chevron-slide {
  0% {
    transform: translateX(calc(-100vw + 48px));
  }

  72% {
    transform: translateX(18px);
  }

  88% {
    transform: translateX(-6px);
  }

  100% {
    transform: translateX(0);
  }
}

.hero h1 {
  font-size: clamp(28px, 3.1vw, 47px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.03em;
  max-width: 32ch;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.69;
  color: var(--ink-muted);
  max-width: 56ch;
  margin-top: 24px;
}

/* CTA banner */

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--navy);
  border-radius: var(--radius-xxl);
  padding: 48px;
}

.cta-banner h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
}

.cta-banner p {
  font-size: 18px;
  line-height: 1.69;
  color: var(--ink-muted);
  margin-top: 12px;
  max-width: 48ch;
}

/* Footer */

footer {
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-block: 64px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  line-height: 1.38;
  color: var(--ink-muted);
  padding-block: 5px;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-block: 24px;
  font-size: 13px;
  color: var(--ink-subtle);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: flex-start;
    max-width: 185px;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 24px;
  }

  .section {
    padding-block: 64px;
  }

  .page {
    padding-block: 64px;
  }

  .hero {
    padding-block: 80px 64px;
  }

  .btn {
    min-height: 44px;
  }

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

@media (max-width: 480px) {
  .nav-inner {
    gap: 16px;
  }

  .nav .brand span {
    display: none;
  }

  .nav-email {
    display: none;
  }

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