/* Nest the original reveal above a second curtain, ending before services. */
.curtain-sequence { position: relative; display: flow-root; background: var(--ink); }
.curtain-pair { position: relative; z-index: 2; display: flow-root; }
.curtain-sequence .section-scroll-prompt { display: block; border: 0; }
.section-scroll-prompt a { display: inline-block; text-decoration: underline; text-underline-offset: .2em; }
.section-scroll-prompt a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
html:has(.section-scroll-prompt) { scroll-behavior: smooth; }
@media (min-width: 1920px) and (min-height: 1000px) {
  /* Center the entire copy/cat/eyebrow group instead of pinning its footer. */
  .curtain-sequence .messy-group { display: flex; gap: clamp(120px, calc(8svh + 48px), 176px); }
  .curtain-sequence .cat-test-footer { position: static; left: auto; bottom: auto; max-width: 100%; }
}
.homepage-section {
  position: relative;
  z-index: 3;
  background: var(--ink);
  color: var(--white);
  padding-inline: 60px;
  text-align: center;
}
.opportunity-section { min-height: 836px; padding-block: 154px 143px; }
.services-section { min-height: 1075px; padding-block: 132px 131px; background: var(--paper); color: var(--ink); }
.curtain-sequence > .opportunity-section { position: sticky; top: 0; bottom: 0; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .homepage-finish :is(.case-studies-home, .closing-cta, .closing-footer) .scroll-reveal.is-revealed {
    animation-delay: var(--section-reveal-delay, 0ms);
  }
  .homepage-finish .selected-work-heading,
  .homepage-finish .closing-invitation,
  .homepage-finish .closing-footer nav { --section-reveal-delay: 70ms; }
  .homepage-finish .case-project:nth-child(even) { --section-reveal-delay: 80ms; }
  .homepage-finish .closing-copyright { --section-reveal-delay: 140ms; }
  .homepage-finish :is(.case-project, .closing-cta, .closing-footer):focus-within .scroll-reveal,
  .homepage-finish .case-project.scroll-reveal:focus-within {
    animation: none;
    opacity: 1;
    transform: none;
  }
  /* The uncovered layer must fill the screen even on tall tablets. */
  .curtain-sequence > .opportunity-section { min-height: max(836px, 100svh); }
}
.content-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 185px;
  max-width: 100%;
  min-height: 36px;
  margin: 0 auto 30px;
  padding: 11px 20px;
  border: 1px dashed currentColor;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .99px;
  text-transform: uppercase;
}
.opportunity-section .content-eyebrow { width: 243px; }
.homepage-section h2, .testimonials-heading, .selected-work-heading {
  max-width: 1060px;
  margin: 0 auto;
  font-family: "Romie", Georgia, serif;
  font-size: 65px;
  font-weight: 700;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-feature-settings: "dlig" 1;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1108px;
  margin-inline: auto;
  font-family: var(--font);
  text-align: left;
}
.opportunity-grid { margin-top: 68px; }
.services-grid { margin-top: 59px; }
.services-section .services-approach {
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 56px auto 0;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.homepage-section h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}
.content-grid p { margin: 0; font-size: 1.125rem; font-weight: 300; line-height: 1.55; }
.content-grid :is(h3, p) { overflow-wrap: anywhere; }
.content-grid strong { font-weight: 600; }
.opportunity-card { min-height: 255px; padding: 36px 32px; border: 1px solid var(--white); }
.opportunity-card p { margin-top: 32px; color: #b7b7b7; }
.service-card { min-height: 296px; padding: 36px 32px; color: var(--ink); }
.service-card p { margin-top: 32px; }
.homepage-finish .services-grid p { font-size: 1rem; }
.service-art { display: flex; align-items: center; height: 75px; margin: 0 0 20px -7px; }
.service-art img { display: block; flex: none; }
.service-strategy .service-art, .service-presentations .service-art { margin-left: -4px; }
.service-campaigns .service-art { margin-left: 0; }
.service-toolkits .service-art { margin-left: -10px; }
.service-identity { background: var(--yellow); }
.service-strategy { background: var(--red); }
.services-strategy-first .service-strategy { background: var(--yellow); }
.services-strategy-first .service-identity { background: var(--red); }
.service-campaigns { background: var(--blush); }
.service-websites { background: var(--pink); }
.service-presentations { background: var(--turquoise); }
.service-toolkits { background: var(--green); }
@media (min-width: 1200px) and (max-width: 1919px) {
  /* Keep paragraph starts aligned when one opportunity heading wraps. */
  .opportunity-card h3 { min-height: 2.6em; }
}
@media (min-width: 1000px) {
  .homepage-section { display: flex; flex-direction: column; justify-content: center; }
  .opportunity-section { min-height: max(836px, 100svh); }
  .services-section { min-height: max(1075px, 100svh); }
  .homepage-section :is(h2, .content-grid) { width: 100%; flex: none; }
  .homepage-section .content-eyebrow { flex: none; }
}
@media (min-width: 1920px) {
  /* Match the existing large-desktop hero panel and navigation width. */
  .content-grid { max-width: 1320px; }
  .homepage-finish .services-grid { max-width: 1600px; }
  .opportunity-card, .service-card { padding: 40px; }
}
@media (max-width: 1199px) {
  .homepage-section { padding-inline: 32px; }
  .homepage-section h2, .testimonials-heading, .selected-work-heading { font-size: clamp(36px, 4.514vw, 65px); }
  .content-grid { gap: 24px; }
  .opportunity-card, .service-card { padding: 32px; }
  .opportunity-grid { grid-template-columns: 1fr; max-width: 620px; margin-top: 48px; }
  .opportunity-card { min-height: 0; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
}
@media (max-width: 999px) {
  .opportunity-section, .services-section { min-height: 0; padding-block: 100px; }
}
@media (max-width: 759px) {
  .content-eyebrow { line-height: 1.5; }
}
@media (max-width: 599px) {
  .homepage-section { padding-inline: 24px; }
  .opportunity-section, .services-section { padding-block: 80px; }
  .homepage-section h2, .testimonials-heading, .selected-work-heading { font-size: clamp(32px, 8.2vw, 44px); }
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .opportunity-card, .service-card { padding: 32px 24px; }
}
@media (max-width: 699px) {
  .homepage-finish .case-project:nth-child(n) { --section-reveal-delay: 0ms; }
}
@media (prefers-reduced-motion: reduce) {
  .curtain-sequence > .opportunity-section { position: relative; }
}
@media (prefers-reduced-motion: no-preference) {
  .homepage-section h2 { --section-reveal-delay: 70ms; }
  .homepage-section .scroll-reveal.is-revealed { animation-delay: var(--section-reveal-delay, 0ms); }
  .content-grid > :nth-child(3n + 2) { --section-reveal-delay: 80ms; }
  .content-grid > :nth-child(3n) { --section-reveal-delay: 160ms; }
  .curtain-preview .homepage-section:focus-within .scroll-reveal { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 1199px) {
  .content-grid > .opportunity-card, .service-card:nth-child(odd) { --section-reveal-delay: 0ms; }
  .service-card:nth-child(even) { --section-reveal-delay: 80ms; }
}
@media (max-width: 599px) {
  .homepage-section .content-grid > article { --section-reveal-delay: 0ms; }
}
