:root {
  --ink: #0b0b0d;
  --paper: #f3f3f0;
  --surface: #ffffff;
  --acid: #d8ff45;
  --muted: #55585f;
  --dark-muted: #a9abb2;
  --line: #c9cac6;
  --dark-line: #333338;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --content: 80rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

main:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.065em;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(4.5rem, 11vw, 10.5rem);
  line-height: 0.79;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.3rem, 7vw, 7.2rem);
  line-height: 0.84;
}

h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.9;
}

.eyebrow,
.hero-meta,
.sequence-number,
.film-sequence small,
.chapter-index small,
.status,
.frame-label,
.services-copy li span,
.services-copy li small,
.copyright {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.eyebrow {
  color: #3c3e42;
}

.site-header {
  background: var(--ink);
  color: #fff;
}

.header-inner,
.hero-inner,
.section-shell,
.services-shell,
.contact-shell,
.site-footer {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--dark-line);
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.wordmark img {
  width: 1.75rem;
  height: 1.75rem;
}

.wordmark-light {
  color: #fff;
}

nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.15rem, 3vw, 2.5rem);
}

nav a,
.footer-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover {
  color: var(--acid);
}

.hero {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-inner {
  min-height: min(54rem, calc(100svh - 5rem));
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) var(--gutter);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  color: var(--dark-muted);
}

.hero-meta p {
  margin: 0;
}

.hero-copy {
  display: grid;
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.5fr) minmax(17rem, 0.5fr);
}

.hero-copy h1 span {
  color: var(--acid);
}

.hero-intro-wrap {
  padding-bottom: 0.8rem;
}

.hero-intro {
  max-width: 30rem;
  margin-bottom: 2rem;
  color: #d4d5d8;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  text-decoration: none;
}

