/* Flint marketing site styles. One file, no build step. */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600.woff2') format('woff2');
}

:root {
  --background: #ffffff;
  --foreground: #2e3847;
  --muted: #616977;
  --primary: #316195;
  --secondary: #f99c24;
  --secondary-stop-1: #ffb24f;
  --secondary-stop-2: #ff950d;
  --light: #f1f4f8;
  --error: #e94949;
  --hero-top: #f6f9fc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #90a1b9;
  --emerald: #00bc7d;
  --prose-body: #374151;
  --prose-bold: #111827;
}

/* Base */

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

html,
body {
  overflow-x: hidden;
}

body {
  position: relative;
  margin: 0;
  background: var(--background);
  color: var(--muted);
  font-family: 'Poppins', system-ui, arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.75rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

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

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

.contain {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.contain-blog {
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .contain {
    padding-inline: 3rem;
  }
}

/* Not inherited, so a nested .stack gets the default unless it sets its own. */
@property --gap {
  syntax: '<length>';
  inherits: false;
  initial-value: 1.5rem;
}

.stack > * + * {
  margin-top: var(--gap);
}

.center {
  text-align: center;
}

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

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

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

.medium {
  font-weight: 500;
}

.link {
  color: var(--primary);
}

.link:hover {
  text-decoration: underline;
}

.heading {
  color: var(--foreground);
  font-weight: 600;
  line-height: 1.15em;
}

.title {
  color: var(--foreground);
  font-weight: 600;
  line-height: 1.25em;
}

.balance {
  text-wrap: balance;
}

.page-title {
  color: var(--primary);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 3rem;
  }
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Sections */

.section {
  position: relative;
  padding-block: 6rem;
}

@media (min-width: 640px) {
  .section {
    padding-block: 9rem;
  }
  .section.section-sm {
    padding-block: 6rem;
  }
}

.section-gradient,
.hero {
  background: linear-gradient(to bottom, var(--hero-top), var(--background));
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.875rem 2rem;
  border: 1px solid rgb(0 0 0 / 5%);
  border-radius: 0.5rem;
  background: linear-gradient(to right, var(--secondary-stop-1), var(--secondary-stop-2));
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
  white-space: nowrap;
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.2s;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.95);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
}

.btn-grey {
  background: var(--slate-400);
}

.btn-full {
  width: 100%;
}

.btn .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.cta-row {
  display: flex;
  justify-content: center;
}

/* Header and navigation */

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgb(46 56 71 / 5%);
  background: var(--background);
  box-shadow:
    0 20px 25px -5px rgb(46 56 71 / 3%),
    0 8px 10px -6px rgb(46 56 71 / 3%);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.industry .header-bar {
  padding-block: 0.5rem;
}

.brand {
  display: block;
  width: 5.5rem;
}

.brand img {
  width: 100%;
  height: auto;
}

.industry-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-nav,
.header-actions {
  display: none;
}

/* Mobile menu: a <details> element, so it opens without JavaScript. */

.mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-right: -0.75rem;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.hamburger {
  position: relative;
  width: 1.625rem;
  height: 1.125rem;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--foreground);
  transition:
    transform 0.3s,
    opacity 0.2s,
    top 0.3s;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: calc(50% - 1px);
}

.hamburger span:nth-child(3) {
  top: calc(100% - 2px);
}

.mobile-menu[open] .hamburger span:nth-child(1) {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.mobile-menu[open] .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu[open] .hamburger span:nth-child(3) {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

.mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  /* The rest of the screen below the header, scrolling if it doesn't fit. */
  height: calc(100dvh - 100%);
  overflow-y: auto;
  padding-block: 1rem 3rem;
  background: var(--background);
  color: var(--foreground);
  animation: fade-in 0.3s ease-in-out;
}

/* On the root: html's overflow-x makes it, not body, the viewport's scroller. */
html:has(.mobile-menu[open]) {
  overflow: hidden;
}

.mobile-panel > * + * {
  border-top: 1px solid rgb(46 56 71 / 10%);
}

.mobile-group {
  padding-block: 0.875rem;
  font-weight: 500;
}

.mobile-group ul {
  margin-top: 0.5rem;
  padding-left: 1rem;
  list-style: none;
}

.mobile-group a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding-block: 0.625rem;
  font-weight: 400;
}

