/* Homepage foundation and education sequence. Loaded last after film/diagram styles. */
.homepage-film {
  --home-content-width: 1440px;
  --home-width: calc(var(--home-content-width) + 2 * var(--home-gutter));
  --home-canvas: #f8faf9;
  --home-surface: #fff;
  --home-heading: clamp(36px, 4.4vw, 60px);
  --home-support: clamp(16px, 1.2vw, 17px);
  --home-label: 11px;
  --home-chapter-gap: clamp(96px, 7.8vw, 112px);
  --home-related-gap: clamp(64px, 5vw, 72px);
  --home-heading-gap: clamp(40px, 3.35vw, 48px);
  --home-column-gap: clamp(32px, 5vw, 72px);
  --home-action-height: 56px;
  --home-action-hover: #e0af53;
  background: var(--home-canvas);
}

/* Shared hero/body rail, capped at the demo's native width on large screens.
   Preserve the grid on ribbon/close wrappers. */
.homepage-film .wrap {
  width: 100%;
  max-width: var(--home-width);
  margin-inline: auto;
  padding-inline: var(--home-gutter);
}

/* Two half intervals give one deliberate gap between neighboring chapters. */
.homepage-film :is(section.block, .os-section, .product-demo) {
  padding-block: calc(var(--home-chapter-gap) / 2);
}
.homepage-film .future-hero + .block {
  padding-top: var(--home-chapter-gap);
}
.homepage-film .product-demo {
  padding-top: calc(var(--home-related-gap) / 2);
}
.homepage-film .home-start {
  padding-bottom: calc(var(--home-related-gap) / 2);
}
.homepage-film :is(#faq, .close) {
  padding-block: var(--home-chapter-gap);
}

/* One heading composition for legacy sections and the operating-system intro. */
.homepage-film :is(.sec-head, .os-section__intro) {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: end;
  gap: 24px var(--home-column-gap);
  margin-bottom: var(--home-heading-gap);
  padding-bottom: 0;
  border: 0;
}
.homepage-film .sec-head > div:only-child {
  grid-column: 1 / -1;
}
.homepage-film :is(.sec-head, .os-section__intro) > * {
  min-width: 0;
}
.homepage-film :is(.sec-head h2, .os-section__intro h2, .product-demo__heading) {
  font-size: var(--home-heading);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
  color: var(--ink);
  text-wrap: balance;
}
.homepage-film .product-demo__heading {
  margin-bottom: var(--home-heading-gap);
}
.homepage-film :is(.sec-head .eyebrow, .os-section__eyebrow, .who .eyebrow, .who-cos-lbl) {
  margin-bottom: 16px;
  color: var(--steel);
  font-size: var(--home-label);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.homepage-film :is(.sec-head .aside, .os-section__intro > p) {
  max-width: 36ch;
  padding-bottom: 2px;
  color: var(--steel);
  font-size: var(--home-support);
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  text-wrap: pretty;
}
.homepage-film :is(.fbody p, .terms p, .who-lead p, .faq .ans) {
  font-size: var(--home-support);
  line-height: 1.6;
  text-wrap: pretty;
}
.homepage-film .fbody p {
  max-width: 60ch;
}

/* Open content on a clear canvas. Boundaries are strongest where they carry
   meaning: the manufacturer's private system and the actual product frame. */
.homepage-film #faq {
  background: var(--paper);
}
.homepage-film .product-demo__frame {
  border-color: var(--line);
}
.homepage-film :is(.film-row, .film, .who, .pquote) {
  background: transparent;
}
.homepage-film .film-row {
  gap: 32px;
  border: 0;
}
.homepage-film .film .fbody {
  padding: 24px 0 0;
}
.homepage-film .film .fbody:hover {
  background: transparent;
}
.homepage-film .ribbon .wrap {
  gap: 32px;
}
.homepage-film .ribbon.sourced .stat {
  padding: 24px 0;
  border: 0;
}
.homepage-film .ribbon.sourced .stat + .stat {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.homepage-film :is(.ribbon .n, .ribbon .n em) {
  color: var(--ink);
}
.homepage-film .who {
  display: block;
  padding: 36px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.homepage-film .who h3 {
  max-width: 34ch;
}
.homepage-film .who .who-experience {
  max-width: none;
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.8;
}
.homepage-film .pquote {
  padding: 8px 0 0;
  border: 0;
}
.homepage-film .pquote blockquote {
  max-width: 62ch;
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 500;
  font-style: normal;
  line-height: 1.5;
  color: var(--ink);
}

/* One quiet rule and label vocabulary inside the existing groupings. */
.homepage-film .terms {
  border-top: 1px solid var(--line);
}
.homepage-film .terms li::before {
  color: var(--steel);
}
.homepage-film .faq summary::after {
  color: var(--steel);
}
.homepage-film .close {
  border-top: 1px solid var(--line-dk);
}

/* Booking is one action wherever it appears. Media controls keep their role. */
.homepage-film :is(.future-hero__cta, .close .act .btn, .home-pilot__cta) {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--home-action-height);
  padding: 17px 23px;
  border: 0;
  border-radius: 0;
  background: var(--brass);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: background .18s ease;
}
.homepage-film :is(.future-hero__cta, .close .act .btn, .home-pilot__cta):hover {
  background: var(--home-action-hover);
}
.homepage-film :is(.future-hero__cta, .close .act .btn, .home-pilot__cta) svg {
  flex: none;
  transition: transform .18s ease;
}
.homepage-film :is(.future-hero__cta, .close .act .btn, .home-pilot__cta):hover svg {
  transform: translateX(3px);
}
.homepage-film :is(.future-hero__secondary, .close .alt) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: rgba(238, 240, 239, .42);
}
.homepage-film :is(.future-hero__secondary, .close .alt):hover {
  text-decoration-color: var(--paper);
}
.homepage-film .close .act {
  gap: 8px;
  padding-top: 0;
}

