:root {
  --paper: #eef3f8;
  --white: #ffffff;
  --ink: #10182b;
  --ink-soft: #46506a;
  --line: #c9d5e3;
  --pencil: #8ccbf5; /* non-photo blue, the storyboard artist's pencil */
  --cobalt: #1f3fd1;
  --cobalt-deep: #172fa3;
  --highlight: #ffd84a;
  --red: #c8321b;

  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --script: 'Courier Prime', 'Courier New', monospace;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 7.5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip:focus {
  left: 0.5rem;
}

/* Screenplay-style scene heading, used as the eyebrow throughout */
.slug {
  font-family: var(--script);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.slug-light {
  color: var(--pencil);
}

.section-title {
  margin-top: 0.75rem;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section-title-light {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 0;
  border-radius: 4px;
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--cobalt-deep);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.9375rem;
}

.btn-full {
  width: 100%;
}

.btn-invert {
  background: var(--ink);
}

.btn-invert:hover {
  background: #000;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.wordmark {
  margin-right: auto;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.nav a,
.header-phone {
  text-decoration: none;
}

.nav a:hover,
.header-phone:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-phone {
  display: none;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.hero-title {
  margin-top: 1rem;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-title mark {
  color: inherit;
  background: linear-gradient(transparent 12%, var(--highlight) 12%, var(--highlight) 92%, transparent 92%);
  padding-inline: 0.12em;
  margin-inline: -0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-points {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
  font-weight: 500;
}

.hero-points li {
  position: relative;
  padding-left: 1.75rem;
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 1rem;
  height: 0.45rem;
  background: var(--highlight);
  border: 1.5px solid var(--ink);
}

/* Lead form */
.form-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 2rem);
  scroll-margin-top: 6rem;
}

.form-title {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.form-intro {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.field {
  margin-top: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #8793a8;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.field input::placeholder {
  color: #8793a8;
}

.field input:focus-visible {
  outline-offset: 0;
  border-color: var(--cobalt);
}

.field input[aria-invalid='true'] {
  border-color: var(--red);
}

.field-error {
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--red);
}

.field-pair {
  display: grid;
  gap: 0 1rem;
}

.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.85rem;
  background: var(--paper);
  border-radius: 4px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}

.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  accent-color: var(--cobalt);
}

.consent-optional {
  font-weight: 700;
  color: var(--ink);
}

.lead-form .btn-full {
  margin-top: 1.25rem;
}

.form-status {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--red);
  background: #fbeeeb;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-legal {
  margin-top: 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.form-done {
  display: grid;
  gap: 0.85rem;
  padding-block: 1rem;
}

.form-done:focus {
  outline: none;
}

/* Storyboard */
.board {
  padding-block: var(--section);
  background: var(--ink);
  color: #d5dcea;
}

.board-lede {
  margin-top: 1rem;
  max-width: 30rem;
}

.frames {
  display: grid;
  gap: 2.5rem 1.5rem;
  margin-top: 3rem;
}

.frame-art {
  aspect-ratio: 16 / 9;
  border: 1.5px solid #3a4763;
  border-radius: 3px;
  background: #0b1120;
}

.frame-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.draw {
  fill: none;
  stroke: var(--pencil);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.draw.hl {
  stroke: var(--highlight);
  stroke-width: 2.5;
}

.draw.fill {
  fill: color-mix(in srgb, var(--highlight) 22%, transparent);
}

.frame-slug {
  margin-top: 1rem;
  font-family: var(--script);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--highlight);
}

.frame-text {
  margin-top: 0.4rem;
  font-size: 1rem;
}

/* Each frame is pencilled in, in scene order, when the board scrolls into view */
@media (prefers-reduced-motion: no-preference) {
  .frames.will-draw .draw {
    stroke-dashoffset: 1;
  }

  .frames.will-draw .fill {
    fill-opacity: 0;
  }

  .frames.is-drawn .draw {
    stroke-dashoffset: 0;
    fill-opacity: 1;
    transition: stroke-dashoffset 0.9s ease, fill-opacity 0.4s ease 0.8s;
  }

  .frames.is-drawn .frame:nth-child(2) .draw {
    transition-delay: 0.45s, 1.25s;
  }

  .frames.is-drawn .frame:nth-child(3) .draw {
    transition-delay: 0.9s, 1.7s;
  }

  .frames.is-drawn .frame:nth-child(4) .draw {
    transition-delay: 1.35s, 2.15s;
  }
}

/* What we run */
.work {
  padding-block: var(--section);
}

.work-grid {
  display: grid;
  gap: 2.5rem;
}

.work-lede {
  margin-top: 1rem;
  max-width: 26rem;
  color: var(--ink-soft);
}

.work-item {
  padding-block: 1.5rem;
  border-top: 1.5px solid var(--ink);
}

.work-item:last-child {
  border-bottom: 1.5px solid var(--ink);
}

.work-item dt {
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
}

.work-item dd {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

/* What happens next */
.steps {
  padding-block: var(--section);
  background: var(--white);
  border-block: 1px solid var(--line);
}

.steps-list {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
}

.steps-list li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  background: var(--highlight);
  border: 1.5px solid var(--ink);
  font-family: var(--script);
  font-weight: 700;
}

.steps-list h3 {
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1.25rem;
}

.steps-list p {
  margin-top: 0.4rem;
  max-width: 22rem;
  color: var(--ink-soft);
}

/* Questions */
.faq {
  padding-block: var(--section);
}

.faq-grid {
  display: grid;
  gap: 2rem;
}

.faq-list details {
  border-top: 1.5px solid var(--ink);
}

.faq-list details:last-child {
  border-bottom: 1.5px solid var(--ink);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  font-family: var(--script);
  font-size: 1.375rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '\2212';
}

.faq-list details p {
  max-width: 40rem;
  padding-bottom: 1.25rem;
  color: var(--ink-soft);
}

/* Closing call to action */
.closer {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--highlight);
}

.closer-row {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.closer-title {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 900;
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Footer */
.footer {
  padding-block: 3.5rem 6.5rem;
  background: var(--ink);
  color: #b9c3d6;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.wordmark-footer {
  color: var(--white);
}

.footer-note {
  margin-top: 0.75rem;
  max-width: 20rem;
}

.footer-contact,
.footer-links {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  justify-items: start;
  font-style: normal;
}

.footer .slug {
  margin-bottom: 0.35rem;
  color: var(--pencil);
}

.footer a {
  text-underline-offset: 3px;
}

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

.footer-base {
  display: grid;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2b3550;
  font-size: 0.8125rem;
}

/* Mobile call-to-action bar, hidden while the form is on screen */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.sticky-cta.is-hidden {
  transform: translateY(110%);
}

/* Legal pages */
.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section);
}

.legal-body {
  max-width: 44rem;
}

.legal-title {
  margin-top: 0.75rem;
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.legal-date {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.legal-body h2 {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--ink);
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  scroll-margin-top: 6rem;
}

.legal-body p,
.legal-body ul {
  margin-top: 1rem;
}

.legal-body ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-body li + li {
  margin-top: 0.4rem;
}

.legal-body a {
  color: var(--cobalt);
  text-underline-offset: 3px;
}

.legal-callout {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-left: 6px solid var(--highlight);
  font-weight: 500;
}

@media (min-width: 40rem) {
  .field-pair {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .closer-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .header-phone {
    display: inline;
  }
}

@media (min-width: 72rem) {
  .nav {
    display: flex;
  }
}

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 27rem);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }

  .frames {
    grid-template-columns: repeat(4, 1fr);
  }

  .work-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 4rem;
  }

  .work-head {
    position: sticky;
    top: 7rem;
    align-self: start;
  }

  .sticky-cta {
    display: none;
  }

  .footer {
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 26rem) {
  .header .btn-small {
    display: none;
  }
}

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

  .btn,
  .sticky-cta {
    transition: none;
  }
}