.mobile-group .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.mobile-login {
  padding-block: 0.875rem;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }

  .header-bar {
    position: relative;
    padding-block: 1.25rem;
  }

  .desktop-nav {
    position: absolute;
    left: 50%;
    display: flex;
    gap: 2rem;
    transform: translateX(-50%);
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

.dropdown {
  position: relative;
  color: var(--foreground);
}

.dropdown-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 0 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
  transition: color 0.3s;
}

.dropdown-label .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.5;
}

.dropdown-label::after {
  content: '';
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  width: 0;
  height: 4px;
  background: var(--primary);
  transition: width 0.3s;
}

.dropdown:hover .dropdown-label,
.dropdown:focus-within .dropdown-label {
  color: var(--primary);
}

.dropdown:hover .dropdown-label::after,
.dropdown:focus-within .dropdown-label::after {
  width: 40%;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 12rem;
  margin-top: 0;
  padding: 0.5rem 0;
  border-radius: 0.375rem;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(2 6 23 / 5%),
    0 1px 3px 0 rgb(0 0 0 / 10%),
    0 1px 2px -1px rgb(0 0 0 / 10%);
  list-style: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
}

/* Bridges the gap between the label and the menu so hover isn't lost. */
.dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  margin-top: 0.5rem;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.dropdown-menu a:hover {
  background: var(--slate-100);
}

.login-link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.login-link:hover {
  opacity: 1;
}

/* Footer */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--slate-200);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
}

.site-footer .brand {
  width: 6rem;
  margin-inline: auto;
}

.copyright {
  margin-top: 1rem;
  color: var(--slate-400);
}

.footer-links {
  position: relative;
  top: -0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-links .privacy {
  order: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-item svg {
  width: 1rem;
  fill: var(--primary);
}

@media (min-width: 640px) {
  .footer-links {
    flex-direction: row;
    gap: 1.5rem;
  }

  .footer-links .privacy {
    order: 0;
  }
}

@media (min-width: 1024px) {
  .site-footer {
    flex-direction: row;
    align-items: flex-end;
    text-align: left;
  }

  .site-footer .brand {
    margin-inline: 0;
  }
}

/* Hero */

.hero-inner {
  position: relative;
  padding-block: 3rem;
}

.hero-text {
  position: relative;
  --gap: 2rem;
}

.hero h1 {
  font-size: 2.25rem;
}

.hero .lead {
  max-width: 42rem;
  margin-inline: auto;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .hero-inner {
    padding-block: 6rem;
  }

  .hero h1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-inner {
    padding-block: 9rem;
  }
}

/* Decorative dots around the hero text. */

.dot,
.image-dot {
  -webkit-mask: url('/icons/dot.svg') center / contain no-repeat;
  mask: url('/icons/dot.svg') center / contain no-repeat;
}

.dot {
  aspect-ratio: 96 / 80;
  background: var(--primary);
}

.dot-secondary {
  background: var(--secondary);
}

.dot-light {
  background: var(--light);
}

.hero-dot {
  position: absolute;
  animation: rise 1.5s cubic-bezier(0.25, 1, 0.5, 1) var(--delay, 0s) both;
}

.hero-dot > * {
  opacity: 0.15;
  transition: opacity 0.6s;
}

.hero-dot > .image-dot {
  height: auto;
  opacity: 0.2;
}

.hero-dot > *:hover {
  opacity: 1;
}

.hero-dot.d1 {
  top: 3.5rem;
  left: -2.5rem;
}
.hero-dot.d1 .dot {
  width: 5.5rem;
}
.hero-dot.d2 {
  top: 16.5rem;
  left: 0;
  z-index: 1;
  display: none;
  --delay: 0.5s;
}
.hero-dot.d2 .image-dot {
  width: 9.5rem;
}
.hero-dot.d3 {
  bottom: 4rem;
  left: 1.5rem;
  --delay: 0.25s;
}
.hero-dot.d3 .dot {
  width: 2.25rem;
}
.hero-dot.d4 {
  top: 6rem;
  right: -2.5rem;
  --delay: 0.375s;
}
.hero-dot.d4 .dot {
  width: 4.5rem;
}
.hero-dot.d5 {
  top: 14rem;
  right: 0;
  z-index: 1;
  display: none;
  --delay: 0.125s;
}
.hero-dot.d5 .image-dot {
  width: 10rem;
}
.hero-dot.d6 {
  right: 1.5rem;
  bottom: 5.5rem;
  --delay: 0.625s;
}
.hero-dot.d6 .dot {
  width: 2.5rem;
}

@media (min-width: 640px) {
  .hero-dot.d1 {
    left: 1.5rem;
  }
  .hero-dot.d3 {
    left: 9rem;
  }
  .hero-dot.d3 .dot {
    width: 3rem;
  }
  .hero-dot.d4 {
    right: 1.5rem;
  }
  .hero-dot.d6 {
    right: 9rem;
  }
  .hero-dot.d6 .dot {
    width: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-dot.d1 {
    left: 12rem;
  }
  .hero-dot.d2,
  .hero-dot.d5 {
    display: block;
  }
  .hero-dot.d3 {
    left: 16.5rem;
  }
  .hero-dot.d4 {
    right: 12.5rem;
  }
  .hero-dot.d6 {
    right: 17rem;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Home page solution cards */

.solution-cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .solution-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.solution-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
}

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

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgb(var(--tint) / 5%), rgb(var(--tint) / 80%));
  transition: opacity 0.5s;
}

.solution-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgb(var(--tint) / 30%), rgb(var(--tint) / 95%));
  opacity: 0;
  transition: opacity 0.5s;
}

