/* Conversion, keyboard, and tablet refinements for the studio site. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font: 500 13px "DM Mono", monospace;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

:focus-visible {
  outline: 3px solid #71e7ff;
  outline-offset: 4px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.email-link:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--paper);
}

.email-link span {
  font-size: 19px;
  line-height: 1;
}

/* Fixed header stays legible over every section, not just the hero. */
.site-header {
  position: fixed;
  top: 0;
  z-index: 10;
  background: rgba(4, 12, 28, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

/* Hamburger bars need to read against the now-permanent dark header. */
.menu-toggle i {
  background: #fff;
}

/* Footer stays in normal flow so its (variable-height) content never covers the page. */
footer {
  flex-wrap: wrap;
  row-gap: 12px;
}

/* Section right after the hero needs room so the fixed header doesn't cover it while scrolling. */
.idea-rail {
  padding-top: 112px;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

[id] {
  scroll-margin-top: 100px;
}

@media (min-width: 701px) and (max-width: 1040px) {
  .site-header { padding-inline: 4vw; }
  .hero {
    min-height: 680px;
    padding: 128px 4vw 34px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    gap: 3vw;
  }
  .hero-main { min-height: 510px; }
  .hero-visual { min-height: 460px; height: 460px; }
  .hero-bottom p { font-size: 16px; max-width: 310px; }
  .rail-steps { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .rail-steps article:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 700px) {
  .email-link { width: 100%; justify-content: space-between; }
  .idea-rail { padding-top: 92px; }
  [id] { scroll-margin-top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; animation-duration: 1ms !important; }
}