.button-acid {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.button-acid:hover {
  background: #e3ff77;
}

.film-sequence {
  display: grid;
  margin: clamp(3rem, 7vw, 6rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--dark-line);
  border-left: 1px solid var(--dark-line);
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.film-sequence li {
  position: relative;
  display: grid;
  min-height: 8.5rem;
  align-items: center;
  padding: 1.25rem;
  border-right: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
  grid-template-columns: 2.5rem 2.65rem 1fr;
  gap: 1rem;
}

.film-sequence li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  right: -0.8rem;
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  background: var(--acid);
  color: var(--ink);
  content: "→" / "";
  font-size: 0.9rem;
}

.film-sequence img {
  width: 2.65rem;
  height: 2.65rem;
  object-fit: cover;
}

.sequence-number,
.film-sequence small {
  color: var(--dark-muted);
}

.film-sequence small,
.film-sequence strong {
  display: block;
}

.film-sequence strong {
  margin-top: 0.15rem;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
}

.lineup-wordmark {
  font-family: var(--body);
  font-weight: 900 !important;
  letter-spacing: -0.055em;
}

.boardflow-wordmark {
  font-family: Impact, "Arial Narrow", sans-serif;
  font-weight: 400 !important;
  letter-spacing: 0.02em;
}

.scriptmate-wordmark {
  font-family: var(--body);
  font-weight: 800 !important;
  letter-spacing: -0.04em;
}

.section-shell {
  padding: clamp(5rem, 11vw, 10rem) var(--gutter);
}

.story-intro {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.story-intro > .eyebrow {
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.story-heading {
  display: grid;
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
}

.story-heading h2 {
  margin: 0;
}

.story-heading > p {
  max-width: 34rem;
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.product-story {
  width: min(100%, var(--content));
  margin-inline: auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-chapter {
  display: grid;
  min-height: 43rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  grid-template-columns: 8.5rem minmax(18rem, 0.82fr) minmax(23rem, 1.18fr);
}

.chapter-index {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.chapter-index span {
  font-family: var(--display);
  font-size: clamp(4.4rem, 7.5vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.chapter-index small {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.chapter-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(2rem, 4.5vw, 4rem);
}

.product-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.product-identity img {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 3.5rem;
  object-fit: cover;
}

.chapter-statement {
  margin: clamp(3rem, 7vw, 6rem) 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.chapter-copy > p:not(.chapter-statement) {
  max-width: 30rem;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.chapter-footer {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.status {
  padding: 0.45rem 0.55rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.product-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-weight: 850;
}

.product-frame {
  position: relative;
  min-width: 0;
  margin: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid currentColor;
}

.product-frame::before,
.product-frame::after {
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  height: 0.8rem;
  opacity: 0.4;
  background: repeating-linear-gradient(90deg, currentColor 0 1.1rem, transparent 1.1rem 2.2rem);
  content: "";
}

.product-frame::before {
  top: 0;
}

.product-frame::after {
  bottom: 0;
}

.frame-label {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid currentColor;
}

.frame-lineup {
  padding: 0 1.6rem 1.6rem;
  background: #f4f3ed;
  color: #1d2925;
}

.frame-lineup .frame-label {
  margin: 0 -1.6rem 1rem;
  padding-top: 1.5rem;
  background: #1d2925;
  color: #fffefd;
}

.member-row {
  display: grid;
  min-height: 6.2rem;
  align-items: center;
  border-bottom: 1px solid #cfd5cf;
  grid-template-columns: 3rem 1fr 5rem;
  gap: 1rem;
}

.member-row i {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: #d85f37;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.member-row span b,
.member-row span small {
  display: block;
}

.member-row span b {
  font-size: 0.92rem;
}

.member-row span small {
  color: #65706b;
  font-size: 0.7rem;
}

.member-row em {
  height: 0.45rem;
  background: #cfd5cf;
}

.product-boardflow {
  border-color: var(--dark-line);
  background: var(--ink);
  color: #fff;
}

.product-boardflow .chapter-index,
.product-boardflow .product-frame {
  border-color: var(--dark-line);
}

.product-boardflow .chapter-copy > p:not(.chapter-statement) {
  color: var(--dark-muted);
}

.product-boardflow .status {
  color: #d4a843;
}

.product-boardflow a:focus-visible {
  outline-color: var(--acid);
}

.frame-boardflow {
  padding: 0 1.6rem 1.6rem;
  background: #050506;
  color: #d4a843;
}

.frame-boardflow .frame-label {
  margin: 0 -1.6rem 1.4rem;
  padding-top: 1.5rem;
}

.shot-row {
  display: grid;
  min-height: 5.25rem;
  align-items: center;
  border-bottom: 1px solid #303034;
  grid-template-columns: 2.4rem 1fr 4rem;
  gap: 1rem;
}

.shot-row b,
.shot-row em {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-style: normal;
  text-transform: uppercase;
}

.shot-row span {
  display: block;
  height: 0.55rem;
  background: #2c2c2f;
}

.shot-row span i {
  display: block;
  width: var(--progress, 66%);
  height: 100%;
  background: #77736a;
}

.shot-row:nth-child(3) span i {
  --progress: 48%;
}

.shot-row:nth-child(4) span i {
  --progress: 78%;
}

.shot-row:nth-child(5) span i {
  --progress: 28%;
}

.frame-scriptmate {
  display: grid;
  padding: 3rem;
  place-items: center;
  background: #10111b;
  color: #f7f7f4;
}

.frame-scriptmate .frame-label {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding-top: 1.5rem;
}

.script-page {
  width: min(72%, 19rem);
  margin-top: 3.5rem;
  padding: 2rem;
  background: #f7f6f2;
  color: #17171a;
  box-shadow: 0.8rem 0.8rem 0 var(--acid);
}

.script-page > span {
  color: #4245a8;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.script-page p {
  margin: 1rem 0 0;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.script-page .script-cue {
  color: #4245a8;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.script-page b {
  display: block;
  width: 100%;
  height: 0.42rem;
  margin-top: 0.75rem;
  background: #d5d5d2;
}

.script-page b:nth-of-type(2) {
  width: 82%;
}

.script-page b:nth-of-type(3) {
  width: 94%;
}

.script-page b:nth-of-type(4) {
  width: 60%;
}

.services {
  background: var(--ink);
  color: #fff;
}

.services-shell {
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(6rem, 12vw, 11rem) var(--gutter);
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
}

.services .eyebrow {
  color: var(--acid);
}

.services h2 {
  margin: clamp(3rem, 6vw, 5rem) 0 0;
}

.services h2 span {
  color: var(--acid);
}

.services-copy > p {
  max-width: 36rem;
  margin-bottom: 3.5rem;
  color: #d4d5d8;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.services-copy ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--dark-line);
  list-style: none;
}

.services-copy li {
  display: grid;
  min-height: 6.5rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--dark-line);
  grid-template-columns: 2.5rem 1fr minmax(10rem, 0.8fr);
  gap: 1rem;
}

.services-copy li span,
.services-copy li small {
  color: var(--dark-muted);
}

.services-copy li strong {
  font-size: 1.05rem;
}

.contact {
  background: var(--acid);
  color: var(--ink);
}

.contact-shell {
  display: grid;
  align-items: end;
  gap: 2rem;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  grid-template-columns: 1fr auto;
}

.contact .eyebrow {
  grid-column: 1 / -1;
}

.contact h2 {
  max-width: 10ch;
  margin: 0;
}

.button-dark {
  min-width: 13rem;
  margin-bottom: 0.7rem;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: #28282d;
}

.site-footer {
  display: grid;
  align-items: start;
  gap: 2rem;
  padding: 3.5rem var(--gutter);
  grid-template-columns: 1fr 1fr auto;
}

.site-footer > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

/* Privacy page */
.legal-header {
  background: var(--ink);
}

.legal-main {
  width: min(100%, 52rem);
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}

.legal-main h1 {
  max-width: 10ch;
  margin: 0 0 2rem;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  line-height: 0.84;
}

.legal-main .eyebrow {
  margin: 2.5rem 0 1.5rem;
}

.legal-summary {
  margin-bottom: 3.5rem;
  padding: 1.5rem;
  border-left: 0.55rem solid var(--ink);
  background: var(--acid);
  font-size: 1.08rem;
}

.legal-main h2 {
  max-width: none;
  margin-top: 3.5rem;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 0.98;
}

.legal-main p,
.legal-main li {
  font-size: 1.04rem;
  line-height: 1.75;
}

.legal-main ul {
  padding-left: 1.25rem;
}

.legal-main li + li {
  margin-top: 0.45rem;
}

.legal-back {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-weight: 850;
}

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

  .hero-intro-wrap {
    display: grid;
    align-items: end;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-intro {
    margin-bottom: 0;
  }

  .story-heading,
  .services-shell {
    grid-template-columns: 1fr;
  }

  .story-heading > p,
  .services-copy > p {
    max-width: 42rem;
  }

  .product-chapter {
    grid-template-columns: 6rem 1fr;
  }

  .product-frame {
    min-height: 31rem;
    grid-column: 2;
  }

  .chapter-index {
    grid-row: 1 / span 2;
  }

  .contact-shell {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .button-dark {
    width: fit-content;
  }
}

@media (max-width: 700px) {
  .header-inner {
    display: grid;
    gap: 0.5rem;
    padding-block: 0.8rem;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.65rem;
  }

  nav a {
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(4rem, 20vw, 6rem);
  }

  h2 {
    font-size: clamp(3.2rem, 15vw, 4.6rem);
  }

  .hero-inner {
    padding-top: 2rem;
  }

  .hero-meta {
    display: grid;
    gap: 0.2rem;
    padding-bottom: 3rem;
  }

  .hero-intro-wrap {
    display: block;
  }

  .hero-intro {
    margin: 2rem 0;
  }

  .film-sequence {
    grid-template-columns: 1fr;
  }

  .film-sequence li {
    min-height: 6.5rem;
  }

  .film-sequence li:not(:last-child)::after {
    right: auto;
    bottom: -0.8rem;
    left: 1.7rem;
    transform: rotate(90deg);
  }

  .story-heading {
    gap: 2rem;
  }

  .product-chapter {
    display: block;
    min-height: auto;
  }

  .chapter-index {
    min-height: 6rem;
    flex-direction: row;
    padding: 1.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-boardflow .chapter-index {
    border-color: var(--dark-line);
  }

  .chapter-index span {
    font-size: 4.3rem;
  }

  .chapter-index small {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .chapter-copy {
    padding: 2rem var(--gutter);
  }

  .chapter-statement {
    margin-top: 3rem;
  }

  .chapter-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-frame {
    min-height: 27rem;
    margin: 0 var(--gutter) 2rem;
  }

  .member-row {
    grid-template-columns: 3rem 1fr 3rem;
  }

  .frame-scriptmate {
    padding: 2rem;
  }

  .script-page {
    width: 82%;
    padding: 1.5rem;
  }

  .services-copy li {
    grid-template-columns: 2rem 1fr;
  }

  .services-copy li small {
    grid-column: 2;
  }

  .contact-shell {
    min-height: 38rem;
    align-content: space-between;
  }

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

  .copyright {
    grid-column: 1;
  }
}

@media (max-width: 390px) {
  nav a {
    font-size: 0.72rem;
  }

  .wordmark {
    font-size: 0.98rem;
  }

  .product-frame {
    min-height: 24rem;
  }

  .frame-lineup,
  .frame-boardflow {
    padding-inline: 1rem;
  }

  .frame-lineup .frame-label,
  .frame-boardflow .frame-label {
    margin-inline: -1rem;
  }

  .member-row {
    gap: 0.65rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .button,
  .status,
  .product-frame,
  .legal-summary {
    border: 2px solid CanvasText;
  }

  .hero-copy h1 span,
  .services h2 span {
    color: CanvasText;
  }
}