.solution-card:hover::after {
  opacity: 1;
}

.solution-card .blur {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 75%;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent);
  mask-image: linear-gradient(to top, #000 20%, transparent);
}

.solution-card .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 0 2rem 1.5rem;
  color: rgb(255 255 255 / 90%);
  font-size: 1rem;
  line-height: 1.5rem;
}

.solution-card h3 {
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: 1.875rem;
}

.tint-secondary {
  --tint: 249 156 36;
}

.tint-primary {
  --tint: 49 97 149;
}

/* Client logo marquee */

.logos {
  overflow: hidden;
  padding-block: 3rem 6rem;
}

.logo-row {
  white-space: nowrap;
}

.logo-row + .logo-row {
  margin-top: 3rem;
}

.logo-row ul {
  display: inline-flex;
  width: max-content;
  padding: 0;
  list-style: none;
  animation: marquee 100s linear infinite;
}

.logo-row.reverse ul {
  animation: marquee-reverse 130s linear infinite;
}

.logo-row li {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  padding-inline: 2rem;
}

.logo-row img {
  width: var(--w);
  height: auto;
}

@media (min-width: 640px) {
  .logo-row + .logo-row {
    margin-top: 4rem;
  }

  .logo-row li {
    padding-inline: 5rem;
  }

  .logo-row img {
    width: var(--w-sm);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes marquee-reverse {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-row ul,
  .hero-dot {
    animation: none;
  }
}

/* Cards and grids */

.card {
  padding: 1.5rem;
  border: 1px solid rgb(46 56 71 / 4%);
  border-radius: 0.75rem;
  background: rgb(241 244 248 / 25%);
}

.card > * + * {
  margin-top: 0.75rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.625;
}

.card-icon {
  display: inline-block;
  padding: 0.375rem;
  border-radius: 0.25rem;
}

.card-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 1.75;
}

.card-icon.error {
  background: #fef2f2;
  color: var(--error);
}

.card-icon.primary {
  background: #e2f0ff;
  color: var(--primary);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid.md-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid.lg-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section-intro {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.section-intro.wide {
  max-width: 48rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-5xl-6xl {
  font-size: 3rem;
}

@media (min-width: 640px) {
  .text-5xl-6xl {
    font-size: 3.75rem;
  }
}

/* Manufacturing page */

.methods-badge {
  display: inline-block;
  padding: 1px;
  border-radius: 9999px;
  background: linear-gradient(to right, #7bb2ee, #417bb9);
}

.methods-badge span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem;
  border-radius: 9999px;
  background: #eff8ff;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1rem;
}

.methods-badge .icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: #e2f0ff;
}

@media (min-width: 640px) {
  .methods-badge span {
    padding-block: 0.25rem;
  }

  .methods-badge .icon {
    width: 1rem;
    height: 1rem;
  }
}

.problem-sections > * + * {
  margin-top: 6rem;
}

.cascade {
  display: grid;
  overflow: hidden;
  border: 1px solid rgb(233 73 73 / 50%);
  border-radius: 0.75rem;
}

.cascade > div {
  position: relative;
  padding: 1.5rem;
  background: var(--bg);
}

.cascade > div > div {
  position: relative;
  z-index: 1;
}

.cascade p {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.625;
}

.cascade .dark {
  color: var(--foreground);
}

/* The arrow from one stage into the next. */
.cascade .arrow {
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  width: 100%;
}

.cascade .arrow-wide {
  display: none;
}

@media (min-width: 1024px) {
  .cascade {
    grid-template-columns: repeat(4, 1fr);
  }

  .cascade .arrow {
    display: none;
  }

  .cascade .arrow-wide {
    position: absolute;
    top: 0;
    left: -1.5rem;
    display: block;
    height: 100%;
  }
}

.solution-rows > * + * {
  margin-top: 4rem;
}

.solution-row {
  display: grid;
  gap: 2rem;
}

.solution-row .points > * + * {
  margin-top: 2rem;
}

.solution-row h3 {
  font-size: 1.5rem;
  text-align: center;
}

.solution-row .photo {
  position: relative;
  display: none;
}

.solution-row .photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
}

.photo-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--secondary);
  border-radius: 9999px;
  background: rgb(249 156 36 / 70%);
  box-shadow: 0 0 0 1px rgb(249 156 36 / 20%);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1rem;
}

