:root {
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --line: #e5e8f0;
  --line-strong: #d6dbe8;
  --text: #1b1f28;
  --muted: #646b78;
  --accent: #5a6cff;
  --accent-soft: rgba(90, 108, 255, 0.08);
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shell: min(1120px, calc(100vw - 2rem));
  --header-height: 4.5rem;
  --ease: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
section,
header,
footer {
  position: relative;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
  border: 0;
}

[hidden] {
  display: none !important;
}

p,
h1,
h2,
h3,
figure,
pre {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.04;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-weight: 800;
}

h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.45rem);
}

h2 {
  font-size: clamp(1.95rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
}

p {
  color: var(--muted);
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

.site-shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.site-mark::before {
  content: "";
  width: 1.45rem;
  height: 1.45rem;
  background: url("../images/motionsmith-mark.svg") center / contain no-repeat;
  flex: none;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  transform: translateY(-160%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rich-copy {
  max-width: 60ch;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
}

.rich-copy p + p {
  margin-top: 1rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    border-color var(--ease),
    color var(--ease),
    transform var(--ease),
    background var(--ease);
}

.link-chip::after {
  content: "→";
  font-size: 0.85rem;
}

.link-chip__icon{display:inline-flex;align-items:center;justify-content:center;width:1rem;height:1rem;flex:0 0 auto}.link-chip__icon svg{width:100%;height:100%;fill:currentColor}

.link-chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.link-chip--solid {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.link-chip--solid:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

pre {
  overflow: auto;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

code {
  color: var(--text);
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.91rem;
}

.video-figure {
  max-width: 64rem;
  margin: 0 auto;
}
.video-launch {
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #05070f;
  cursor: pointer;
  overflow: hidden;
}
.video-launch img,
.video-figure video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05070f;
}
.video-figure video {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.video-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.08), rgba(8, 10, 18, 0.28));
}
.video-launch__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-weight: 800;
  transform: translate(-50%, -50%);
}
.video-launch__play::before {
  content: "▶";
  font-size: 0.82rem;
}

@media (max-width: 700px) {
  .hero__intro .link-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0.85rem;
  }

  .hero__intro .link-chip {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    padding: 0.88rem 1rem;
  }

  .hero__intro .link-chip::after {
    margin-left: auto;
  }

  .hero__intro .link-chip--solid {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .hero__intro .link-row {
    grid-template-columns: 1fr;
  }

  .hero__intro .link-chip--solid {
    grid-column: auto;
  }
}