/* The starting work is a pair of readable examples. The film stays full width. */
.home-workspaces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px var(--home-column-gap);
}
.home-workspaces article {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.home-workspaces h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.home-workspaces p {
  max-width: 58ch;
  margin: 0;
  color: var(--steel);
  font-size: var(--home-support);
  line-height: 1.6;
  text-wrap: pretty;
}
.home-proof-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.home-proof-actions > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--moss);
  font-size: 14px;
  font-weight: 600;
}
.home-proof-actions .home-inline-call {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  color: var(--steel);
  font-weight: 400;
}
.home-inline-call span {
  color: var(--moss);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.home-proof-actions a:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 6px;
}

/* The deliverables stay visible; buyers can open the terms they need to check. */
.home-pilot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 40px var(--home-column-gap);
}
.home-pilot .home-pilot__label {
  margin: 0 0 12px;
  color: var(--steel);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}
.home-pilot dl {
  margin: 0;
}
.home-pilot dl > div {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.home-pilot dt,
.home-pilot summary,
.home-pilot__next h3 {
  color: var(--ink);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.home-pilot dd,
.home-pilot__answer p,
.home-pilot__next p {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--steel);
  font-size: var(--home-support);
  line-height: 1.6;
  text-wrap: pretty;
}
.home-pilot details {
  border-top: 1px solid var(--line);
}
.home-pilot details:last-child {
  border-bottom: 1px solid var(--line);
}
.home-pilot summary {
  position: relative;
  padding: 24px 40px 24px 0;
  list-style: none;
  cursor: pointer;
}
.home-pilot summary::-webkit-details-marker {
  display: none;
}
.home-pilot summary::after {
  content: "+";
  position: absolute;
  top: 24px;
  right: 4px;
  color: var(--moss);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}
.home-pilot details[open] summary::after {
  content: "−";
}
.home-pilot summary:hover {
  color: var(--moss);
}
.home-pilot summary:focus-visible,
.home-pilot__cta:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 5px;
}
.home-pilot__condition {
  display: block;
  margin-top: 8px;
  color: var(--steel);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}
.home-pilot__answer {
  padding: 0 40px 24px 0;
}
.home-pilot__answer p {
  margin-top: 0;
}
.home-pilot__next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px var(--home-column-gap);
  margin-top: 24px;
  padding-block: 32px;
  border-block: 1px solid var(--line);
}
.home-pilot__next h3 {
  margin: 0;
}
.home-pilot__next .home-pilot__cta {
  flex: none;
}
.home-call-outcome {
  max-width: 58ch;
  margin: 20px 0 0;
  color: rgba(238, 240, 239, .72);
  font-size: 14px;
  line-height: 1.6;
}
.home-report-offer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dk);
}
.home-report-offer p {
  max-width: 42ch;
  margin: 10px 0 0;
  color: rgba(238, 240, 239, .72);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  /* Supporting copy should sit below a heading before either becomes cramped. */
  .homepage-film :is(.sec-head, .os-section__intro) {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .homepage-film :is(.sec-head .aside, .os-section__intro > p) {
    max-width: 48ch;
  }
}

/* The existing close switches to one column through exactly 900px. */
@media (max-width: 900px) {
  .homepage-film .ribbon .wrap {
    gap: 0;
  }
  .homepage-film .ribbon.sourced .stat + .stat {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .homepage-film .close .act .btn {
    justify-content: space-between;
  }
  .homepage-film .close .alt {
    justify-content: center;
  }
}

@media (max-width: 899px) {
  .homepage-film {
    --home-chapter-gap: 72px;
    --home-related-gap: 56px;
    --home-heading-gap: 32px;
  }
  .home-pilot { grid-template-columns: 1fr; gap: 32px; }
  .home-pilot dl > div:last-child { padding-bottom: 0; }
  .home-pilot__next { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 599px) {
  .homepage-film {
    --home-heading: clamp(30px, 8vw, 36px);
    --home-chapter-gap: 64px;
    --home-related-gap: 48px;
    --home-heading-gap: 28px;
  }
  .homepage-film :is(.sec-head, .os-section__intro) {
    gap: 16px;
  }
  .homepage-film :is(.sec-head .eyebrow, .os-section__eyebrow, .who .eyebrow) {
    margin-bottom: 14px;
  }
  .homepage-film :is(.future-hero__cta, .close .act .btn, .home-pilot__cta) {
    padding-inline: 20px;
  }
  .home-workspaces { grid-template-columns: 1fr; }
  .home-pilot__next .home-pilot__cta { width: 100%; }
  .home-report-offer { width: 100%; }
  .homepage-film .close .home-report-offer .alt { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-film :is(.future-hero__cta, .close .act .btn, .home-pilot__cta),
  .homepage-film :is(.future-hero__cta, .close .act .btn, .home-pilot__cta) svg {
    transition: none;
  }
  .homepage-film :is(.future-hero__cta, .close .act .btn, .home-pilot__cta):hover svg {
    transform: none;
  }
}