.photo-tag .icon {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .solution-row h3 {
    font-size: 1.875rem;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .solution-row {
    grid-template-columns: 1fr 1fr;
  }

  .solution-row .photo {
    display: block;
  }

  .solution-row.flip .points {
    order: 2;
  }
}

/* Talent development page */

.video {
  max-width: 56rem;
  margin: 0 auto 6rem;
  overflow: hidden;
  border: 1px solid rgb(46 56 71 / 10%);
  border-radius: 0.75rem;
}

.video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.split {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.split-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.split-intro h2 {
  font-size: 1.875rem;
}

.feature-grid {
  display: grid;
  gap: 3rem;
}

.feature h3 {
  color: var(--foreground);
  font-size: 1.125rem;
  font-weight: 600;
}

.feature > * + * {
  margin-top: 1rem;
}

.feature img {
  width: 3rem;
  height: 3rem;
}

.features-6 .feature img {
  width: 2.25rem;
  height: 2.25rem;
}

.features-6 {
  margin-bottom: 3rem;
}

.activity-intro {
  margin-bottom: 6rem;
}

.activity-intro h2 {
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  .split-intro h2,
  .activity-intro h2 {
    font-size: 2.25rem;
  }

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

  .features-6 {
    row-gap: 6rem;
    text-align: center;
  }

  .features-6 .feature img {
    margin-inline: auto;
  }

  .activity-intro {
    width: 75%;
    margin-inline: auto;
    text-align: center;
  }

  .activity-intro h2 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .split {
    flex-direction: row;
  }

  .split-intro {
    width: 40%;
    gap: 2rem;
  }

  .split-intro h2,
  .activity-intro h2 {
    font-size: 3rem;
  }

  .split .feature-grid {
    width: 60%;
  }

  .features-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact section */

.contact {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-info {
  position: relative;
}

/* Large pale dot behind the section's heading. */
.backdrop-dot {
  position: absolute;
  top: -6rem;
  left: -18rem;
  width: 34.375rem;
}

.contact-details {
  position: relative;
}

.contact-info h2 {
  margin-bottom: 1rem;
  font-size: 3rem;
}

.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info .intro {
  margin-bottom: 3rem;
}

.map {
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 0 0 1px rgb(15 23 42 / 5%);
}

.map iframe {
  width: 100%;
  height: 265px;
  border: 0;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-list li:first-child {
  align-items: flex-start;
}

.contact-list img {
  width: 1rem;
}

.contact-list li:first-child img {
  position: relative;
  top: 0.375rem;
  width: 0.875rem;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1.5rem 2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  font-weight: 600;
  line-height: 1.15em;
}

.input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

textarea.input {
  min-height: 10rem;
  max-height: 16rem;
  resize: vertical;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
}

/* Hidden checkbox that only bots fill in; the function drops submissions
   that tick it. Kept off-screen rather than display:none so naive bots still
   see it. */
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .contact {
    flex-direction: row;
  }

  .contact-info {
    width: 40%;
  }

  .contact-form-wrap {
    width: 60%;
  }

  .contact-form {
    grid-template-columns: 1fr 1fr;
    padding: 4rem 3rem 3rem;
    border-radius: 1.5rem;
    background: var(--slate-100);
  }

  .contact-form .span-2 {
    grid-column: span 2;
  }
}

/* Blog and news */

.listing > * + * {
  margin-top: 3rem;
}

.listing-header {
  --gap: 1.5rem;
  text-align: center;
}

.post-cards {
  display: grid;
  gap: 4rem 2rem;
}

@media (min-width: 640px) {
  .post-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.post-card > * + * {
  margin-top: 1rem;
}

.post-card .cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
}

.post-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.post-card:hover .cover img {
  transform: scale(1.1);
}

.post-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  object-fit: cover;
}

.post-card h2 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s;
}

.post-card h2 span {
  color: var(--secondary);
  transition: color 0.2s;
}

.post-card:hover h2 {
  color: var(--secondary);
}

.post-card:hover h2 span {
  color: var(--primary);
}

.post-card .summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-list > a {
  display: block;
  padding-block: 2rem;
  border-top: 1px solid var(--slate-200);
}

.news-list > a:first-child {
  padding-top: 0;
  border-top: 0;
}

.news-list > a:last-child {
  padding-bottom: 0;
}

.news-list > a > * + * {
  margin-top: 0.75rem;
}

.news-list .date {
  font-size: 0.875rem;
  opacity: 0.6;
}

.news-list h2 {
  margin-bottom: 0.25rem;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2rem;
  transition: color 0.2s;
}

.news-list a:hover h2 {
  color: var(--secondary);
}

.news-list .summary {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.press-label {
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1rem;
  text-transform: uppercase;
}

.article > * + * {
  margin-top: 2.5rem;
}

.article-header > * + * {
  margin-top: 2.5rem;
}

.article-header .press-label {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.article-header .press-label + .page-title {
  margin-top: 1.5rem;
}

.article-header time,
.author time {
  color: var(--slate-400);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author .avatar {
  width: 3rem;
  height: 3rem;
}

.author address {
  color: var(--foreground);
  font-style: normal;
  font-weight: 600;
  line-height: 1rem;
}

.article-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.5rem;
}

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

.legal > * + * {
  margin-top: 2rem;
}

/* Rich text from the former CMS: blog posts, news, privacy policy, terms. */

.prose {
  color: var(--prose-body);
  font-size: 1rem;
  line-height: 1.75;
}

.prose p,
.prose ul,
.prose ol {
  margin-block: 1.25em;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5 {
  color: var(--primary);
  font-weight: 600;
  line-height: 1.625;
}

.prose h1 {
  margin: 0 0 0.889em;
  font-size: 2.25em;
}

.prose h2 {
  margin: 2em 0 1rem;
  font-size: 1.5em;
}

/* The orange rule under each section heading. */
.prose h2::after {
  content: '';
  display: block;
  width: 7rem;
  height: 0.375rem;
  margin-top: 0.5rem;
  background: var(--secondary);
}

.prose h3 {
  margin: 1.6em 0 0.6em;
  font-size: 1.25em;
}

.prose h4,
.prose h5 {
  margin: 1.5em 0 0.5em;
  font-size: 1em;
}

.prose strong {
  color: var(--prose-bold);
  font-weight: 600;
}

.prose a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.prose ul,
.prose ol {
  padding-left: 1.625em;
}

.prose li {
  margin-block: 0.5em;
  padding-left: 0.375em;
}

.prose ul li::marker {
  color: var(--secondary);
}

.prose ol li::marker {
  color: #6b7280;
}

.prose blockquote {
  margin-block: 1.6em;
  padding: 2rem;
  border-radius: 0.75rem;
  background: var(--slate-100);
  box-shadow: 0 0 0 1px rgb(2 6 23 / 5%);
  color: var(--prose-bold);
  font-style: italic;
  font-weight: 500;
}

.prose img {
  height: auto;
  margin-block: 2em;
  border-radius: 1.5rem;
}

/* Contact form result pages */

.notice {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.notice > * + * {
  margin-top: 1.5rem;
}
